GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(unstable-v2): add session injection schema by danielkov · Pull Request #2043 · agentclientprotocol/agent-client-protocol

Conversation

@danielkov

@danielkov danielkov commented Aug 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Summary

Adds unstable ACP v2 schema for sending user messages to a session that is already running.

  • session/inject accepts content plus queue or steer delivery mode and returns an agent-owned message ID
  • session/revoke_inject cancels a pending message by ID
  • session/replace_inject replaces pending content without changing its ID or queue position
  • session capabilities advertise supported modes, stream behavior, revoke, and replace support
  • delivery uses the existing v2 user_message session update
  • typed errors distinguish unknown, delivered, and unsupported operations
  • all additions are behind unstable_session_inject; stable schema artifacts do not change

Related

  • RFD: docs(rfd): steer and queue prompts sent while the Agent is working #1261
  • Rust SDK: feat(unstable-v2): add session injection support rust-sdk#339
  • AgentKit: feat(acp): add unstable v2 session injection danielkov/agentkit#13
  • Kit: feat(acp): add v2 mid-turn steering speakeasy-api/kit#24

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
danielkov added 2 commits August 25, 2026 13:57
@danielkov
feat(unstable-v2): add session injection schema
af12198
@danielkov
fix(unstable-v2): align session injection contracts
6e7e044
This was referenced Aug 26, 2026
feat(unstable-v2): add session injection support agentclientprotocol/rust-sdk#339
Open
feat(jsonrpc): add tracked response receipts agentclientprotocol/rust-sdk#338
Closed
feat(acp): add unstable v2 session injection danielkov/agentkit#13
Closed
feat(acp): add v2 mid-turn steering speakeasy-api/kit#24
Merged
feat(acp): add opt-in ACP v2 runtime foundation danielkov/agentkit#12
Merged
docs(rfd): steer and queue prompts sent while the Agent is working #1261
Open
@danielkov
danielkov marked this pull request as ready for review August 26, 2026 12:47
@danielkov
danielkov requested a review from a team as a code owner August 26, 2026 12:47
@danielkov danielkov mentioned this pull request Aug 26, 2026
Track upstream ACP session injection dependencies speakeasy-api/kit#25
Open
3 of 9 tasks
@mkorun

mkorun commented Sep 24, 2026

Copy link
Copy Markdown

Sharing some live, empirical data that might be useful here, since this PR is where these semantics actually land in the schema.

We ran a controlled comparison of four CLI coding agents (Codex CLI, Claude Code, OpenCode, Google's Antigravity CLI) against the same steering scenario — a multi-step task, corrected mid-run with "stop after step N, don't do the rest" — and the results map fairly cleanly onto SessionInjectSteerInStream:

  • Codex CLI (its own turn/steer RPC): behaves like interrupt — lands near-instantly, mid-generation.
  • Claude Code: no dedicated steer RPC at all — writing a new user message onto the persistent --input-format stream-json stdin while a turn is running gets folded in live, but only at the next safe boundary, closer to finish than interrupt. This also confirms a concern @SteffenDE raised on the RFD thread (docs(rfd): steer and queue prompts sent while the Agent is working #1261) about the Claude Agent SDK only generating a message ID at delivery time: there's no separate pending-ack step in the CLI's own mechanism at all, it's a raw stdin write — an ACP adapter really would have to synthesize InjectSessionResponse.messageId itself rather than getting one back synchronously.
  • OpenCode: has genuine mid-turn steering through its own session API too, also finish-like — worth noting since neither OpenCode nor Antigravity come up anywhere in the RFD discussion.
  • Antigravity CLI: no live steering mechanism at all, confirmed directly against the CLI, and no roadmap signal either.

For the two without live steering, our fallback measurements might be useful for gauging how costly the plain queue-after-cancel path actually is in practice: giving the resumed turn the actual correction as its real next prompt (not a generic "continue") correctly handles genuine redirection, not just abort — verified live. It's not free though: it pays for the full prior context again as fresh input, plus real wall-clock restart time (process teardown + reinit) — structural costs, independent of whether the caller times the cancel to land on a clean step boundary.

Happy to share more detail on methodology if it's useful for pinning interrupt/finish against real agent behavior.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danielkov danielkov mentioned this pull request Oct 1, 2026
chore(deps): use published ACP and agentkit forks instead of git pins speakeasy-api/kit#256
Merged
@2BAB 2BAB mentioned this pull request Oct 20, 2026
feat(acp): add steer support (session/inject) apache/maka#6192
Closed
1 of 2 tasks
@benbrandt

benbrandt commented Nov 13, 2026

Copy link
Copy Markdown
Member

RFD moved to a different design

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@benbrandt benbrandt closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@danielkov @mkorun @benbrandt
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.