GeezerVison is showing github.com — feat(acp): support _session/steering by smagnuso · Pull Request #53043 · anomalyco/opencode
Conversation
smagnuso
commented
Oct 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #53042
Refs #44877
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Interim until ACP v2 (#44877); the v2 path would replace this.
Adds the _session/steering ACP extension so a client can redirect a running
turn. initialize now advertises _meta.steering.supported. The handler checks
session.status: if the session is busy it adds the message with
session.prompt({ noReply: true }), which the running loop picks up on its next
step, and replies injected. If the session is idle it replies
promptRequired and sends nothing, so a steer never starts an unrequested turn.
How did you verify your code works?
- Added tests for the capability advertisement, idle steer, and busy steer.
bun test test/acp passes (142 tests) and bun run typecheck is clean.
- Ran
opencode acp from source and sent initialize: the response includes
_meta.steering.supported: true. A _session/steering request for an idle
session returns promptRequired, and an unknown method still returns -32601.
- Ran a steered request in hydra-acp
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Advertise _meta.steering.supported on initialize and handle
_session/steering. A steer on a busy session is admitted with
session.prompt({ noReply: true }) for the running loop to pick up on its
next step; an idle session replies promptRequired and sends nothing.
|
The following comment was made by an LLM, it may be inaccurate:
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.