A resumed Claude agent block loses settingSources: [] (user hooks load after a restart) #127

Closed
opened 2026-10-04 01:26:19 +00:00 by jhgaylor · 1 comment
Owner

Found by M44's builder (2026-10-03) and confirmed on main. new_session sends Claude's _meta from def.launch().meta, which includes settingSources: []. But session/resume, session/load and the fork path (agent/mod.rs, with_meta around :1510) send only imported_meta, which is None for an ordinary block. So after a daemon restart a resumed Claude block runs with claude-agent-acp's default setting sources: the user's hooks (illogical hook, illogical inbox), user CLAUDE.md, MCP servers and so on. A fresh block has none of these.

#124 keeps inbox from hanging such a session, but the behaviour differs between a fresh block and a resumed one. M44's worn blocks already resend their _meta on every path.

Fix: with_meta falls back to def.launch().meta, as new_session does. Test: the fake ACP adapter sees settingSources: [] on session/resume after a daemon restart.

Found by M44's builder (2026-10-03) and confirmed on main. `new_session` sends Claude's `_meta` from `def.launch().meta`, which includes `settingSources: []`. But `session/resume`, `session/load` and the fork path (`agent/mod.rs`, `with_meta` around :1510) send only `imported_meta`, which is `None` for an ordinary block. So after a daemon restart a resumed Claude block runs with claude-agent-acp's default setting sources: the user's hooks (`illogical hook`, `illogical inbox`), user CLAUDE.md, MCP servers and so on. A fresh block has none of these. #124 keeps `inbox` from hanging such a session, but the behaviour differs between a fresh block and a resumed one. M44's worn blocks already resend their `_meta` on every path. Fix: `with_meta` falls back to `def.launch().meta`, as `new_session` does. Test: the fake ACP adapter sees `settingSources: []` on `session/resume` after a daemon restart.
Author
Owner

Fixed in M44's merge (5110bb6): with_meta falls back to the agent's launch _meta, so an ordinary Claude block resumes with settingSources: [].

Fixed in M44's merge (5110bb6): `with_meta` falls back to the agent's launch `_meta`, so an ordinary Claude block resumes with `settingSources: []`.
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#127
No description provided.