Repository navigation
chore: release v0.11.0 - #47
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
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.
Bump both packages to 0.11.0: #46 adds
runtime.checkUpdate,runtime.upgradeandoar upgrade(new optional capabilities; nothing existing changes).🤖 Generated with Claude Code