Skip to content

feat(desktop): cu desktop — open the UI in the natural browser, single-instance - #1752

Merged
joelteply merged 2 commits into
canaryfrom
feat/cu-desktop
Jul 3, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/cu-desktop

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

cu desktop opens the Continuum UI in the operator's DEFAULT browser (their choice, a real window — the natural-browser twin of the headless interface/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:true forces 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

joelteply and others added 2 commits July 3, 2026 16:25
… 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
@joelteply
joelteply enabled auto-merge (squash) July 3, 2026 21:35
@joelteply
joelteply merged commit 2241811 into canary Jul 3, 2026
@joelteply
joelteply deleted the feat/cu-desktop branch July 3, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant