Skip to content

Control panel: always tunnel through the tap, and fix the wrapping layout - #89

Merged
a-Fig merged 1 commit into
mainfrom
panel-fixes
Nov 13, 2026
Merged

a-Fig merged 1 commit into
mainfrom
panel-fixes

Conversation

@a-Fig

@a-Fig a-Fig commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #88

Why

In a live Meet call the panel said "No live feed — Cue is using PUBLIC_URL". With a server and tunnel already running, the panel gave Recall PUBLIC_URL, which goes straight to server.js. Think calls never passed through the panel's tap, so the transcript stayed empty, actions read 0, and the cost line claimed "models $0.000". Tyler's running panel has no cloudflared child of its own, which confirms that fallback.

Change

  • scripts/panel.mjs: every bot the panel sends now goes through the panel's own cloudflared quick tunnel to its tap, whatever PUBLIC_URL says. This reuses openTunnel from launch.mjs, and the tap still forwards to the server on PORT, so an existing server is reused as before. The PUBLIC_URL fallback is gone: if the tunnel can't open, sending fails and shows that error rather than silently losing the feed. A second send reuses the panel's tunnel only while the panel's own tunnel process is alive.
  • The page shows "models —" until a think call reports usage, because no data isn't $0.
  • The top bar's "cue / control panel" and the status pill stay on one line (white-space: nowrap; flex-shrink: 0).
  • The rail shows the meeting code (zxb-pcxx-xxx), with the full link as a tooltip and a copy button.
  • Before the first line arrives, the transcript pane says "Waiting for someone to speak…" with a calm, slowly pulsing mic and a hint to admit Cue from the lobby and speak. The "No live feed" state, which showed the "!" icon, is removed.

Screenshots

1280×720, against a stand-in Recall and a stand-in Cue server.

Idle:
1-idle.png

In the call, waiting for the first line (PUBLIC_URL set, and the cost line reads "models —"):
2-waiting.png

In the call, after one think call through the tunnel:
3-in-call.png

Verified

  • npm run check passes.
  • Ran the panel on PANEL_PORT=3911 with PUBLIC_URL pointing at a stand-in Cue server that serves the page, and RECALL_API pointing at a stand-in Recall. Sending a bot started a real cloudflared quick tunnel to the tap. The stand-in Recall received the *.trycloudflare.com address, not PUBLIC_URL. A POST to /api/think through that tunnel showed up in the feed (2 lines, 1 action, "On Cue's screen" updated) and turned the cost line into "models $0.012".
  • Playwright measured the brand, crumb, pill, meeting code and cost line at one line each at 1280px, with no horizontal scroll.
  • Not checked: a real Recall bot in a real Meet. Nothing on :3000, :3900 or the existing cloudflared was touched.

Review

Skipped under CLAUDE.md's rule: no change to server.js, agent.js or Cue's API. This changes only the local panel (scripts/panel.mjs, panel/*).

🤖 Generated with Claude Code

…wrapping, for #88

In a live call the panel fell back to PUBLIC_URL (an existing tunnel to server.js), so the
bot's think calls never passed through the tap: no transcript, 0 actions, and a cost line that
claimed the models had cost $0.000. The panel now always opens its own quick tunnel to the tap,
whatever PUBLIC_URL says; the tap still forwards to the server on PORT. If the tunnel can't
open, sending fails with that error instead of quietly losing the feed.

"models —" until a think call reports its usage, because no data isn't $0. The brand and
status pill no longer wrap, the rail shows the meeting code with the full link as a tooltip
and a copy button, and the empty transcript reads as waiting, not as an error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
a-Fig pushed a commit that referenced this pull request Nov 13, 2026
@a-Fig
a-Fig merged commit 8139d9f into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the panel-fixes branch November 13, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control panel: live feed missing when PUBLIC_URL is set, and layout wraps

1 participant