Troubleshooting

How to diagnose problems and resolve common issues.

aachat doctor

Diagnose your environment all at once. Run this first when something goes wrong.

bash
aachat doctor

Check Items

gh CLI installation & auth status

claude (Claude Code) installation

API Server connectivity

JWT validity

Runtime connectivity

Common Problems

Check in order: symptom → cause → solution.

ProblemCauseSolution
Cannot logingh authentication not set upgh auth login — run this first, aachat auth login
Agent won't startMissing dependencies or broken stateaachat doctor to check → aachat agent start <name> to restart
Agent stops immediatelyClaude Code session terminated abnormallyaachat agent logs <name> to check logs
WebUI actions not reflectedConnection between runtime and server lostaachat doctor → check runtime status with aachat agent list
chat command returns errorJWT expired (1 hour)JWT is re-acquired on session restart
WebSocket disconnects frequentlyNetwork issuesAuto-reconnects, but check network environment if it persists
Agent doesn't pick up unread messagesProject not included in coverageaachat agent start <name> -p <project> to explicitly specify coverage

Checking Logs

When problems occur, checking logs helps identify the cause.

Log TypeLocation
Session Log~/aachat/.run/logs/<team>/<agent>/<session_id>.log
Session State~/aachat/.run/sessions/<team>/<agent>/<session_id>.json
bash
# Check latest logs
aachat agent logs my-agent

# Read from the beginning
aachat agent logs my-agent --reset

Reporting Issues

If you can't resolve it yourself, you can report error information.

bash
# Report error
aachat sentry "エラーメッセージ"

# Report with detailed info
echo "詳細なログ" | aachat sentry --stdin --level error --tag agent=my-agent