Skip to content

chore: release v0.51.0 - #298

Merged
xxchan merged 1 commit into
mainfrom
release/v0.51.0
Oct 9, 2026
Merged

xxchan merged 1 commit into
mainfrom
release/v0.51.0

Conversation

@xxchan

@xxchan xxchan commented Oct 9, 2026

Copy link
Copy Markdown
Member

Release OAR and CLI 0.51.0. This PR changes only the two package version fields.

Added: SessionNotFoundError (#294, #295)

  • session({ resume }) rejects with the exported SessionNotFoundError when the runtime's own answer says the conversation to resume does not exist. It carries sessionId (the requested id) and cause: { method, native }, redacted like other open errors. A host can now tell "start over" apart from an auth, quota, model or transport failure without parsing messages.
  • Signals per runtime (missing resume targets):
    • antigravity: -32002;
    • grok: data.code: "FS_NOT_FOUND";
    • cursor: the SDK's agent_not_found;
    • pi: OAR's own session-file lookup;
    • kimi and opencode v1/v2: a complete session/list walk has no such id and the resume then fails;
    • claude and codex: the exact native wording ("No conversation found with session ID", "no rollout found for thread id"), pinned by recorded answers.
  • Any other failed open keeps its current error. That includes codex's other -32600 refusals (active writer, sub-agent), auth refusals (still RuntimeFailureError) and a wrong cwd on kimi or opencode (still UnsupportedOptionError).

Behavior changes

  • A resume of a missing session now rejects with SessionNotFoundError where it used to reject with a plain Error or the runtime's RequestError; cursor's minified SDK error class is replaced by it. SessionNotFoundError extends Error, so instanceof Error and message checks still hold.
  • For pi and grok, "not found" means not found for the cwd given; resume with the cwd saved with the id. Cursor's means not found by the SDK with this configuration.

Validation: #295 passed all 17 checks on its final head (ad8ea1e), based on the current main, so the merged tree equals the CI tree. Lookout re-ran the #294 probes (opens only, no prompts): all 16 cases matched the decision, including the must-not-match ones. After this PR passes CI and merges, tag its exact squash commit as v0.51.0 to trigger npm trusted publishing.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xxchan
xxchan merged commit 87764be into main Oct 9, 2026
17 checks passed
@xxchan
xxchan deleted the release/v0.51.0 branch October 9, 2026 22:56
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.

1 participant