Repository navigation
Add npm run panel: a local page to send Cue into a call, watch it, take it out - #39
Merged
Merged
Conversation
…take it out Running Cue meant a terminal (#30). Tyler asked for a local web app so the person running Cue, and the demo video, get a nicer experience (#32). The panel is its own process bound to 127.0.0.1, never part of server.js: server.js is public over the tunnel, and a public send button would let anyone spend the Recall credit. It also refuses foreign Host headers (DNS rebinding) and POSTs without its x-cue-panel header (cross-site forms). What Cue hears lives in the bot's page, not the server, so the tunnel points at a small pass-through the panel runs in front of server.js. It forwards every request and response unchanged and keeps each think call's new transcript lines and actions in memory for the feed. No server.js change, so Drew's area and the review rule stay untouched. cue.mjs's start-up moves to scripts/launch.mjs so both share it; `npm run cue` prints the same lines as before. recall.mjs takes RECALL_API to point at a stand-in Recall, which is how the flow was tested without billing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The tap ignored nothing: anyone with the tunnel address could post a tokenless think call and its transcript and screen showed up as Cue's. Calls server.js refuses (401) are now dropped, kept fields are trimmed, and the body copy is capped by bytes. - Ctrl+C or Take Cue out while Recall was still creating the bot left it joining with nobody to remove it. Both now wait for the bot's id first, and the panel's button cancels during start-up. - launch.mjs reports each child as soon as it spawns, so a Ctrl+C during the server or tunnel wait stops them (cue.mjs used to do this). - The panel gives up on 'leaving' after 90 s without Recall confirming, says so, and frees the send button. - The page refetches its feed when the panel process restarts. - A tunnel that dies mid-call is shown as an error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Paper and ink from brand/tokens.css, Cue Blue for status, the lime highlighter for what Cue did, Cal Sans / Lato / JetBrains Mono, and the logo from public/ (served read-only by name). Cue's screen preview turns ink with the lime mark while Cue is listening, as its real screen does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
18 tasks
This was referenced Nov 13, 2026
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.
Closes #32
Why
Running Cue meant a terminal (
npm run cue, #30). Tyler asked for a local web app that makes this feel good for the person running Cue, and the demo (#9) will show that person as well as the call. It's also a step toward #16.Change
npm run panel→scripts/panel.mjs, servingpanel/athttp://127.0.0.1:3900(PANEL_PORT). Paste a Meet link, press Send Cue in, and the page shows:CUE_MAX_MINUTES, asnpm run cuedoes);RECALL_API_KEYdisables the button and says why; a missingAGENT_TOKENor Claude key is a warning; tunnel failures and Recall refusals show as "Cue couldn't get into the call" with Recall's reason in words.127.0.0.1and isn't served byserver.js, which is public over the tunnel; a public send button would let anyone spend the Recall credit. It also refuses anyHostbut its own (DNS rebinding) and any POST without itsx-cue-panelheader (a form post from another tab).npm run checknow checks those guards.server.js. The transcript lives in the bot's page, not the server, so the tunnel points at a small pass-through the panel runs on 127.0.0.1 in front ofserver.js. It forwards every request and response unchanged (status, headers, body) and keeps, in memory only, each think call's new transcript lines and returned actions.AGENT_TOKENnever reaches the panel page or its logs. If cloudflared fails andPUBLIC_URLserves Cue, the panel falls back to it and says the feed stays empty. eminent-stencil agreed to this over aserver.jslog line.scripts/launch.mjsnow holds whatcue.mjsdid (server, tunnel, Recall status words, a status-watch loop).cue.mjsis a thin CLI over it and prints the same lines as before. cuddly-lobster, who wrote it, OK'd the split.recall.mjstakes an optionalRECALL_APIbase URL so the flow can run against a stand-in Recall without billing.public/,server.jsandagent.jsare unchanged.Borrowed, per
steal-great-ui: the single centred composer before a call (Astryx's AI Chat Landing template); the phase stepper with per-step times and a header that holds the status and the one action (Astryx's Inline Wizard and Order Detail templates, Vercel's deployment steps); a timestamped feed that freezes with "Cue left at 1:27 PM. Nothing more is recorded." (Vercel's build logs); red and amber reserved for failures and the lobby so they stand out at a glance (Vercel logs). The look is Cara's brand kit (#43): paper and ink frombrand/tokens.css, Cue Blue for status, the lime highlighter for what Cue did, Cal Sans / Lato / JetBrains Mono, and the logo frompublic/. The screen preview turns ink with the lime mark while Cue is listening, as its real screen does.Screenshots
All taken with Playwright against a stand-in Recall and a stand-in server, through a real cloudflared tunnel. The transcript lines were posted through the tunnel the way the bot's page posts them.
Before a call:
Waiting in the lobby:
In the call, with the live feed:
After Take Cue out:
Recall refusing the bot:
At phone width:
Verified
npm run checkpasses, including the new panel checks (page loads, foreign Host → 403, POST without the header → 403, a non-link → 400).RECALL_API) through a real quick tunnel: send → joining → lobby → in call → take out → left; and Recall refusing the bot.server.jsitself:/app.jsthrough the tunnel is byte-identical to direct (same SHA-1, same content-type and cache-control), and a think call without the token gets the server's own 401.npm run cueafter the refactor, against the stand-in withCUE_MAX_MINUTES=0.4: same output as before, leaves on time, exits 0; no argument still prints usage.Review
An Opus review covered e41c68b (strictly, the skip rule applies:
server.js,agent.jsand the API are unchanged, but the tap sits on the public path). It found no blockers and six gaps, all fixed in e276e6e:server.jshad refused, so anyone with the tunnel address could put fake lines and a fake screen in the panel. 401s are now dropped, kept fields are trimmed, and the body copy is capped by bytes.npm run cuenow wait for the bot's id first; during start-up the panel's button reads Cancel and stops before anything is sent.launch.mjsnow reports each child as it spawns.8a75837 (brand kit styling) is page-only and wasn't reviewed.
🤖 Generated with Claude Code