Skip to content

feat(web): agent tab chip with a circling light, floating browser control bar - #10

Merged
bradleygibsongit merged 1 commit into
mainfrom
t3/right-panel-browser-tab-button
Nov 23, 2026
Merged

bradleygibsongit merged 1 commit into
mainfrom
t3/right-panel-browser-tab-button

Conversation

@bradleygibsongit

Copy link
Copy Markdown
Contributor

Clicking the spinning badge on the right panel toggle opened the add-surface menu instead of the tab the agent was using, and the spinner with the provider logo read poorly. This gives the agent's tab its own chip that names the site, marks activity with a light circling the border, and turns streamed-browser control into a floating bar over the page.

Summary

 chat header (panel shut)
+  <AgentTabChip>  ▸ shopify.com     one click opens the agent's tab in the panel
   [thread details] [⋯] | [panel toggle]   toggle is a plain icon again, opens its own menu

 panel tab row
-  [agent's tab: provider logo + spinning ring]
+  [agent's tab: ▸ arrow + light circling the tab]
-  <AgentBrowserTabPill>
+  <AgentTabChip>                    when the agent's tab has no panel tab

 browser page (streamed tabs)
-  accent glow framing the page
-  address row: [Take control] / [Release control]
+  floating bar: 👁 Watching [Take control]  /  ⬚ You're in control [Stop]
  • Site name (bluecode/siteName.ts): admin.shopify.com → shopify.com, www.bbc.co.uk → bbc.co.uk, shared hosts stay whole (app.vercel.app), anything with a port keeps it (localhost:5233, box.tail1234.ts.net:5173). A short suffix list instead of tldts, which would add ~46 KB gzipped to the web bundle.
  • Light (AgentOrbit + agent-activity.css): a conic-gradient layer masked to the 1px border ring, rotating via transform only, steps(96) over 3.2s (30fps), paused off screen, in hidden windows and under reduced motion by observeVisibleAnimation (reduced motion shows a static accent border instead). It shows only while agentDrivenPreviewTabId says the agent is driving: a running turn, not waiting on the user, not held by a person.
  • useAgentDriving no longer returns the provider instance id; only the removed logo read it.

Evidence

  • Paint cost, headless Chromium, 3s trace per style:

    Style Paints Style recalcs Frames
    Nothing animating 0 0 0
    Old spinning ring 0 0 543
    Light, smooth 0 0 543
    Light, 30fps steps (shipped) 0 0 270
    Border/glow colour loop (for contrast) 362 181 543
  • Real app (dev server, ?agentDriving):

    • The chip sat left of thread details, read localhost:5233, and its tooltip carried the page title.
    • One click opened the tab in split view, and the chip hid. The panel toggle and Maximize kept working.
    • Maximized, the agent's tab showed the arrow and the circling light.
    • The control bar switched "You're in control / Stop" ⇄ "Watching / Take control" both ways.
    • The page glow is gone.
  • Screenshots were reviewed in the T3 thread; not attached here.

  • siteName.test.ts: 17 cases cover subdomains, country second levels, shared hosts, localhost, IPv4/IPv6, ported dev hosts, a trailing dot and non-http URLs.

  • vp run check:changed and vp run i18n:check pass.

  • New strings ("You're in control", "Stop") are in all 10 locales; the removed ones were deleted line by line.

Merge Danger

Door: two-way

Client only: no contracts, no server changes, no migrations. Upstream files carry small edits marked BlueCode:: ChatView, RightPanelTabs, PreviewView. PanelLayoutControls only loses earlier BlueCode code.

Blast Radius: visual

  • The light animates continuously while an agent drives a tab on screen, at the same compositor-only cost as the spinner it replaces.
  • The control bar floats over the bottom of streamed pages and can cover a small element there.
  • The mini-player keeps upstream's bordered control bar.
  • Desktop-local browser tabs have no take/release, so they show no bar.

🤖 Generated with Claude Code

Opus 5.5 via Claude Code in T3 Code

…trol bar

While an agent drives a browser tab with the panel shut, a chip beside thread
details names the site (shopify.com, localhost:5233) and opens that tab in one
click, so the panel toggle keeps its own job. A light circles the chip, and the
agent's tab in the panel, while the turn runs; it only rotates a layer, stepped
to 30fps and paused off screen, so the page never repaints for it. The arrow
replaces the provider logo and spinner, and the page no longer gets an accent
frame.

Streamed browser tabs show who is in control as a bar floating over the page:
"Watching / Take control" and "You're in control / Stop".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T08:04:50.486365Z
We couldn’t complete this review. Comment @codex review to try again.
8e9f24b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@bradleygibsongit
bradleygibsongit merged commit 9e8ae11 into main Nov 23, 2026
20 checks passed
@bradleygibsongit
bradleygibsongit deleted the t3/right-panel-browser-tab-button branch November 23, 2026 08:09
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.

1 participant