Repository navigation
[Feature][v0.10.0] ACP mode: support session/load, session/resume and session/fork #3624
Replies: 2 comments
|
The same gap hits a second ACP client, bb (get-bb/bb 0.46.1), and it has a second half that this request does not cover yet. Reproduction in bb (2026-10-17, Prime 0.10.0,
Over 14 days, bb recorded 23 such fallbacks on long Prime threads (47 to 196 turns). Client-side issue: get-bb/bb#5691 The second half: in-session switching persists global defaults. A client could avoid the rebuild by switching model or reasoning with So, in addition to (I filed this as #3667 before seeing this Discussion; it was auto-closed for vouching.)
|
|
Hi |
Uh oh!
There was an error while loading. Please reload this page.
Problem
In JetBrains Air (ACP client), a Prime Agent session works only while its
prime-agent --mode acpprocess is alive. After an IDE restart every saved session is read-only:AcpContinuationException: This agent cannot resume the saved session. Start a new chat to continue;The cause is on the agent side.
initializeon 0.10.0 answers:and
crates/pa-daemon/src/acp/daemon.rshandles onlyinitialize,session/new,session/prompt,session/cancel,session/closeandsession/set_config_option. Air reads the capabilities and gives up (idea.log):A second problem blocks any fix on the client side: the ACP
sessionIdis a freshUuid::new_v4()and is not stored anywhere. The client cannot map it back to a session file, even manually.What the daemon already has
Create { session_path }opens an existing session file (this is how--resumeworks in ACP mode);GetMessagesreturns the history for a replay;SessionManager::fork_fromand the fork-at-entry path inbranch_navigation.rscopy a session.So the missing parts are all in
acp/:sessionId;session/load: open the file, replay the history assession/update(user_message_chunk,agent_message_chunk,agent_thought_chunk,tool_call), then respond;session/resume: the same without the replay;session/fork: copy the session into the requestedcwdand host the copy. Air sends the fork point as_meta.jetbrains.air.fork = {version: 1, messageId, messageFingerprint?, messageOccurrence?}.claude-agent-acphandles it infork-session.jsif you want a reference.Related: #2202 lists the same gaps for the TypeScript ACP mode (PRs #1600, #1116 and #1389 were closed). The one-session-per-connection limit, which Air hits as well, is in #3623.
Offer
I am implementing this on my fork for 0.10.0 (Rust). If you want it upstream, I can share the patch or open a PR.
All reactions