Repository navigation
chore: add daily runtime version inventory and probe evidence - #32
Merged
Merged
Conversation
stamp-build Bot
added a commit
that referenced
this pull request
Nov 19, 2026
…m claude session id (#994) <!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/ZXll.svg" width="16" height="16" align="absmiddle" alt=""> <b>Lookout</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_16d976c0cf55840b9ef5310f215922a4"><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 --> Closes #975. Requested by Cindy in `#inspection:#32`. ## Summary - **Shared `SessionOptions.resume` validation across all runtimes (`packages/oar/src/shared/session-options.ts`, `packages/oar/src/contracts/session-options.ts`, `packages/oar/src/runtimes/opencode/prompt-config.ts`):** - Add `checkResume` to `refuseSessionOptions` (and `validateOpenCodePrompts` for direct callers) so blank, `-`-prefixed, and NUL-containing `resume` values reject up front with `UnsupportedOptionError` (`option: "resume"`) across all 14 core runtimes (as well as `pi-durable` and `scriptedRuntime`) before spawning any child process or invoking `opencode export`. - **`--flag=value` session ID arguments across all CLI-spawning adapters:** - Audited all 14 core runtimes and updated every adapter that places a session ID onto a child process command line to use `--flag=value` form: `claude` (`--session-id=...`, `--resume=...` in `claude/launch.ts`), `qwen` (`--session-id=...`, `--resume=...` in `qwen/launch.ts`), and `qoder` (`--session-id=...`, `--resume=...` in `qoder/launch.ts`). (`pi` RPC resolves `options.resume` through `SessionManager.list` to an absolute file path before launch, and its native CLI parser accepts space-separated flags only.) - **Claude native `Session.id` confirmation, unmatched-title `SessionNotFoundError`, and credential redaction (`packages/oar/src/runtimes/claude/session.ts`, `open-settings.ts`, `fork-identity.ts`):** - Run `confirmSessionId(sessionId, options)` (`get_status`) on plain `resume` as well as `fork`, rejecting and stopping the process if Claude resolves `--resume` by `--name` title to a different native UUID rather than recording the title as `Session.id`. - Map Claude `2.1.326+`'s non-UUID unmatched-title startup error (`is not a UUID and does not match any session title`) to `SessionNotFoundError` alongside `No conversation found with session ID`. - Pass `confirmSessionId` refusal text and `get_status` error responses through `sessionCredentialRedactor(options)` and `nativeErrorCause`. - Update `docs/runtimes/claude.md` and `docs/spec/runtime-matrix.md` to match. ## Validation - Cross-runtime `SessionOptions.resume` refusal tests across all 14 core runtimes (`""`, `" "`, `"-c"`, `"--continue"`, `"--help"`, `"id\0<secret>"`, plus `opencode` with `systemPrompt` and `claude`/`codex` with `fork`), `--flag=value` launch argument tests (`claude`, `qwen`, `qoder`), and Claude title-mismatch, `2.1.326+` `SessionNotFoundError`, and `confirmSessionId` credential-redaction tests. - Real-binary vendor verification on Linux x64 in isolated `HOME` directories with local synthetic `aimock` providers: `Pi 1.5.2` RPC, `Claude Code 2.1.326` and `2.1.328` (`claude-resume.vendor.test.ts` including dash flags, matched title, and unmatched title, plus `session-fork.vendor.test.ts`), `Qwen 0.27.4` (`qwen.vendor.test.ts`), and `Qoder 1.1.81` (`qoder.vendor.test.ts`). - `CI=1 pnpm run check` passed locally. Co-authored-by: Lookout <[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.
Add
pnpm tsx experiments/runtime-versions.tsto compare the five supported runtimes with their publishers' current stable versions. It reports the Pi SDK resolved by OAR, handles each lookup independently, and exits nonzero on lookup errors.Record the September 29 compatibility probes and link them from the runtime and experiment indexes. Pi 0.87.1 passed all 11 applicable live scenarios; Claude 2.1.284, Codex 0.159.0, Grok 1.0.44 and Kimi 2.1.1 each passed basic and shell-tool scenarios. The inventory caught Codex 0.159.0 appearing during the check, prompting an additional probe. The report retains the Kimi tool-detail limitations and Grok diagnostics. The dependency upgrade itself landed in #31.
Validation: local check/build passed; Pi and Codex 0.159.0 simulated-provider behavior suites were each 17/17 clean (including two skips), with 7 Pi and 9 Codex vendor cases passing under strict CI mode. The inventory was run successfully with all five current versions. Initial macOS/Windows CI jobs could not start the freshly installed Codex; both passed when rerun without a code change.
Final head
84e5033: all 12 CI jobs pass on Linux, macOS and Windows (run).