Troubleshooting
Common issues and solutions for the AI Agent Session Center.
Port 3333 in Use#
The server automatically kills the process occupying port 3333 on startup. To use a different port:
# CLI flag
npx ai-agent-session-center --port 4444
# Environment variable
PORT=4444 npm start
# Config file
echo '{"port": 4444}' > data/server-config.jsonHooks Not Firing#
Step 1: Verify hooks are registered
cat ~/.claude/settings.json | grep dashboard-hookYou should see entries with "command": "~/.claude/hooks/dashboard-hook.sh".
Step 2: Verify the hook script exists
ls -la ~/.claude/hooks/dashboard-hook.shStep 3: Verify it's executable
chmod +x ~/.claude/hooks/dashboard-hook.shStep 4: Test manually
echo '{"session_id":"test","hook_event_name":"SessionStart"}' | ~/.claude/hooks/dashboard-hook.shStep 5: Re-install hooks
npm run install-hooksjq Not Installed#
The hook script requires jq for JSON enrichment. Without it, hooks still work but send unenriched JSON (no PID, TTY, or terminal detection).
# macOS
brew install jq
# Ubuntu/Debian
sudo apt-get install jq
# Verify
jq --versionSessions Not Appearing#
Step 1: Check the message queue file exists
ls /tmp/claude-session-center/queue.jsonlStep 2: Check for data
tail -5 /tmp/claude-session-center/queue.jsonlStep 3: Run in debug mode
npm run debugDebug mode shows verbose logging for every hook event, session match attempt, and state transition.
Step 4: Verify density includes SessionStart
All density levels include SessionStart. If you changed density, re-install hooks:
npm run install-hooksWebSocket Disconnections#
The WebSocket client auto-reconnects with exponential backoff:
- Base delay: 1 second
- Max delay: 10 seconds
- Backoff: Doubles each attempt
On reconnect, the client requests missed events from the server's ring buffer (last 500 events). If sessions appear stale, refresh the browser.
Terminal Not Connecting#
SSH connections:
- Verify your SSH key is accessible:
ssh-add -l - Test SSH directly:
ssh -i ~/.ssh/id_rsa user@host - Check the host is in
~/.ssh/configor use the full hostname - Verify port 22 is open
Local connections:
- Ensure
$SHELLis set correctly - Check that node-pty is installed:
npm ls node-pty
3D Scene Performance#
If the 3D Cyberdrome scene is slow:
- Reduce sessions: Archive ended sessions to reduce robot count
- Lower animation intensity: Settings > Appearance > Animation Intensity
- Check GPU: The scene uses WebGL — ensure hardware acceleration is enabled in your browser
- Close other tabs: WebGL shares GPU resources with other browser tabs
Full Reset#
To completely reset the dashboard:
npm run resetThis will:
- Remove all hooks from
~/.claude/settings.json,~/.gemini/settings.json, and~/.codex/config.toml - Create a backup of the current config in
data/backups/ - Remove
data/server-config.json - The next startup will re-run the setup wizard
Getting Help#
- GitHub Issues: github.com/coding-by-feng/ai-agent-session-center/issues↗
- Debug mode:
npm run debugfor verbose logging - Hook stats:
GET /api/hook-statsshows delivery latency and processing metrics - MQ stats:
GET /api/mq-statsshows message queue health