feat(acp): support native session forks - #85
Merged
Conversation
danielkov
force-pushed
the
feat/native-acp-session-fork
branch
from
September 2, 2026 14:13
534bf01 to
85c05af
Compare
danielkov
enabled auto-merge (squash)
September 2, 2026 14:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds native ACP
session/forkrouting for harnesses that advertise the capability while retaining a safe transcript-cloning fallback. Fork copies discard session-bound provider state without modifying the source transcript.Motivation
Fallback forks could copy OpenAI continuation metadata bound to the source session, causing
Responses continuation metadata binding is invalid. Kit also did not expose the native fork operation already available in the ACP protocol.Impact
Kit-backed ACP subagent forks can share one ACP process while preserving independent durable session identities and inherited model settings. Cancelling or timing out a fork leaves the source and sibling sessions usable, and branches rebuild provider continuation state on their next response.
Technical details
Fork-safe transcripts
Fork copies remove
openai.responses.continuation.v1,openai.subscription.v1, and generated assistant media. The source transcript remains untouched.Session lifecycle
Native forks are claimed and activated as durable sessions, inherit source model and reasoning-effort selection, and carry parent context for nested subagent reporting. Late fork responses are closed instead of orphaned, and per-session close cleans up descendants without terminating the shared ACP process.
Compatibility
Harnesses without native fork support continue to use sanitized transcript cloning.