Skip to content

feat(web): agent state glyphs in the sidebar and tabs, titled chat tab - #8

Merged
bradleygibsongit merged 1 commit into
mainfrom
t3/agent-working-state-variants
Nov 22, 2026
Merged

bradleygibsongit merged 1 commit into
mainfrom
t3/agent-working-state-variants

Conversation

@bradleygibsongit

Copy link
Copy Markdown
Contributor

Agents' working and waiting states were a mix of lucide icons, words and dots that differed between the sidebar and the main-area tabs, and the full-width chat tab was an unlabeled icon. This gives every surface one glyph per state and makes the chat tab a real tab.

Summary

One state model and one glyph, used by the sidebar rows and the main-area tabs:

resolveSidebarRowStatus + unread/woke flags
  agentStateOf()            (bluecode/agentState/agentState.ts)
    <AgentStateIndicator>   (bluecode/agentState/AgentStateIndicator.tsx + agent-state.css)
      SidebarThreadRow        glyph only, no status words
      RightPanelTabs
        chat tab              glyph replaces the chat icon while busy or waiting on you
        side chat / subagent  glyph replaces the tab icon
State Glyph
Setting up / Working / Waiting Orbit ring; the arc turns only while working (transform only, paused off screen)
Approval · Input · Guest · Limited · Failed · Woke Filled disc in the state's colour with ! · ? · person · pause · × · clock cut out
Done, unread Blue disc with a check (fixed blue; some themes make --primary near black)

Full-width tabs:

-[💬] [Terminal 1] [+]
+[💬 Thread title] › [Terminal 1] [+]

Clicking the open thread's sidebar row (or Enter on it) while a full-width tab is in front brings the chat tab back (bluecode/returnToChatTab.ts). Split view is unchanged.

Dev-only gallery of every state, light and dark: /__bluecode/agent-states.

Evidence

  • Real app, dev server with Replay threads: sidebar showed the ? disc for a thread awaiting input and check discs for unread threads, with no words; the maximized chat tab read "Replay question › Terminal 1"; clicking that thread's row with Terminal in front switched to the chat tab with the composer focused.
  • returnToChatTab.test.ts: full width with a tab in front → full-chat; full width with the panel hidden and split view → unchanged.
  • agentState.test.ts: sidebar status + unread/woke → glyph state.
  • vp run check:changed and vp run i18n:check pass. The only catalog change is the removed "Woke" row label key, deleted line by line so upstream's catalog order is untouched.

Screenshots were reviewed in the T3 thread; not attached here.

Merge Danger

Door: two-way

Client-only; no contracts, server or migration changes. Upstream files carry small edits marked BlueCode: (SidebarThreadRow, RightPanelTabs, ChatView, Sidebar, main.tsx).

Blast Radius: visual

Sidebar rows lose their status words (screen readers still get them from the row name). The Working glyph animates continuously while on screen. Mobile still shows the old indicators.

🤖 Generated with Claude Code

Opus 5.5 via Claude Code in T3 Code

Sidebar rows and main-area tabs now share one agent state glyph. Busy states
are a ring that turns while the agent works; states that need you are a
coloured disc with an icon (approve, answer, guest, limit, failed, woke); an
unread finished turn is a blue check dot. Sidebar rows show the glyph without
words. At full width the chat tab names its thread, sits apart from the other
tabs, and clicking the open thread in the sidebar brings it back to the front.
A dev-only gallery at /__bluecode/agent-states shows every state.

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-22T11:38:36.323126Z
We couldn’t complete this review. Comment @codex review to try again.
454c1db 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 enabled auto-merge (squash) November 22, 2026 11:38
@bradleygibsongit
bradleygibsongit merged commit 02ab822 into main Nov 22, 2026
20 checks passed
@bradleygibsongit
bradleygibsongit deleted the t3/agent-working-state-variants branch November 22, 2026 11:43
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