Skip to content

fix: honor Pi 1.1.0 cancellation and update SDK pins - #246

Merged
xxchan merged 1 commit into
mainfrom
chore/runtime-check-2026-10-08
Oct 8, 2026
Merged

xxchan merged 1 commit into
mainfrom
chore/runtime-check-2026-10-08

Conversation

@xxchan

@xxchan xxchan commented Oct 8, 2026

Copy link
Copy Markdown
Member

Pi 1.1.0 reports cancellation in agent_settled.aborted. OAR was bypassing the full SDK abort path and inferring cancellation only from its own requests, so the native flag could stay false after a host abort and an extension's abort could appear completed. Call the public SDK cancellation method without delaying the accepted response, and derive the outcome from the native flag.

Raise both Pi dependency floors to ^1.1.0, select 1.1.0 in the workspace, and update the exact Cursor optional peer/dev/CLI pins to 1.0.37. Hosts using Cursor must install @cursor/[email protected] alongside the next OAR release; the CLI supplies it itself. Update the current version documentation and keep the evidence and migration requirements in the October 8 report.

Validation:

  • Full CI=1 pnpm run check, build, and packed clean installation passed. The clean install used a temporary home and no account credentials.
  • Pi: 30 applicable native vendor tests and all 17 applicable behavior cases passed (two capability skips). Regression tests cover the SDK cancellation flag, immediate acceptance, abort before native startup, and a real user extension calling ctx.abort() without an OAR request. The pre-fix failures were reproduced and retained.
  • Pi 1.0.4 to 1.1.0 cross-process resume preserved native id, saved model and prior transcript, with a fresh record stream starting at zero. This checks the adapter and dependency upgrade together.
  • Cursor: the native login/logout substitute passed its network guard and 11 scenarios, alongside adapter/login regressions and declaration compatibility. No real-account model session or native tool-denial probe was run on 1.0.37; the last full live session evidence remains 1.0.36.

Rebased onto current main, including the newly added denied-tool execution/resume regression in #245.

@xxchan
xxchan merged commit b49315a into main Oct 8, 2026
13 checks passed
@xxchan
xxchan deleted the chore/runtime-check-2026-10-08 branch October 8, 2026 11:01
@xxchan xxchan mentioned this pull request Oct 8, 2026
xxchan added a commit that referenced this pull request Oct 8, 2026
Release OAR and CLI 0.44.0. This PR changes only the two package version
fields.

**Hosts that use cursor: bump `@cursor/sdk` to exactly 1.0.37.** OAR's
peer dependency is an exact pin and moves from 1.0.36 to 1.0.37 (#246).
The CLI ships with 1.0.37.

**Behavior change: pi cancellation** (#246)
- pi's bundled SDK is now `@earendil-works/pi-coding-agent` ^1.1.0 (was
^1.0.2), which reports cancellation natively in `agent_settled.aborted`.
- `abort()` now goes through the SDK's complete `AgentSession.abort()`
path (retries, compaction and branch summaries included); it is still
answered `accepted` at once.
- A pi turn's `aborted` outcome now comes from pi's own flag, not from
OAR's abort request. A turn that a pi extension cancels is now
`aborted`; it used to read `completed`. An error from the SDK's abort is
recorded as a `pi/abort_rejected` frame.
- Sessions written by pi 1.0.4 resume on 1.1.0 with their id, model and
history.

**Docs and tests**
- The `accepted` response for prompt, steer and queue now states its
exception: a later `input_dropped` or `dropped` hands the input back to
the caller (#244).
- `SessionOptions.disallowedTools`: a model that calls a denied tool
anyway gets the runtime's refusal (claude, pi, codex, antigravity),
pinned by vendor tests; a resume that omits the list lifts the
restriction except on antigravity, which keeps its saved filter (#245).
- cursor: SDK 1.0.37 still keeps the 24-hour background-shell timer
(cursor.md).

Validation: all 13 checks passed on #246's final head (`8efd9c2`),
#245's (`463bb36`) and #244's (`9f54237`), and each merged tree equals
its CI tree. The 1.0.37 check covers the cursor login stand-in and
adapter regressions; no real cursor session was run on 1.0.37
(experiments/runtime-version-checks/2026-10-08.md). After this PR passes
CI and merges, tag its exact squash commit as `v0.44.0` to trigger npm
trusted publishing.

🤖 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]>
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.

2 participants