Repository navigation
feat!: steer is a member a session may lack; refused options are a typed UnsupportedOptionError - #108
Merged
Merged
Conversation
…ped UnsupportedOptionError Implements docs/design/capabilities.md (#103). - UnsupportedOptionError (option, message), exported from the root: refuseSessionOptions (cursor, kimi, antigravity) and kimi's refusal of a resume in another directory (option "cwd") throw it. - Session.steer and AdapterSession.steer are optional; presence is the capability. SessionCapabilities loses steer, and queue is always { durable }. ACP sessions expose steer only when the profile has steer params (grok); kimi and antigravity sessions have none. - sealSession seals steer only where the adapter has it; steerOrQueue and deliver queue directly without it. The queue-null branches are gone. - cursor: a run without run.steer refuses the steer runtime_refused; images on a steer stay unsupported. - Subagent send(..., "steer") is rejected unsupported when the child's session has no steer. - sea-trial steer cases and the live-contract steer scenario skip on a session without steer; kill-runtime skips on a bundled installation, not on runtime names. - Docs: each refusable SessionOptions field names its refusing runtimes and the typed error, pointing at refusedSessionOptions and the runtime matrix table; runtime pages say the session has no steer. BREAKING CHANGE: SessionCapabilities.steer is removed and capabilities.queue is never null; Session.steer may be undefined; a refused session option rejects with UnsupportedOptionError. Co-Authored-By: Claude Opus 5.5 <[email protected]>
xxchan
force-pushed
the
feat/capabilities
branch
from
October 3, 2026 14:52
d755937 to
01dfd36
Compare
Merged
xxchan
added a commit
that referenced
this pull request
Oct 3, 2026
Minor release with breaking changes, version bump only: - #108: `Session.steer` is optional (absent on kimi and antigravity); `SessionCapabilities.steer` removed; `capabilities.queue` is always `{ durable }`; refused session options reject with a typed `UnsupportedOptionError` (cursor, kimi, antigravity; kimi's resume in another directory). - #103: docs/design/capabilities.md. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: exe.dev user <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Oct 29, 2026
<!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_7ae94d09937285ea2a082681d962d744"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp →</a></sup> --- <!-- /stamp:review:v1 --> Pi provider keys supplied through `setApiKey` or API-key `login` could be interpreted as shell commands or environment references when Pi read them back. Encode these inputs using Pi's native literal escapes before its login flow stores them. The same encoder handles existing session MCP values; OAuth answers and non-secret provider settings retain their native meaning. Also export `createPiProviderAuth` from `@botiverse/oar/runtimes/pi` without eagerly loading the SDK or other adapters, forward native `getDeviceId`/`agentName` login options, and expose per-prompt cancellation combined with host cancellation. Pending input rejects on abort even if the host callback never settles. The login spec and Pi mapping document these behaviors and the audit of credential/config write paths. **Behavior changes:** facade-supplied API keys are stored as literal values. Existing native configuration is not migrated; manually configured commands/references retain Pi's behavior on resolved reads. Hosts provide and retain the stable UUID needed by Pi's ChatGPT login. Validation: full `CI=1 pnpm run check` (2,385 unit tests, 18 mock behavior passes), both package builds, packed clean-install/typecheck including the isolated Pi entry, and three native Pi MCP tests. New regressions exercise Pi 1.4.0's actual login, credential file, resolver and request-auth path with synthetic special-character keys while command execution is forbidden; they also cover cancellation, late answers, OAuth preservation and native login options. No real account or model request was used for provider authentication tests. Raft task #108. Co-authored-by: Otter <[email protected]>
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.
Implements docs/design/capabilities.md (#103).
Breaking (0.17.0):
Session.steeris optional: a session that cannot steer (kimi, antigravity) has nosteer;SessionCapabilities.steeris gone. Hosts show a steer control only wheresession.steerexists;steerOrQueueanddeliverqueue without it.SessionCapabilities.queueis always{ durable }(every runtime holds input at least in the adapter); the null case and its branches are gone.UnsupportedOptionError(optionnames it, message is the reason): cursor, kimi, antigravity declared refusals, and kimi's resume in another directory (option: "cwd").RejectionCode "unsupported"now means "this control with these inputs" (images on a cursor steer); a control the runtime cannot do at all is an absent member.Also:
SessionOptionsand each refusable field document the refusal and link the table (OpenDAL-style chain); spec and runtime pages updated; shared tests skip by capability (session.steer === undefined,installation.via === "bundled"for the kill case), not by runtime name.Checks: typecheck, lint, full vitest (566 passed), sea-trial on mock and the three aimock backends. Live:
live-contract --only basic,steer,queue,busy-and-late-controlon kimi (steer skipped: no steer), claude and cursor, all pass.🤖 Generated with Claude Code