Skip to content

fix(qoder): use native SDK daemon on CLI 1.1.81 - #526

Merged
stamp-build[bot] merged 2 commits into
mainfrom
agent/otter/qoder-stdio-permissions
Oct 29, 2026
Merged

stamp-build[bot] merged 2 commits into
mainfrom
agent/otter/qoder-stdio-permissions

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Otter from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Qoder CLI 1.1.81 removed the SDK worker from ordinary headless stream-json, so existing OAR sessions fail to open. Use the official published SDK's public --sdk daemon protocol on 1.1.81 and later, with one owned process per OAR session; retain the original worker path through 1.1.80 and refuse an unreadable version instead of guessing.

The adapter privately initializes the daemon, opens the session, routes native session identities and permission replies, and sends catalog requests through daemon.get_models. Explicit environment authentication is preserved without exposing credentials in argv or records. Startup failures retain the requested effort as context, while model-confirmation failures keep their actual model-specific reason.

Unknown connection-wide daemon notices remain verbatim in records. A foreign session frame terminates the owned process with a reason retained by the exit record, derived event and unfinished-turn outcome. The public exited response/event now has an optional reason only for OAR-initiated termination; independent native exits remain unchanged.

Validation: the full local check passes 2,363 unit tests and 18 mock behavior cases (one capability skip), and both package builds pass. Qoder 1.1.78, 1.1.79, 1.1.80 and 1.1.81 each pass nine native vendor cases plus 17 shared behavior cases (two capability skips) on Linux. A new native regression proves a real stdio permission request blocks execution until the production reply arrives. Replay uses synthetic local identity data and the unmodified native fake-response provider; no real model request was made.

The reusable daemon probe also confirms two concurrent sessions and a surviving session after its peer closes. Documentation records that limited observation and updates the shared-process design; the complete sharing evidence gate and paid-account verification remain separate work.

@stamp-build
stamp-build Bot merged commit 68f5388 into main Oct 29, 2026
34 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/qoder-stdio-permissions branch October 29, 2026 14:06
@stamp-build stamp-build Bot mentioned this pull request Oct 29, 2026
stamp-build Bot added a commit that referenced this pull request Oct 29, 2026
<!-- stamp:review:v1 -->
<sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg"
width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b> from
open-agent-runtime opened this pull request through
Stamp</sup><br><sup><a
href="https://stamp.build/review?receipt=prc_842a7b81b9cd560fcc5dd881bbf588a1"><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 -->

Patch release: Qoder CLI 1.1.81 support. No API breaking changes. Qoder
now refuses to open when its CLI version cannot be read as a stable
version (see Behavior changes).

## Fixes

### Qoder 1.1.81 sessions open again (#526)
Qoder CLI 1.1.81 (published 2026-10-29) removed the SDK worker that OAR
drove through `--print --input-format stream-json ...
--permission-prompt-tool stdio`: it rejects that flag with
`sdk_worker_removed`, and without it ordinary stream-json ignores
`initialize`. Every Qoder session and model listing failed before
opening on 1.1.81. From 1.1.81, OAR starts the CLI with `--sdk` and uses
the official SDK's daemon protocol (the one
`@qoder-ai/qoder-agent-sdk`'s public `startDaemon()` uses):
`daemon.initialize` (protocol version 2, `multi_session_v2`,
`daemon_queries_v1`), then `daemon.open_session` with the same worker
arguments and cwd. Model listing and model confirmation use
`daemon.get_models`. Qoder 1.1.78 to 1.1.80 keep the previous transport
unchanged. OAR still owns one Qoder process per session. The 1.1.81
checks ran on Linux with Qoder's fake-response provider and a synthetic
local login; a real paid-account check is still pending.

### Qoder errors no longer blame the requested effort (#526)
Any failure while opening with `effort` set used to read "Qoder could
not confirm effort ...". Startup and `initialize` failures now read
"Qoder startup failed (requested effort ...)", model-confirmation
failures keep their own message, and only a failed settings readback
says "could not confirm effort". All Qoder versions.

## Behavior changes

### Qoder needs a readable version (#526)
OAR selects the Qoder transport from the installation's version, or,
when that is absent, by running the installation command with
`--version` (15 s limit; a failed or timed-out run reports that
failure). If the version is not a stable `major.minor.patch` (for
example a pre-release build), opening a session or listing models is
refused with a version compatibility error instead of guessing a
permission transport. The transport follows the installation you pass
in: re-probe the installation after upgrading Qoder.

### Qoder daemon authentication (#526)
On 1.1.81 the daemon handshake carries the child environment's
`QODER_PERSONAL_ACCESS_TOKEN` (preferred) or `QODER_SERVICE_ACCOUNT_KEY`
when set, otherwise the native local login. A service-account key
combined with another explicit credential is refused, as in the native
CLI. A `QODER_JOB_TOKEN` without a personal access token is refused: the
daemon needs a host callback for that mode, which OAR does not
implement. Credentials are sent in the private handshake, never in argv
or records.

### Qoder daemon frames (#526)
Connection-wide daemon frames OAR does not recognize are kept in the
session's record unchanged. A frame for another session is a protocol
error: OAR terminates the owned process and records why in
`exited.reason`; during startup, opening is refused with the same
reason.

### Qoder `launchArgs` (#526)
`--sdk` and `--acp` in Qoder `launchArgs` are refused with
`UnsupportedOptionError("launchArgs")`: OAR owns the transport.

## TypeScript

The `exited` response and event gain an optional `reason?: string`
(#526). It is present only when OAR itself terminated the process and
explains OAR's decision; an independent native exit has none. Today only
Qoder's foreign-session termination sets it; dispose and abort-fallback
terminations carry none. An unfinished turn's `runtime_exited` outcome
uses it as its reason. Existing code that reads `exited` keeps working.

## Docs
- Design: when OAR lacks a capability, whether it is a gap in OAR's
mapping or a limit of the vendor interface OAR uses, and the two ways
past it, ask or fork (#510).
- Design: shared runtime processes. Where a runtime version passes an
evidence gate, its sessions will share a process by default, with
isolated placement as a host choice; no runtime passes the gate yet and
this release changes no placement (#515).
- Qoder: transport versions, daemon evidence (two concurrent sessions in
one 1.1.81 daemon, observed only), native permission regression (#526).

Co-authored-by: Cindy <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants