-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Continuing the Claude Code specific aspects of https://github.com/orgs/agentclientprotocol/discussions/202#discussioncomment-14813341 here
There's two issues preventing resuming an existing conversation with Claude Code after restarting the client:
newSessionreturns an internal session id, not the one used by Claude Code. I don't think this is too hard to fix.- Even with a matching session id, there is not a straighfoward way to resume the session:
newSessiondoesn't haveresumeparameter. We could pass it through the_metaproperty ofNewSessionRequest, but this is somewhat using private apis.loadSessionrequires that The Agent MUST replay the entire conversation to the Client in the form of session/update notifications (like session/prompt). In my knowledge this is not possible with Claude Code (ie you can resume, not replay). So noloadSession- Alternatively,
promptcould call intonewSessionwith a resume parameter when given a session id it doesn't have in memory, instead of throwing. HoweverPromptRequestis missing some property required inNewSessionRequest(cwd,mcpServers)
Metadata
Metadata
Assignees
Labels
No labels