A resumed Claude agent block loses settingSources: [] (user hooks load after a restart) #127
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by M44's builder (2026-10-03) and confirmed on main.
new_sessionsends Claude's_metafromdef.launch().meta, which includessettingSources: []. Butsession/resume,session/loadand the fork path (agent/mod.rs,with_metaaround :1510) send onlyimported_meta, which isNonefor 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
inboxfrom hanging such a session, but the behaviour differs between a fresh block and a resumed one. M44's worn blocks already resend their_metaon every path.Fix:
with_metafalls back todef.launch().meta, asnew_sessiondoes. Test: the fake ACP adapter seessettingSources: []onsession/resumeafter a daemon restart.Fixed in M44's merge (
5110bb6):with_metafalls back to the agent's launch_meta, so an ordinary Claude block resumes withsettingSources: [].