feat: support ephemeral ACP sessions - #391
Open
hokupod wants to merge 1 commit into
Open
Conversation
hokupod
marked this pull request as ready for review
August 12, 2026 10:05
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
_meta.codex.ephemeral: trueon ACPsession/newthread/start.ephemeral: trueinvalidParamsMotivation
Automation clients can create one-off ACP sessions whose Codex threads do not need to appear in stored thread listings or remain available for resume. The generated
ThreadStartParamstype already exposes the App Serverephemeralfield, butcodex-acpdid not provide an ACP request path to it.Kyoso is a multi-agent code review tool that runs Codex reviewers through ACP. Each review creates a one-off session that is never resumed, but currently remains as a persisted task in Codex App. After this change is released, Kyoso will opt these reviewer sessions into ephemeral storage.
Compatibility
_meta.codex.ephemeralkeeps the existing persisted-session behaviorephemeral: falsealso keeps the existing persisted-session behavior_meta.codexremain ignoredBase:
agentclientprotocol/codex-acp@2dccf45b53a33089d5b6e82508a1887aec8b20ccValidation
npm run typechecknpm test -- src/__tests__/CodexACPAgent/CodexAcpClient.test.ts— 102 passednpm test— 405 passed, 28 skippednpm run buildgit diff --check