Repository navigation
fix(desktop): report the installed runtime's version and capabilities in the preview - #1483
Merged
jonathan308 merged 3 commits intoOct 15, 2026
Conversation
… in the preview In attach-only mode (the signed local preview) the bundled desktop API runs child operations through the installed, vendor-signed runtime, but the snapshot reported the API's own ProviderCore.version. With a 0.9.17 bundled API and an installed 0.9.20 runtime, Updates offered 0.9.20; Update now ran `darkbloom update`, which answered "Already up to date (v0.9.20)", and the offer stayed forever. The released runtime also has no `desktop` command group, so provider cooling (`desktop configure-cooling`) and Studio's local-only serving (`desktop start-local` and friends) failed with "Unknown option '--enabled'" and the runtime's usage text; one user session logged 27 failed cooling attempts. Read the runtime's --version and `desktop --help` once per executable stamp (an update replaces the file and triggers a fresh read). Report that version in the snapshot, reject actions needing a missing desktop subcommand with an explanation, and report cooling control unavailable. Release builds (no attached executable) keep their own version and commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 16:01 — with
GitHub Actions
Error
The machine's version came from the daemon state file even when that file was left behind by an older provider process that has since exited. Use it only while the file is fresh, like every other daemon field in the snapshot, and otherwise report the runtime's version. The desktop API harness now starts with such a stale file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 16:10 — with
GitHub Actions
Error
Collaborator
Author
|
Checked against the installed runtime. I built a signed preview (Developer ID, not notarized) from the desktop branch plus the audit fixes and this PR ( The same read showed |
Read installed-runtime versions from stdout while retaining ordinary command diagnostics. Reject incomplete or oversized probe output and cover warning, replacement and cancellation cases. Independent behavior-preserving review completed. Parent verification passed 15 focused Foundation-only harness tests using the actual worker/profile sources and Swift syntax checks. Full provider-package integration remains a CI check; no live provider or GPU workload was run.
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 20:03 — with
GitHub Actions
Error
jonathan308
merged commit Oct 15, 2026
3d58180
into
codex/desktop-mac-preview-20261012
19 of 20 checks passed
This branch was successfully deployed
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.
Summary
Reported from the installed Darkbloom Preview: the app update doesn't work. The preview's operation log shows each click on Update now ran
darkbloom updateand succeeded:The update was fine. The Updates page reported the wrong version. In attach-only mode (the signed local preview), the bundled desktop API runs child operations through the installed, vendor-signed runtime, but the snapshot's
version, andmachine.versionwhile the provider is stopped, was the API's ownProviderCore.version. The preview bundles an API built from this branch (0.9.17) while the installed runtime is the released 0.9.20. So Updates compared 0.9.17 with the latest 0.9.20, offered Update now, the update found nothing to do, and the offer stayed forever.The same log showed a second preview-only failure: 27 failed provider-cooling attempts:
The released runtime has no
desktopcommand group (desktop --helpprints top-level help and exits 0). Sodesktop configure-cooling, and Studio's local-onlydesktop start-local / stop-local / restart-local, can't run until a runtime release includes them. The UI offered them anyway and showed the CLI's usage text.Base:
codex/desktop-mac-preview-20261012(unmerged desktop stack: #1354 plus the signed preview packaging commits). Release builds, where no runtime is attached and the API is the installed CLI, keep their own version and commands. The diff contains only this fix. The Desktop / frontend check on this base also needs #1455.Before / After
flowchart LR subgraph Before["Before (preview)"] direction TB B1(["Updates page"]):::user --> B2["snapshot.version = API's own 0.9.17"]:::bad B2 --> B3(["“Update now” → darkbloom update:<br/>already 0.9.20 → offer stays"]):::bad B4(["Enable provider cooling"]):::user --> B5["installed CLI: desktop configure-cooling"]:::code B5 --> B6(["Unknown option '--enabled' + usage text"]):::bad end subgraph After["After (preview)"] direction TB A1(["Updates page"]):::user --> A2["runtimeProfile(): installed --version<br/>(re-read when the file is replaced)"]:::fix A2 --> A3(["0.9.20 · You're up to date"]):::good A4(["Cooling page"]):::user --> A5["desktop --help lacks configure-cooling →<br/>control_available false · action refused"]:::fix A5 --> A6(["“macOS manages cooling” · clear message"]):::good end classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb classDef code fill:#312e81,stroke:#a5b4fc,color:#eef2ff classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2 classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5 classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4Legend: blue = user action, indigo = unchanged code path, red = defect, green = changed code / fixed outcome.
Changes
Desktop/DesktopRuntimeProfile.swift(new):DesktopRuntimeProfileholds the child-operation runtime's version and itsdesktopsubcommands.--versionanddesktop --help, and only trusts the latter when the usage line namesdesktop.executable == nil) use this build's own version and commands. The command names come from ArgumentParser's derived_commandName.requireRuntimeSupport()refuses an action whosedesktopsubcommand is missing, saying Darkbloom 0.9.20 doesn't support this yet….DesktopSnapshot.swift:versioncomes from the profile, and so doesmachine.versionunless a fresh daemon state file reports one. A file left behind by an older provider process that has exited is ignored here, like every other daemon field. On the test Mac a leftover 0.9.12 file showed through.DesktopBackend.swift: actions passrequireRuntimeSupportbefore a worker starts.DesktopCooling.swift:control_availablealso requiresconfigure-cooling. The profile lookup happens inside the single shared read, so concurrent readers still share onefan statuschild.Tests/DarkbloomCLITests/DesktopRuntimeProfileTests.swift(new), with a fake older runtime (0.9.20, nodesktopgroup):desktopcommand parsing that ignores top-level helpDesktopCoolingCacheTests: the fake CLI counts onlyfanruns, since profile probes are separate invocations.scripts/test-desktop-api.py: starts with a stale daemon state file (an exited 0.0.1 provider) and checks the stopped machine reports the runtime's version. This check fails without the fix.docs/developer/desktop-app.md,CHANGELOG.md.Validation
I also rebuilt the signed preview with this change and checked it against the installed 0.9.20 runtime; results are in the comment below.
Limitations
🤖 Generated with Claude Code