Skip to content

chore: release v0.11.0 - #47

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

xxchan merged 1 commit into
mainfrom
release/v0.11.0

Conversation

@xxchan

@xxchan xxchan commented Oct 1, 2026

Copy link
Copy Markdown
Member

Bump both packages to 0.11.0: #46 adds runtime.checkUpdate, runtime.upgrade and oar upgrade (new optional capabilities; nothing existing changes).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xxchan
xxchan merged commit 1145e4e into main Oct 1, 2026
12 checks passed
@xxchan
xxchan deleted the release/v0.11.0 branch October 1, 2026 12:29
stamp-build Bot added a commit that referenced this pull request Nov 23, 2026
…ok open bounds (#1159)

<!-- 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>
(open-agent-runtime) opened via Stamp · <a
href="https://stamp.build/review?receipt=prc_1b592f3eb96172ebe1603e14390d598b"><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
→</a></sup>

---
<!-- /stamp:review:v1 -->

## Why

Production telemetry reported by Raft (`#oar-raft:#47`) showed Grok OAR
sessions falling back to legacy with `resume_failed:AcpError`
(`open_failure_class=timeout`) after 21 to 24 s total open time, while
legacy loaded the same 3.8 to 7 day sessions in 23.2 to 30 s.

Inspection of `packages/oar/src/shared/acp/profile.ts` showed two root
causes:
1. `session/load` (which replays saved history before replying) used
`profile.requestTimeoutMs ?? 15_000` (15 s), and `grokAcpProfile` did
not set `requestTimeoutMs`, cutting off every `session/load` longer than
15 s.
2. `waitForOpenReadiness` (including Grok served-MCP readiness
discovery) used `profile.sessionStartTimeoutMs ??
profile.requestTimeoutMs ?? 15_000` while sharing `startedAt` with
`createOrResume`, instead of sharing the active opening method's
deadline.

## What changed

- **Shared ACP opening deadlines
(`packages/oar/src/shared/acp/profile.ts`)**:
  - Added optional `AcpSessionProfile.sessionLoadTimeoutMs`.
- Introduced `openMethodTimeoutMs(profile, method)`: `session/load`
defaults to `Math.max(requestTimeoutMs, 60_000)` unless
`sessionLoadTimeoutMs` overrides it (independent of
`sessionStartTimeoutMs`, preserving Kimi's 630 s hook allowance strictly
for `session/new` and `session/resume`); other opening methods keep
`profile.sessionStartTimeoutMs ?? requestTimeoutMs`.
- Aligned `waitForOpenReadiness` in `openInitializedAcpSession` to use
`openMethodTimeoutMs(profile, opened.openMethod)` so readiness shares
the same budget as `createOrResume`.
- **Grok profile (`packages/oar/src/runtimes/grok/session.ts`)**:
- Set `requestTimeoutMs: 30_000` on `grokAcpProfile`, matching
Antigravity, CodeBuddy, Devin, Kimi, and OpenCode, while inheriting the
60 s default for `session/load` and its shared MCP readiness window.
- **Docs & specs (`docs/spec/runtime-matrix.md`,
`docs/runtimes/grok.md`, `docs/runtimes/kimi.md`)**:
- Documented the 60 s `session/load` default (`sessionLoadTimeoutMs`),
Grok's 30 s ordinary request bound, `waitForOpenReadiness` sharing the
opening method's deadline, and Kimi's `session/load` staying at 60 s.
- **Tests (`tests/acp/acp-open-timeouts.test.ts`)**:
- Updated Kimi bounds tests (proving `session/load` uses 60 s, neither
30 s nor 630 s) and added unit tests covering Grok `session/load` 60 s,
served-MCP readiness sharing `session/load`'s 60 s budget, Grok 30 s
ordinary bounds (`session/new`, `authenticate`, `session/set_model`),
and explicit `sessionLoadTimeoutMs` override isolation.

## Verification

- Local full `pnpm run check` passed cleanly in worktree at `6b5e5a88`:
  - Typecheck + `oxlint`: 0 warnings, 0 errors (1,952 files, 418 rules)
- `vitest run` (including `tests/acp/acp-open-timeouts.test.ts` 16/16
and `tests/grok/grok-mcp-startup.test.ts` 6/6): 582 passed, 3 skipped
test files (5,617 passed, 113 skipped tests)
  - `pnpm run sea-trial`: mock 19 passed, 1 skipped, 0 failed

---------

Co-authored-by: Cindy <[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.

1 participant