Repository navigation
Add runtime update checks and upgrades - #46
Merged
Merged
Conversation
…ater runtime.checkUpdate(installation) reports the version the runtime's own updater would install and the source of that answer: grok's `update --check --json`, codex's `doctor --json`, cursor's `about --format json` (older builds ask the release service), and for claude and kimi the release pointer their updater reads, by install method, channel and region. Antigravity's check reads the ACP registry and counts only a newer version; Pi moves with oar. runtime.upgrade(installation) runs that updater with stdin closed and no package script markers in the environment, then judges the outcome by the version the same executable reports afterwards: every updater was observed to exit 0 without upgrading. Kimi before 0.43.0 is unsupported, since only a terminal prompt upgrades it. `oar upgrade [runtime]` runs the updaters one at a time; `--check` only reports. docs/spec/update.md is the contract, docs/runtimes/update.md the sandbox evidence, and the grok page records its silent self update on `grok agent stdio` launches. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Updaters start npm or `curl | sh`, so a timeout that only stopped the direct child could cut an install off midway or leave it running. They now run without stdin or a controlling terminal, in their own session and process group on POSIX, and a timeout stops the whole group (the process tree on Windows); checks use the same runner. Also: `oar upgrade` reports a runtime whose probe throws instead of losing the reports already made; the version read back allows 30 s, as the cursor and kimi probes do; `--timeout` reaches the check inside an upgrade; claude falls back to its recorded installMethod for shims (pnpm, Windows npm) and honors minimumVersion; kimi counts only a newer release, as its upgrade does; codex's `manual or unknown` update action is unmanaged_installation. Live reruns include a codex standalone install. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
xxchan
added a commit
that referenced
this pull request
Oct 1, 2026
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](https://claude.com/claude-code) Co-authored-by: exe.dev user <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Oct 29, 2026
<!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_4fb7a3defd9d614e2c5b0f200308e703"><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 --> Verify Kimi 2.4.0, Qwen 0.26.3/0.26.4, Antigravity ACP 1.4.4 and OpenCode v2 2.2.1, and update the native Kimi CI pins and login fixture to 2.4.0. Runtime pages and the dated report retain the observed failures and capability boundaries. The product's existing Kimi login minimum stays 2.3.3. A new OAR-free OpenCode probe reproduces concurrent cold database startup failures in two batches, with sequential and warm controls passing. The known limitation and an upstream issue draft for maintainer review explain the host option to serialize its first startup. No adapter retry, lock or timeout change is introduced. Qwen's extension lock and thinking/text snapshot issues remain reproducible; both upstream issues are added to the inspection checklist. Validation: Linux native/shared/login checks are detailed in `experiments/runtime-version-checks/2026-10-29.md`, including the initial Kimi hook timeout and all OpenCode failures. Full local `CI=1 pnpm run check` passes. Kimi macOS/Windows login and macOS ACP will be checked by PR CI; a manual `acp-windows.yml` run on this branch is requested before merging the pin update. No package version, Cursor peer or Pi/undici dependency changes. Raft task #46. Upstream issue publication belongs to Cindy after review. Co-authored-by: Otter <[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.
Adds two optional runtime capabilities, independent of sessions like
accountUsage, plusoar upgrade. Design agreed in #core (task #5).runtime.checkUpdate(installation): the version the runtime's own updater would install, with itssourceandchannel. Unreadable answers areunavailablewith a reason, never "current".runtime.upgrade(installation): runs the runtime's own updater (oar never installs anything itself), non interactively, and judges the result by--versionof the same executable before and after:upgraded,current(nothing ran),unchanged,failed,unsupported. The updater output comes back verbatim. oar never calls it on its own.autoUpdatesChannelclaude updatecodex doctor --jsoncodex updategrok update --check --jsongrok updatecode.kimi.com/code.kimi.ailatest by regionkimi upgrade -y(0.43.0+)about --format json, release service for older buildscursor-agent updateWhy the version read back: in sandbox probes every updater exited 0 without upgrading in some case (codex after a failed download, claude for Homebrew copies, grok updating another copy, kimi without
-y). Evidence:docs/runtimes/update.md; contract:docs/spec/update.md.Verification:
pnpm run check: typecheck, lint, 421 tests, sea trial 18/18.closeStdinmakes the prompt test time out.npm_config_user_agent, kimi native 2.1.0 to 2.1.1, cursor 2026.08.11 to 2026.09.28; kimi npm reportedunchangedwith kimi's own refusal; kimi 0.38.0requires_terminal. Checks against this host's real installs only (read only).Also documents grok's silent self update on
grok agent stdiolaunches from~/.grok/bin.🤖 Generated with Claude Code