Structured View Troubleshooting
A field guide to the structured view’s failure modes. For the day-to-day interface see Interface; for the security model and what survives a restart, see Structured View Internals.
Prerequisites
aoe acp doctor says Node is missing
Install Node.js 22 or newer (brew install node, apt install nodejs, nvm install 22) and re-run aoe acp doctor. For a non-standard location, set AOE_ACP_NODE=/path/to/node or acp.node_path in config.toml.
An adapter is missing or too old
aoe refuses to start a session whose adapter is below the version floor and reports the exact requirement. Install the official adapter (npm install -g @agentclientprotocol/claude-agent-acp@latest), then claude auth login if you have not.
aoe-agent ships inside the aoe binary and installs into the data dir on demand: aoe acp doctor --fix --adapter aoe-agent. It needs Node 22.6+. An aoe upgrade that changes its bundled sources makes an installed copy stale, and sessions refuse it until doctor --fix reinstalls it.
The dashboard shows the same thing inline, as a screen that names the Agent, the installed and required versions, and numbered steps that follow what this dashboard can do:
- An npm adapter, with installs allowed: Update & restart runs the agent’s
npm install -gon the host as the daemon user and respawns, queueing every other session blocked on that adapter for a respawn too. In a sandboxed session the button is Update in Sandbox & restart and installs inside the session’s container instead. That fixes this session only; refresh the sandbox image so new sessions don’t hit it. - Installs not allowed yet: step 1 is to turn on
acp.allow_agent_install, and the button stays disabled until it’s on. The setting is off by default, because a global install runs the package’s lifecycle scripts as the daemon user. It islocal_only, so the dashboard can’t turn it on: enable it from the TUI settings (Advanced) or the config file. The screen notices the change when you come back to the tab. - A sandbox container that isn’t running: for an npm adapter, Start the container first; the update comes back once it runs. For an adapter you install by hand, step 1 is Check again, which starts the container so the command can run inside it.
- Not installable from here: the command to run by hand, with Copy, then Check again, which respawns the worker and re-runs the version check.
- A sandboxed session, in any of these states: Recreate container restarts the session on a new container from the current local image, after the same confirmation as More > Recreate container in its context menu. Anything outside the working directory and the mounted folders is lost. See Sandbox.
- Read-only and CityHall dashboards show the command only. Restart the agent from the TUI.
A sandboxed session’s container is gone
When a sandboxed session’s container was removed, its agent can’t restart in it, so the session stops with a screen saying the container is gone. Recreate container builds a new one from the current local image, after the same confirmation as More > Recreate container, and the session starts again. New Session in Project opens the new session dialog for the same Project, Agent and Group instead. Sending is blocked until then, because a send would start the session on a new container without that warning. Read-only and CityHall dashboards ask you to have the owner recreate it. Recreate isn’t offered for an archived or trashed session, or one that’s being created or deleted, so the screen says to unarchive it from the sidebar, restore it from Trash, or wait first.
“Failed to start structured view agent” while the adapter is installed
aoe serve captures the launching shell’s PATH at startup. If the adapter lives under a node-version-manager directory (nvm, fnm, mise, asdf) and the node version on the daemon’s PATH does not match, the spawn fails with No such file or directory. Restart aoe serve from a shell where which claude-agent-acp resolves, or symlink the binary into /usr/local/bin or ~/.local/bin.
Native binary launch failure
A banner reading Claude Code native binary at ... exists but failed to launch means the adapter found its bundled native sub-binary but the kernel rejected execve. Reinstalling the adapter does not help. The causes:
- Architecture mismatch. The filename ends in a target triple (
...-linux-arm64/claude); if the host or container reports a differentuname -m, the loader refuses it. Most often an arm64 host pulling an amd64 image without--platform. - Missing dynamic loader or old glibc in a slim base image.
ldd <binary>inside the container reports the gap. - A
node_modulesbind-mounted across architectures.
Use Open agent log on the banner, or aoe acp logs --session <id>, for the verbatim adapter error, and compare file <binary> with uname -m inside the container. Fix it by re-pulling the image with --platform linux/<host-arch> or installing the adapter inside the container rather than bind-mounting it.
During a session
“Project path no longer exists”
The session’s working directory was renamed, moved, or deleted out from under aoe serve. Three ways back:
- Restart
aoe serve. For a managed worktree moved withgit worktree move, the daemon repairsproject_pathfromgit worktree listat startup. That does not cover a plainmv(see the worktrees guide), does not happen while the daemon keeps running, and is skipped on a read-only daemon. - Restore the directory at the path the banner names, then click Retry. Transcript continuity is preserved.
- Stop the daemon and edit
project_pathfor the session insessions.json(andworktree_info.branchif the branch was renamed), then start it again. History andacp_session_idare preserved.
Agent stopped responding to cancel
If the agent ignores session/cancel mid-tool, aoe restarts the worker and resumes the transcript, showing a banner until the respawn lands. Follow-up prompts the daemon refused while the original turn was in flight appear as amber “Rejected” pills with a Retry button.
Tool card stuck “running” after a stop
Stopping mid-tool settles that card into a muted stopped state: the timer freezes and the badge leaves “running”. That is deliberate, since “stopped” is neither done nor failed and the tool’s real outcome was never reported.
“Force end turn” button under the spinner
If the agent finished but the spinner keeps rattling, a Force end turn button appears beneath it; clicking it clears the spinner and cancels the agent. It only appears for a silent model with no tool running, and the view auto-recovers on its own if you do nothing. It stays hidden while a tool is in flight, while a question or approval card awaits you, and during a /compact (where the spinner reads “Compaction in progress” instead), because compaction runs for a minute or more with no output and force-ending it would discard the summarization.
A /compact ran while the session was idle
claude-agent-acp 0.101.0+ compacts a session on its own 54 minutes after the last request, when that request used the 1h prompt cache, the context holds at least 200k tokens, and nothing is running. The transcript shows it as a normal compaction that ends without a prompt from you. To turn it off, set idleCompaction: false in Claude settings (autoCompactEnabled: false also stops it).
“Restarting worker” after a turn looked done
Some adapters finish a turn, stream the final message and end-of-turn usage, but never send the protocol’s turn-complete acknowledgement. When the usage arrived and no background or scheduled task was running, the daemon ends the turn cleanly. A genuine stall still restarts the worker and shows the banner; the transcript is preserved either way.
The view feels stuck with no events
- Read
aoe acp logs --session <id>, or Open agent log on the red startup-error banner. - Check the connection chrome at the top of the view for reconnect status.
- A new session whose agent hasn’t started after 30 seconds offers Restart on its startup line, which replaces the start in progress. A message you sent while it was starting is stopped; send it again once the agent is ready.
- A repeatedly-failing worker is parked with a red “session parked” banner: retry from the dashboard or run
aoe acp restart <session>.
The view auto-reconnects with exponential backoff if the WebSocket drops and resumes the transcript where it left off. The banner counts the attempts and offers a manual Reconnect once they are exhausted; returning the tab to the foreground reconnects immediately.
Approval card vanished without resolving
Approvals expire after approval_timeout_secs (default 300). The agent receives a structured cancellation and typically asks again. Raise the timeout if your approvals legitimately take longer.
Rate limits and agent hand-off
When the active backend hits its rate limit, aoe parks the session rather than respawning into the same limit. A banner above the composer shows the reset time, or the agent’s own wording when it reported no clock, and whether auto-resume is on. Try again respawns the same agent now, for when you’ve added usage; once the reset has passed with auto-resume off, it reads Resume now. Switch Agent appears when another installed agent is allowed to take over. It opens a picker over those agents only, switches on confirm, and pre-fills the composer with a recap of the prior conversation (including the prompt that triggered the limit). Review and send it yourself; nothing is auto-sent.
Auto-resume after reset
To stay on the same backend instead, opt in. The banner’s Turn on link opens this setting for the session’s profile:
[acp]
rate_limit_auto_resume = true
Resume fires once the reported reset plus a 15-second cushion passes, and the reset time survives an aoe serve restart. With no reported reset, the first retry is an hour after the park and each further attempt waits twice as long (1h, 2h, 4h, 8h, 16h), so a quota exhausted for days is retried on a matching schedule. The park survives a resume that fails to start.
Each resume re-sends the interrupted prompt, so it gives up after five re-sends that all come back rate-limited, spanning 31 hours. The banner then reads “Auto-resume stopped” and the session stays put. Recovering from the park resets the count, as do a completed turn and an agent switch; manual Try again and Resume now retries never count against it.
Switching agents manually
The same hand-off is available any time, which is how you return to the original agent after a rate-limit switch.
- Web: right-click the session and pick “Switch agent”. The picker lists built-in agents only.
- CLI:
aoe acp switch-agent <session> <target>(aoe acp agentslists the target keys;--model <name>overrides the model it starts with). A custom agent with anagent_acp_cmdis a valid target even though neither surface lists it.
The transcript divider reads Switched structured view agent from <from> to <to> (manual), distinct from the (rate_limited) one the recovery flow emits.
Switching accounts manually
An account is a tool name with its own [session.agent_config_dir] entry (see Swapping the engine on a restart). aoe acp switch-account <session> <tool> restarts the worker as that account and keeps the conversation: the transcript is copied into the new account’s store and the worker resumes it. The same swap is aoe session restart <session> --tool <tool>.
In the web dashboard, Switch account sits in the usage-limit banner next to Try again and in the session’s sidebar menu. It opens a picker over the configured tool names that can take the conversation over (names only; agent_config_dir paths stay in the aoe config and are not editable from the web), explains the transcript copy and the uncached first turn, and restarts on confirm. A refusal is shown as the server worded it, and nothing changes. The dialog shows the current tool and the label and plan the agent reported, never the email.
- A session parked on a rate limit continues with the interrupted prompt as its next turn, once, and the park’s auto-resume budget is disarmed like a manual Try again. The generic restart wake message is not sent. A session that is not parked gets the usual wake message.
switch-accountrefuses and changes nothing where the swap would start a fresh conversation: the tool runs a different agent, the agent has no known transcript layout (only Claude does), the session has no recorded conversation, or a sandboxed session still has its store move pending.restart --toolkeeps the parking swap in those cases.- The first turn on the new account re-reads the whole context uncached, because the prompt cache belongs to the account.
Automatic account failover
With a second account of the same agent, a rate-limited session can continue on it instead of waiting for the reset. Give each account its own [session.agent_config_dir] entry and map each custom name to the built-in agent with [session.agent_detect_as] (see One CLI, two accounts); a name without both is ignored. Then opt in per profile, and list the accounts to use in order:
[acp]
rate_limit_failover = true
rate_limit_failover_accounts = ["claude-a", "claude-b"]
When a host session parks on a rate limit, the first listed account other than its own that is not known to be limited takes over. The session swaps exactly as in Switching accounts manually: the conversation is carried over, and the interrupted prompt is re-sent once as the next turn. The timed auto-resume does not also fire for that park.
- The swap starts within a couple of seconds of the park. Until it lands, the session list carries
rate_limit_failover_towith the account it is moving to, so a client can show the switch instead of the choice. The field is absent when failover is off, already tried, or no account has headroom. A session parked while the whole pool was limited fails over on a later pass once an account frees up, as long as its timed resume has not fired. - Limits are remembered per account, by its config directory, and shared by every session. A limit on one session’s account keeps the other sessions from failing over into it, and an entry lapses at the reported reset. Each quota window the agent names (five-hour, seven-day) keeps its own deadline, and an account has headroom again only once every window has reset. An account that turns out to be rate limited when the session moves to it gets that limit recorded against itself, and the session stays on its own park and tries the next account. With the failover on, a park that reports no reset follows the one-hour, doubling schedule of auto-resume, unless its account already has a reported deadline in force for the same window, which then applies instead; an estimate never shortens a reported deadline.
- An account that fails to log in (a worker failing with
Authentication required) is skipped for an hour. - Names that run another agent than the session, or have no
[session.agent_config_dir]entry that resolves, are ignored with a warning: a pool account never falls back to the environment or the default directory. - The normal banner stays, and nothing changes, for sandboxed sessions, agents without a transcript layout (only Claude has one), a session with no recorded conversation, and when no listed account has headroom. A pool that is entirely limited leaves the session parked with the banner; with
rate_limit_auto_resumeon (default off) it waits for the reset under the usual auto-resume budget and ends in “Auto-resume stopped”. - At most two failover restarts run at once; others retry on the next pass.
- A swap that fails for a reason that may pass (a worker still stopping, a failed start) is attempted up to three times in all, with a growing delay between attempts, and the account change is undone so the session stays on its own account. After that, or after a refusal by design, the session stays parked, and the usual auto-resume schedule applies if
rate_limit_auto_resumeis on. - The session stays on the new account; there is no automatic switch back.
- The setting is local-only: the web dashboard does not show or write it.
You are responsible for complying with the agent provider’s terms for the accounts you configure.
/clear collapsed earlier turns
/clear wipes the model’s context on the adapter side but preserves the visible transcript: the view appends a “Conversation cleared” divider, resets the plan, mode, approvals, and usage, then folds everything above the divider behind a Show N earlier turns banner. The slash palette and mode picker stay populated.
For claude and codex a clear starts a genuinely new agent conversation rather than clearing in place, so it survives a worker restart: after an idle-out or daemon restart the next prompt resumes the post-clear conversation. The trade-off is that a clear is refused while background sub-agents or tool calls are still draining, since switching conversations mid-drain would file their output under the new one. Wait and send it again. A clear can also fail outright if the new conversation cannot start (an MCP server that will not re-initialize), leaving the existing conversation untouched.
A /clear queued mid-turn (or an agent’s alias, such as /new) fires as its own send when the turn ends, so foo, /clear, bar lands as three prompts; the queued strip shows an amber fires separately divider between rows landing in different sub-batches. The session cost in the composer footer counts from the most recent /clear or /compact, not the session’s lifetime.
Diff viewer is blank
If the Changes panel shows a file’s header but no diff body, with no error and a clean console, a page-restyling browser extension is almost certainly overriding the styling: the diff renders into a shadow DOM and “dark mode for every site” extensions reach into it and make the rows invisible. This is most common on Firefox. Confirm in Troubleshoot Mode, then disable the extension for the dashboard or allowlist the dashboard’s origin.
Editing settings asks for the passphrase again
Day-to-day flows (prompts, cancels, approvals, mode switches, worker restarts, terminal attach) never re-prompt; editing persisted config does. See step-up elevation.
Sharing debug logs
AOE_LOG_LEVEL=debug writes agent stderr verbatim to debug.log in the app data dir. Common API-key shapes (sk-..., ghp_..., AKIA..., Bearer <token>) are scrubbed before they hit disk, but the scrub is best-effort: a hand-rolled secret with no recognizable shape passes through. Skim the file before attaching it to a bug report.