rowboat/apps/x
Gagancreates dda73d0daa fix(code-mode): harden ACP engine — turn-scoped connections, chip-authoritative agent, reliable stop
Three robustness fixes that co-modify manager.runPrompt and the code_agent_run
tool, so they land together:

- Lifecycle: scope each ACP adapter connection to the agent turn. Dispose it a
  short grace (60s) after the turn ends instead of holding it for the app's life;
  the next turn resumes via session/load (both agents support it). Wire
  disposeAll() on app quit (was dead code). Fixes the unbounded per-chat leak of
  booted agent processes.

- Agent selection: make the composer chip the source of truth. Thread codeMode
  into ToolContext; code_agent_run uses it instead of the model's guessed `agent`
  arg, which anchored on the thread's earlier agent and ignored a chip change.
  Prompts updated to match; the run is labelled by the agent that actually ran.

- Stop/abort: guarantee a stopped turn unwinds. On abort the manager sends ACP
  session/cancel, then force-kills the adapter after a 2s grace and resolves the
  turn as cancelled — a wedged adapter can no longer hang the run and lock the
  chat. code_agent_run returns a clean cancelled result.
2026-06-04 01:46:28 +05:30
..
apps fix(code-mode): harden ACP engine — turn-scoped connections, chip-authoritative agent, reliable stop 2026-06-04 01:46:28 +05:30
packages fix(code-mode): harden ACP engine — turn-scoped connections, chip-authoritative agent, reliable stop 2026-06-04 01:46:28 +05:30
.gitignore chore: ignore test-fixtures dir 2026-05-08 17:04:25 +05:30
ANALYTICS.md Add app version to analytics events 2026-05-29 17:02:01 +05:30
eslint.config.mts ignore renderer eslint 2026-01-16 12:05:33 +05:30
LIVE_NOTE.md Refactor builtin file tools beyond workspace scope 2026-05-25 16:21:51 +05:30
package.json integrate electron forge 2026-01-17 10:28:44 +05:30
pnpm-lock.yaml fix(code-mode): run the ACP adapter as Node under Electron + resolve it from main 2026-06-02 01:33:33 +05:30
pnpm-workspace.yaml Refactor builtin file tools beyond workspace scope 2026-05-25 16:21:51 +05:30
tsconfig.base.json bootstrap new electron app 2026-01-16 12:05:33 +05:30