Repository navigation
feat(desktop): cu desktop — open the UI in the natural browser, single-instance - #1752
Merged
Merged
Conversation
… scope + render wait
Two fixes make `cu interface/capture` a usable "see any interface via a CLI call":
1. Caller scope. The command refused any caller without a persona identity, but
the local `cu` path is owner-by-locality (Unix socket → `None` caller — the
operator on the box). Scope those captures to "local" instead of refusing: the
operator is a first-class caller, just not a persona (a persona still scopes to
its peer_id). Not a fallback — we name the scope, never mint a ghost citizen.
Now `cu interface/capture '{"target":"web","url":"…"}'` works from the CLI.
2. Render wait. Headless Chrome screenshots at the load event — too early for an
SPA that mounts, opens a WebSocket, and renders after the first state frame
(blank page otherwise). Add `--virtual-time-budget=3000` so the page's async
work settles before the capture, bounded by the existing CAPTURE_TIMEOUT.
Verified live: `cu interface/capture` renders + saves a PNG (proven with a static
page — text rendered green-on-dark, 12KB vs a 4KB blank), scoped under
~/.continuum/captures/local/. NOTE: the positron WEB app still renders blank in
headless Chrome (only its dark background captured) though the SAME @continuum/
chat-view pipe renders correctly via the terminal client and a headless node
render — so that's a web-client in-browser bug (mount / browser-WS / pre-state
placeholder), tracked separately, not a capture-path issue.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…gle-instance
The natural-browser twin of `interface/capture` (headless). `cu desktop` opens the
Continuum UI in the operator's DEFAULT browser — their choice, a real visible
window — via the OS opener (macOS `open`, Linux `xdg-open`, Windows `cmd /c
start`), never a hardcoded browser.
Managed as a single-instance resource so it doesn't spawn a new tab every call: a
lightweight on-disk session marker (~/.continuum/desktop/session.json) is the
"lease". A second `cu desktop` for the same URL is a no-op ("already open");
`focus:true` forces a re-open. Start-simple by design — a later slice promotes the
marker to a first-class ResourceGovernor consumer (#56) alongside VRAM / serving /
Bevy, so the window is allocated + reclaimed like any other machine resource.
URL resolves param → `CONTINUUM_DESKTOP_URL` → the local web client on the default
WS ingress. Owner-scoped (the local `cu` operator opens their own box's desktop).
Verified live: 1st call opened the default browser (`opened:true`); 2nd was a
no-op (`opened:false`, "already open") — no duplicate window; `focus:true`
re-opened. This is `cu desktop` per the ask: natural browser, single-instance,
simple.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
cu desktopopens the Continuum UI in the operator's DEFAULT browser (their choice, a real window — the natural-browser twin of the headlessinterface/capture), via the OS opener. Managed as a single-instance resource: a lightweight session marker means a 2nd call is a no-op ("already open") instead of spawning a new tab;focus:trueforces re-open. Start-simple; later promotes to a ResourceGovernor consumer (#56).Verified live: 1st call opened the browser, 2nd was a no-op, focus:true re-opened.
🤖 Generated with Claude Code