Troubleshooting
Common failure modes and fixes for the Desktop app and the plugins.
Most Closedloop.ai failures fall into one of a few categories. This page is the first place to look when something goes wrong.
Tray says error or degraded
Tray error
- the Desktop app's local gateway is down
- in the Desktop app, open Diagnostics → Gateway Logs for the technical detail
- common causes: port conflict outside the fallback range, missing API key, malformed settings
Tray degraded
- the cloud connection is degraded, or the agent monitor is unavailable
- local operations still work
- the Desktop app forces a full cloud reconnect after 2 minutes without recovery
Port conflict
- probe order:
19432 → 19433 → 19434 → 19435 - confirm the active port at
~/.closedloop-ai/electron-port - if all four ports are busy, the tray goes
error; free a port or quit the conflicting process
Cloud socket auth error
- API key is invalid or revoked
- the Desktop app reports
Authentication failed -- verify your API key in Settings - in the Desktop app, re-enter the key under Settings → Labs → Desktop App → Security Settings; in the web app, confirm it matches an active key under Settings → Labs → API Keys
403 directory not allowed
- the operation tried to touch a path outside the sandbox or inside a hard-denied path
- hard-denies apply even inside the sandbox:
~/.ssh,~/.gnupg,~/.aws,~/Library/Keychains,/etc,/bin,/sbin - the protected folders in your home directory are hard-denied too, and so is everything inside them:
~/Music,~/Pictures,~/Photos,~/Movies,~/Documents,~/Downloads,~/Desktop. Operations on a repository inside one of these folders are refused, so keep repositories in another folder
claude, codex, git, or python3 not found
- the Desktop app spawns
$SHELL -ilcto extract the real PATH; if your shell init does not export the binary, spawn will fail - in the Desktop app, override the binary path under Settings → Labs → Desktop App → CLI Tools
Session library needs attention
If the Desktop app's startup bar says the local Agent Monitor database has an inconsistent migration history and can't be opened safely, the app has stopped before changing your local session store. Until the store is rebuilt, the app imports and syncs no new sessions.
To rebuild the store:
-
Quit the Closedloop Desktop app completely.
-
Move every file whose name starts with
agent-dashboard.sqliteout of the app's data folder and into a new, empty folder. The data folder is~/Library/Application Support/Closedloopon macOS and~/.config/Closedloopon Linux. On macOS, for example:backup=~/closedloop-store-backup-$(date +%Y%m%d-%H%M%S) mkdir -p "$backup" mv ~/Library/Application\ Support/Closedloop/agent-dashboard.sqlite* "$backup"/ -
Relaunch the app. It creates a new store and imports your sessions again from the agent history still on this computer. A session whose agent history has since been deleted is not imported again, so keep the files you moved until you have checked your sessions.
When all else fails
- repair Closedloop plugins into user scope if
claude plugin listreports project-scoped or disabled plugins:
for plugin in code code-review platform self-learning; do
claude plugin uninstall "$plugin@closedloop-ai" --scope project
claude plugin install "$plugin@closedloop-ai" --scope user
claude plugin enable "$plugin@closedloop-ai" --scope user
done
claude plugin list --jsonIf you installed the optional bootstrap plugin (Bootstrap a repo), add bootstrap to the list.