Repository navigation
feat(web): collapsed thread tabs show provider, PR and draft tabs - #260
Conversation
The collapsed-sidebar tabs said little about each thread and left gaps: no provider, no PR, the status mark on the wrong side, no way to show idle threads, no tab for a new draft, and the tabs could slide under the window's panel buttons. - Each tab leads with the model picker's provider mark and ends with the sidebar card's PR badge (same links) and the status mark. The tab's open button sits behind the content so the badge is its own link, and the hover actions cover only the title's end. - A three-dot menu next to the project filter picks which statuses show (Needs input, Completed, Working by default; Idle optional; never Settled), using the sidebar's project-picker checkboxes. The plus moved beside it. - The open draft gets the first tab, with an X that discards it. - Picking a project that hides the open thread opens that project's first tab. - The chat header's breadcrumb hides while a visible tab already names the open thread. - The strip measures the floating panel buttons and stops 8px short of them. - The Codex mark is a solid #8680ff instead of a gradient. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code-quality review of 90d462df8f
Not approving yet. Everything works as described, but most of the new behavior went straight into CollapsedThreadTabsStrip as index arithmetic and copied sidebar code, when the model and existing helpers were the better place for it. Nothing crosses 1k lines (CollapsedThreadTabs.tsx goes from 382 to 711), but the strip component grew to about 320 lines, and the draft tab is where it got tangled.
Structural, in priority order:
-
The draft tab is an index offset bolted onto the fit math (
CollapsedThreadTabs.tsx:232-257,:425-437).draftIndex,tabAt(index)with itsindex - 1shift,count + (draftTab === null ? 0 : 1), theactiveIndexternary, theindex === draftIndex && draftTab !== nullbranch in render, and thedraftTab === nullspecial case in the project-filter handler all exist because the draft isn't in the list. The code-judo move: have the model return one ordered list,type StripEntry = { kind: "draft"; … } | { kind: "thread"; tab }, built as[...draft, ...shownTabs]. Thenfitruns overentries.length,activeIndexisentries.findIndex(isOpen),openThreadTabbedisvisible.some(i => isOpen(entries[i])), render switches onkind, and the filter handler just asks whether the open entry survives. Every one of those branches disappears. The rule for which draft gets a tab (open, not promoted, not already a thread tab) should be a pure function incollapsedThreadTabsModel.tswith a test row. Right now it's untested logic in render, and the 'no slot fits' case silently drops the draft becausetabAt(0)returnsshownTabs[-1]. -
The PR badge copies
SidebarThreadRow's badge wiring line for line (:531-559,:629-645):useLinkedThreadPullRequest, thesupportsMultiplePullRequestsgate applied twice,currentLinkedPr, the badge shape, thestack || pr || currentLinkedPrpresence test,handlePrClickandhandlePrListClick. That makes three copies of this resolution withBranchToolbarBranchSelector, and four countingThreadSearchPullRequestNumber. The PR describes it as "same resolution, tooltip and click routing", but that sameness is held together by copy-paste, so the next change to the card's PR rules will miss the tab. Extract it once (for exampleThreadCardPullRequestBadge({ thread, openInRightPanel, isOpen, onActivate, render })undercustom/), then have the tab use it and fenceSidebarThreadRowonto it.ThreadTabthen goes back to being layout. -
Draft discard re-implements
Sidebar.tsx'sdiscardDraftThread(:258-276). The comment says "the sidebar's discard does the same", which points to the problem: the ordering invariant (navigate away, thenreleaseComposerDraftUploads, thenclearDraftThread, or the missing-session redirect spawns a fresh draft) now lives in three places, countingSplitPaneHeaderControls. Put it in one helper,discardDraftAfter(draftId, leave: () => Promise<unknown>), and call it from the tab. The project bridge already routes the tab through the sidebar's own code. This sequence deserves the same treatment. -
useTrailingControlsInsetfinds the panel controls with a globaldocument.querySelector(:487-517). That's what forces the dependency-less layout effect that runs on every render, the hand-rolledsubscriptionref, and the separate unmount effect. Two components carrydata-workspace-titlebar-controls(ThreadPanelHeaderControlandWorkspaceTitlebarControls, plusPullRequestsPage), so which one you measure depends on DOM order and onreserveTrailingControlshappening to exclude the other. If ChatView remounts the controls while the strip doesn't re-render, the observer keeps watching a detached node.ChatViewalready computesreserveTrailingControlsand renders the controls: pass the controls element down in place of the boolean, then write a plainuseLayoutEffect(() => observeResize([strip, controls], measure), [strip, controls]). The global query, the ref bookkeeping and the second effect all go away.
Type boundaries:
buildCollapsedThreadTabstakesstatuses: ReadonlySet<SidebarV2StatusBucket>(collapsedThreadTabsModel.ts:34) even though the PR definesCollapsedThreadTabStatus. Use the narrow type so "Settled is never offered" is enforced by the compiler instead of the menu. On the storage side,Schema.Array(Schema.String)+isTabStatus+ theas readonly string[]cast (:95,:105,:184) collapse toSchema.Array(Schema.Literals(COLLAPSED_TAB_STATUSES)), sinceuseLocalStoragealready falls back to the default on a decode failure.toggleStatus(status, checked)only ever receives!statuses.has(status), so it can just betoggle(status).CompletedHoldObserverpassingDEFAULT_STATUS_SETis a required parameter with no meaning there, because the hold tracker runs before the status filter. That suggests the filter belongs to the caller (or as an optional final step), not tobuildCollapsedThreadTabs.
Decomposition and duplication (lower priority):
-
DraftTabandThreadTabrepeat the tab shell: the pill classes, the active and inactive fills, the hover-fademask-imagegradient, and the hover-action overlay. The status-menu trigger also adds a third copy of the long round icon-button class string shared with the plus and More buttons. A smallTabShell(leading glyph, title, trailing, actions) and one shared trigger class would remove most of the new markup. MovingThreadTab,DraftTab, the status menu and the inset hook into their own modules would also keep this file a readable orchestrator. -
Hiding the breadcrumb works by matching CSS against
nav[aria-label="Thread breadcrumb"]through a:has()chain. The guard test makes it safe, and it's a reasonable price for not touching upstreamChatHeader. Just note that it ties layout to an accessibility string, so it's worth a comment at that selector.
Approval bar: #1 through #4 are the blockers. #1 and #4 are code-judo opportunities that delete branches instead of moving them, and #2 and #3 duplicate canonical code. The rest can be follow-ups.
🤖 Generated with Claude Code
| ? { draftId: openDraftId, environmentId: openDraft.environmentId } | ||
| : null; | ||
| // The draft leads the row; thread tabs follow it. | ||
| const draftIndex = draftTab === null ? -1 : 0; |
There was a problem hiding this comment.
The draft gets merged into the list here by offsetting indices (draftIndex, tabAt's index - 1, the +1 count, the activeIndex ternary, and the render and filter-handler branches below). Build one StripEntry[] (draft | thread) in the model instead, and all of these branches go away. It also fixes the silent drop when no slot fits: tabAt(0) reads shownTabs[-1].
There was a problem hiding this comment.
Fixed in a675686. The strip builds one StripEntry[] (draft | thread) and fits that, so the index offsets (draftIndex, tabAt, the +1 count, the ternary) are gone. That also fixes the shownTabs[-1] drop: with no slot, the draft now shows up in the More menu.
| ); | ||
| const discardDraft = (draftId: DraftId) => { | ||
| const next = shownTabs[0]; | ||
| void (async () => { |
There was a problem hiding this comment.
This is a third copy of the 'navigate away, then release uploads, then clear' discard sequence (Sidebar.tsx discardDraftThread, SplitPaneHeaderControls). The comment cites the sidebar's version, which is the smell. Can we extract one discardDraftAfter(draftId, leave) helper that encodes the ordering invariant?
There was a problem hiding this comment.
Declining. The three paths leave in different ways: the sidebar picks a painted neighbour, the split pane focuses its partner and only discards empty drafts, and the tab picks the first tab or the most recent thread. What they share is two lines (release uploads, clear). A helper would also mean editing upstream-owned Sidebar.tsx for no behaviour change, which adds sync risk. The ordering comment stays where it applies.
| const prBadge = supportsMultiplePullRequests | ||
| ? resolveThreadPullRequestBadge(thread.pullRequests) | ||
| : null; | ||
| const openPullRequest = (event: MouseEvent<HTMLElement>, targetUrl?: string) => { |
There was a problem hiding this comment.
This block is SidebarThreadRow's PR resolution and click routing copied line for line (handlePrClick and handlePrListClick, the doubled supportsMultiplePullRequests gate, and the stack || pr || currentLinkedPr presence test at :629). The tab and the card stay in sync only as long as someone remembers to edit both. Can we extract a single ThreadCardPullRequestBadge component and use it in both places?
There was a problem hiding this comment.
Declining for this PR. The source of this logic is the card row inside upstream-owned Sidebar.tsx. Extracting a shared component there means rewriting upstream code inside fork fences, which every upstream sync then has to re-patch. Both copies call the same shared pieces (useLinkedThreadPullRequest, resolveThreadPullRequestBadge, ThreadPullRequestBadgeControl, useOpenPrLink), so resolution and rendering can't drift. Only the open-in-panel routing is duplicated, and that's tracked as a follow-up.
| // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- holds a ResizeObserver on the floating controls, which ChatView remounts (root or header) outside this component, so each render re-finds them | ||
| useLayoutEffect(() => { | ||
| const controls = | ||
| strip === null ? null : document.querySelector("[data-workspace-titlebar-controls]"); |
There was a problem hiding this comment.
The global querySelector is why this needs a dependency-less layout effect, a manual subscription ref and a second unmount effect. Two components render data-workspace-titlebar-controls, so correctness depends on DOM order. ChatView already decides reserveTrailingControls and renders the controls, so it can pass the element down. Then this becomes useLayoutEffect(() => observeResize([strip, controls], measure), [strip, controls]).
There was a problem hiding this comment.
Partly fixed in a675686. The lookup is now scoped to this pane's own layout (strip.closest('[data-chat-column]').parentElement), so other panes and views (PullRequestsPage, ThreadPanelHeaderControl) can't match. A stale inset is cleared when the controls leave. I kept the lookup in the strip rather than threading a ref through ChatView: the controls remount between the workspace root and the header as the right panel opens and closes, and a ref would add plumbing in upstream ChatView.tsx / PanelLayoutControls.tsx without a behaviour difference.
| /** Already filtered to the threads the sidebar lists (filterSidebarV2VisibleThreads). */ | ||
| readonly threads: readonly EnvironmentThreadShell[]; | ||
| readonly projectGroups: readonly TProject[]; | ||
| readonly statuses: ReadonlySet<SidebarV2StatusBucket>; |
There was a problem hiding this comment.
This should be ReadonlySet<CollapsedThreadTabStatus>, so the compiler enforces 'Settled is never offered'. The same change lets the component replace Schema.String + isTabStatus + the cast with Schema.Array(Schema.Literals(COLLAPSED_TAB_STATUSES)).
There was a problem hiding this comment.
Fixed in a675686. statuses is ReadonlySet<CollapsedThreadTabStatus> with a narrowing guard in the model, and storage decodes Schema.Array(Schema.Literals(COLLAPSED_TAB_STATUSES)), so isTabStatus and the cast are gone.
NoahHendrickson
left a comment
There was a problem hiding this comment.
Reviewed commit 90d462df8f5c1fc01329a9a8f93a6af96da4ec0c against base 1cbd9f2bab5d10ae81dc40297fbf92f23ba10136. Found two correctness issues in the collapsed thread tabs; details are inline.
Validation: the focused collapsed-thread model and fork guard suites pass (2 files, 15 tests).
| const openThreadTabbed = fit.visible.some( | ||
| (index) => index === draftIndex || tabAt(index)?.threadKey === openThreadKey, | ||
| ); |
There was a problem hiding this comment.
[P2] Check the leading pane’s thread before hiding its breadcrumb
openThreadKey comes from the global route, but this strip is mounted only in the leading ChatView, whose thread can differ from the route in a split. For example, pair an idle thread A on the left with a working thread B on the right, collapse the sidebar, and focus B. B has a visible tab, so this becomes true and the new CSS hides A’s breadcrumb even though A has no tab under the default status filter. The left transcript consequently loses its thread/project label, while B retains its own header. Determine breadcrumb visibility using the containing ChatView’s thread/draft identity, independently of the globally focused tab.
There was a problem hiding this comment.
Fixed in a675686. ChatView passes the pane's own activeThreadKey (paneThreadKey), and data-open-thread-tabbed is set only when that thread (or draft) has a visible tab. A split's left pane keeps its breadcrumb when the focused right thread is the tabbed one.
| : draftIndex, | ||
| }); | ||
| const overflowTabs = fit.overflow.flatMap((index) => shownTabs[index] ?? []); | ||
| const overflowTabs = fit.overflow.flatMap((index) => tabAt(index) ?? []); |
There was a problem hiding this comment.
[P2] Keep the draft in the overflow representation
The fitter counts the draft as index 0, but tabAt(0) resolves to shownTabs[-1], so this conversion silently drops it whenever it overflows. At a measured nav width of 100px, for example, a lone draft produces visible: [] and overflow: [0], then overflowTabs: []; neither the draft tab nor a More menu renders. With other threads, More contains only those threads. This is reachable in a narrow split pane or with many project filters, and removes the draft’s new discard control precisely when it should move into overflow. Preserve draft entries in the overflow menu, including their discard action, or reserve a visible slot for the draft.
There was a problem hiding this comment.
Fixed in a675686. The draft is a real strip entry now, so when no slot fits it moves into More (with its pencil and title) instead of disappearing. Its X stays on the draft itself.
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code review of 90d462df8f5c1fc01329a9a8f93a6af96da4ec0c (Claude Code /code-review, high). I checked each finding against the source before posting. Lint and tests weren't run, because node_modules isn't installed in the review worktree.
- Hiding the breadcrumb hides the rename input too. Right-clicking the header still offers Rename, but the input appears inside the hidden nav. The rename can't be seen or committed.
- The project filter navigates away from threads that never had a tab, even when you pick All.
- The draft tab's title and provider differ from the sidebar's draft card: it skips the context-reference replacement and the project-default model fallback.
- Smaller issues: hover actions overflow at the minimum tab width, the controls inset is found with a document-wide query, provider entries are rebuilt on every render, and discarding the only draft lands on
/, which creates a new draft.
I dropped the Codex mark recolour as a scope note because the PR body discloses it.
| :root[data-fork="noahhendrickson-t3code"] | ||
| [data-chat-column]:has(> [data-fork-thread-tabs][data-open-thread-tabbed]) | ||
| > [data-chat-header] | ||
| nav[aria-label="Thread breadcrumb"] { |
There was a problem hiding this comment.
Rename gets stuck in a hidden input. This hides the whole nav[aria-label="Thread breadcrumb"], but handleHeaderContextMenu (ChatHeader.tsx:247, bound on the breadcrumb container at :284) is still live on the visible header row. Steps: collapse the sidebar on a thread that has a visible tab, right-click empty header space, pick Rename. startRename mounts the autoFocus title input inside the display:none nav. It never gets focus or blur, so the rename can't be committed or cancelled. While renamingTitle !== null, the header's context menu also returns early, so the header stays stuck until the thread changes. Two possible fixes: hide only the breadcrumb items and keep the nav visible while renaming, or redirect rename to the tab.
There was a problem hiding this comment.
Confirmed and fixed in a675686. The rule is now nav[aria-label="Thread breadcrumb"]:not(:has(input)), so the breadcrumb comes back while the rename input is mounted and the rename can be seen, committed or cancelled. The guard pins the selector.
| <SegmentedTabs | ||
| aria-label="Filter threads by project" | ||
| value={[projectKey]} | ||
| onValueChange={(value) => { |
There was a problem hiding this comment.
The filter replaces threads that never had a tab. !nextTabs.some(tab => tab.threadKey === openThreadKey) is also true when the open thread isn't tab-eligible under any filter: settled, Idle with Idle unchecked, snoozed, or a subagent. Open a settled thread from More, history or search, then click a project chip, or even All, and openThread(first) replaces the thread you were reading. The PR describes this as "a filter that hides the open thread". To match that, only redirect when the open thread was tabbed under the previous filter, for example by checking tabsIn(projectKey) before the switch.
There was a problem hiding this comment.
Confirmed and fixed in a675686. The decision moved to collapsedFilterSwitchTarget in the model: it redirects only when the open thread had a tab under the previous filter and the new one hides it. Settled, snoozed, idle-unchecked or subagent threads stay open. Table test added; the 'never had a tab' row fails on the old logic.
| readonly onDiscard: () => void; | ||
| }) { | ||
| const title = useComposerDraftStore((store) => | ||
| sidebarDraftTitleFromPrompt(store.getComposerDraft(props.draftId)?.prompt), |
There was a problem hiding this comment.
The draft title differs from the sidebar's draft label. The sidebar passes the prompt through replaceComposerContextReferences(..., o => o.label) before sidebarDraftTitleFromPrompt (Sidebar.tsx:2592, upstream pingdotgg#11265). Here the raw prompt is used, so a draft that starts with an attached file or context chip shows the serialized reference token in the tab while the sidebar card shows foo.ts ….
There was a problem hiding this comment.
Fixed in a675686. The draft title goes through replaceComposerContextReferences(..., o => o.label) before sidebarDraftTitleFromPrompt, the same as the sidebar card. The overflow menu's draft row uses the same DraftTitle.
| const title = useComposerDraftStore((store) => | ||
| sidebarDraftTitleFromPrompt(store.getComposerDraft(props.draftId)?.prompt), | ||
| ); | ||
| const instanceId = useComposerDraftStore((store) => { |
There was a problem hiding this comment.
The draft tab drops the provider fallback. This reimplements sidebarDraftModelSelection without its fallback. When the composer hasn't stored an activeProvider yet, the sidebar card falls back to the project's default model (Sidebar.tsx:2583) and shows its mark, but this tab shows none. Reusing sidebarDraftModelSelection with the same project-default fallback would keep the two in sync.
There was a problem hiding this comment.
Fixed in a675686. The tab uses the composer's pick, else the draft's project's defaultModelSelection, matching sidebarDraftModelSelection's fallback. Unassigned New agent drafts have no project, so they keep the composer's pick only.
| </button> | ||
| {thread.title} | ||
| </span> | ||
| <span className="pointer-events-none absolute inset-y-0 right-0 flex items-center gap-0.5 opacity-0 group-focus-within/tab:pointer-events-auto group-focus-within/tab:opacity-100 group-hover/tab:pointer-events-auto group-hover/tab:opacity-100 [@media(any-hover:none)]:hidden"> |
There was a problem hiding this comment.
Hover actions can overflow narrow tabs. The action cluster is now absolutely positioned at the right edge of the title wrapper, not the tab. At min-w-[112px] with a provider glyph, PR badge and status mark, the title wrapper is roughly 10px wide: 112 − 20 (padding) − 16 (glyph) − 18 (gaps) − ~35 (badge) − ~12 (mark). The ~42px Settle/More cluster would then spill left over the glyph and past the tab's left edge, because the tab doesn't clip. Worth checking with many tabs open and a PR on one of them.
There was a problem hiding this comment.
Real but cosmetic, and only at the 112px minimum with a PR badge. Declining for now: the clean fixes don't work here. overflow-hidden on the tab would clip the glass dark-edge ::after (inset: -1px), and a container query would add inline-size containment, which breaks the tab's shrink-from-title sizing that fitCollapsedThreadTabs relies on. Tracked as a follow-up.
| // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- holds a ResizeObserver on the floating controls, which ChatView remounts (root or header) outside this component, so each render re-finds them | ||
| useLayoutEffect(() => { | ||
| const controls = | ||
| strip === null ? null : document.querySelector("[data-workspace-titlebar-controls]"); |
There was a problem hiding this comment.
The controls lookup isn't scoped to this view (plausible). document.querySelector("[data-workspace-titlebar-controls]") returns the first match in the document. ThreadPanelHeaderControl, WorkspaceTitlebarControls and PullRequestsPage all set this attribute. If another pane or view renders one earlier in DOM order, the strip measures the wrong box and its paddingRight comes out wrong. Also, when the controls unmount and the strip stays, inset is never reset, so the stale padding remains. The query also re-runs on every render. Passing a ref or width from ChatView, which owns the controls, would avoid all three.
There was a problem hiding this comment.
Fixed in a675686: the lookup is scoped to this pane's layout and a stale inset is cleared when the controls unmount. The per-render querySelector is a scoped lookup with no layout read, and it only re-subscribes when the element changes.
| wokeAt: threadWokeAt(thread, { now }), | ||
| }).topStatus; | ||
| // The sidebar's per-environment lookup: default instance ids collide across environments. | ||
| const providerEntries = deriveProviderEntriesByEnvironment( |
There was a problem hiding this comment.
Provider entries are rebuilt on every render. deriveProviderEntriesByEnvironment runs again, with fresh Maps, on every strip render. The strip re-renders on thread-shell changes while agents stream and on the minute and wake-clock ticks. The sidebar already has a memoized, identity-preserving sidebarProviderEntriesAtom for this lookup. Exporting it and reading it here would remove the per-render work and keep the two lookups from drifting apart.
There was a problem hiding this comment.
Not an issue here: apps/web builds with react({ compiler: true }) (vite.config.ts:308), so the React Compiler caches deriveProviderEntriesByEnvironment(...) on its inputs, the providersByEnvironment and serverConfigs atom values, which keep their identity between unrelated renders. Streaming shell updates and clock ticks don't rebuild it. Sharing the sidebar's atom would mean exporting from upstream Sidebar.tsx.
| const openThreadTabbed = fit.visible.some( | ||
| (index) => index === draftIndex || tabAt(index)?.threadKey === openThreadKey, | ||
| ); | ||
| const discardDraft = (draftId: DraftId) => { |
There was a problem hiding this comment.
Discarding the only draft creates a new one. With no thread tabs shown, discard navigates to /. _chat.index.tsx:54 immediately starts a draft in the most recent project and redirects to /draft/<new>, so a new "New thread" tab replaces the one you discarded. If the goal is to leave the draft state, this path needs a different destination.
There was a problem hiding this comment.
Confirmed and fixed in a675686. With no thread tab shown, discard now opens the most recently updated visible thread. It only falls back to / when there are no threads at all, where a fresh draft is the only option anyway.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
…ename Review fixes on #260: - The draft is a real strip entry, so it moves into More instead of vanishing when no slot fits. - The breadcrumb hides on the pane's own thread, not the route's (splits), and stays while renaming, whose input lives in it. - Switching projects only replaces a thread that had a tab (collapsedFilterSwitchTarget, tested). - The draft tab reads the sidebar's label (chips as their labels) and falls back to the project's default model. - Discarding the only draft opens the most recent thread instead of home, which would start a fresh draft. - The controls measurement is scoped to this pane and drops a stale inset. - Stored statuses decode as the offered literals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Response to the three reviews on Fixed
Declined, reasons in the inline replies
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Re-review of 50ff510ffb (Claude Code /code-review high, covering a67568633e and 50ff510ffb, which no reviewer had looked at). I checked each candidate against the source before posting.
The earlier fixes hold up: the draft is now a real strip entry, the filter switch is in the model and tested, rename keeps the breadcrumb, and discarding the last draft opens the newest thread. Two findings, inline below:
- Correctness, medium: the panel-controls measurement can stay bound to a detached node after the right panel closes, which squeezes every tab into More until something else re-renders the strip.
- Design, low to medium: hiding the whole breadcrumb also removes affordances the tab doesn't replace.
Checked and dropped:
- Discarding a draft that's in a split leaves a stale pair.
SplitThreadPanesalready dissolves a pair whose partner is missing, discarded drafts included, and the sidebar's own discard relies on that. - The draft title re-renders on every keystroke. The selector returns a string, so only the title span re-renders, and only until the title reaches its truncation length. A live title is what the PR asks for.
- The provider entries rebuild. The React Compiler caches
deriveProviderEntriesByEnvironmentuntilserverConfigsorprovidersByEnvironmentchange, so the cost is visible tabs re-rendering on a provider update. That's minor. - The breadcrumb rule depends on the aria-label.
forkCollapsedThreadTabs.test.tspins both strings. - Not re-raised: the hover-action overflow at 112px, and the shared discard and PR-badge extractions, which are already declined with reasons in their threads. Also too small to post:
DraftTabinlinessidebarDraftModelSelection's few lines, and with every status unchecked the row still says "No active threads".
Verdict: neither finding is a merge blocker. Finding 1 can visibly break the row for up to a minute after closing the right panel, so it's worth fixing first if it's quick.
🤖 Generated with Claude Code
| :root[data-fork="noahhendrickson-t3code"] | ||
| [data-chat-column]:has(> [data-fork-thread-tabs][data-open-thread-tabbed]) | ||
| > [data-chat-header] | ||
| nav[aria-label="Thread breadcrumb"]:not(:has(input)) { |
There was a problem hiding this comment.
Hiding the whole nav removes more than the repeated title. The comment says a visible tab "names the open thread and its project", but ThreadTab and DraftTab show the title, the provider, the PR badge and the status. They never show the project. Everything else in this nav goes with it:
- the project name and its New thread in {project} button,
- the parent-thread link for delegated threads (
ChatView.tsx:929). Those can have tabs, since only subagent threads are excluded, - the title's click menu and double-click rename (the header row's right-click menu still works),
- the From {origin} badge for threads an agent started through a linked environment.
If the goal is only to stop repeating the title, hiding just the current WorkspaceBreadcrumbItem's text would keep the rest. Otherwise, at least keep the parent link and the origin badge, which nothing else on screen shows.
Problem
The collapsed-sidebar thread tabs (#254) said little about each thread: no provider, no pull request, and the status mark on the left. You couldn't show idle threads, the plus left no tab for the new draft, switching projects left a hidden thread open, the chat header repeated the tab's title, and on some threads the last tab and the plus slid under the window's floating panel buttons.
Change
ScopeCheckboxItem, now exported). The plus moved next to it, so tab fitting no longer reserves its width.#8680ffinstead of a gradient. This applies to the model picker too.Scope and approval
Fork-only presentation change to an existing fork feature (
fork-collapsed-thread-tabs), requested by the maintainer. No server, contracts or mobile changes.Verification
vp run check:changed: format, lint, knip and typecheck pass. The only test failure isscripts/build-desktop-artifact.test.ts, which fails on Apple Silicon regardless of this change..fork/lint-owned.mjsandvp run knip:checkpass.collapsedThreadTabsModel.test.ts, the fit rows after the plus moved, and the breadcrumb rule in theforkCollapsedThreadTabsguard.🤖 Generated with Claude Code