Agent adapter missing: say so before Start, show the copyable install, offer to install it #111

Closed
opened 2026-10-03 06:38:04 +00:00 by jhgaylor · 0 comments
Owner

Starting an agent without its adapter installed (the default after install.sh) gives a raw error, with no command and no copy:

couldn't start the agent: couldn't start claude-agent-acp (exit status: 127): …

  • defs.rs falls back to claude-agent-acp on PATH.
  • link.rs reports the failed spawn; mod.rs wraps it again (hence the doubled "couldn't start").
  • blocks/agent.tsx shows it in .agent-error.

With Node missing, it's the same message with /usr/bin/env: 'node'… at the end. The Start an agent… dialog never checks before you press Start.

The fix commands live only in README.md and docs/features.md, hand-copied from the pins in defs.rs (CLAUDE_ACP, CODEX_ACP). VM tabs already install Node and the adapter themselves (link.rs).

Close it by

  • The daemon reports adapter status per kind: installed (version), missing, or Node missing. Either a field in state or a typed adapter_missing { kind, npm } error, with the npm line generated from the pins.
  • The dialog and the agent block show "Claude Code's adapter isn't installed" plus the exact command, copyable, and an Install button that runs it in a new pane you can watch, reusing the VM installer's steps. Node missing: "Needs Node 20+", with a link and the mise hint.
  • The README says "Start an agent… offers to install it" instead of carrying pinned versions (or the versions come from one generated place).
  • Drop the doubled "couldn't start".
Starting an agent without its adapter installed (the default after install.sh) gives a raw error, with no command and no copy: > couldn't start the agent: couldn't start claude-agent-acp (exit status: 127): … - `defs.rs` falls back to `claude-agent-acp` on PATH. - `link.rs` reports the failed spawn; `mod.rs` wraps it again (hence the doubled "couldn't start"). - `blocks/agent.tsx` shows it in `.agent-error`. With Node missing, it's the same message with `/usr/bin/env: 'node'…` at the end. The *Start an agent…* dialog never checks before you press Start. The fix commands live only in README.md and docs/features.md, hand-copied from the pins in `defs.rs` (`CLAUDE_ACP`, `CODEX_ACP`). VM tabs already install Node and the adapter themselves (`link.rs`). **Close it by** - **The daemon reports adapter status** per kind: installed (version), missing, or Node missing. Either a field in state or a typed `adapter_missing { kind, npm }` error, with the npm line generated from the pins. - **The dialog and the agent block** show "Claude Code's adapter isn't installed" plus the exact command, copyable, and an **Install** button that runs it in a new pane you can watch, reusing the VM installer's steps. Node missing: "Needs Node 20+", with a link and the mise hint. - **The README** says "*Start an agent…* offers to install it" instead of carrying pinned versions (or the versions come from one generated place). - **Drop the doubled "couldn't start".**
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#111
No description provided.