[Bug]: Thread details side-tabs (Subagents/Lineage/Automations/Background Tasks) disappear once rows populate #15304
Area#
apps/web
Steps to reproduce#
- Open the app in a ~1400x800 window.
- Open a thread backed by a git worktree/repo.
- Run several subagents (or otherwise populate Subagents / Lineage / Automations / Background Tasks rows).
- Watch the right-side Thread details card: once the rows populate, the Subagents / Lineage / Automations / Background Tasks sections vanish.
- Inspect the card:
dataset.densityhas flipped fromfulltocompact.
Expected behavior#
Populating Subagents / Lineage / Automations / Background Tasks rows should not remove those same sections. The card already renders inside a ScrollArea, so added content should scroll, not gate the sections out of existence.
Actual behavior#
The four sections disappear exactly when they gain content. ThreadDetailsPanel gates all four on density === \"full\":
apps/web/src/components/chat/ThreadDetailsPanel.tsx:227(Automations),:231(Background Tasks),:239(Subagents),:243(Relationships/Lineage) — each{density === \"full\" && !props.draftId ? ... : null}densitycomes fromresolveThreadDetailsCardDensity(height, contentHeights)(apps/web/src/components/chat/threadDetailsCardLayout.ts:3-10), computed inThreadDetailsCard.tsx:55; the measured content height grows when the rows populate, sofullcontent no longer fits and density folds tocompact— unmounting the rows that caused the growth.- Supporting context: measurement retains per-density heights (
ThreadDetailsCard.tsx:86-91) and never re-expands within the same content; card placement also returnsnull(popover fallback) when width < 240 (threadDetailsCardLayout.ts:26) or height < 160 (threadDetailsCardLayout.ts:34).
Impact#
Major degradation or frequent failure
Version or commit#
origin/main @ 71dbaf1f94b580491d033f2e347a9b1c507fd793
Environment#
macOS, web app (apps/web), any thread with subagents/automations/background tasks present.
Suggested fix direction#
Drop the density === \"full\" conjunct from the four gates in ThreadDetailsPanel.tsx:227-247 (keep the existing !props.draftId check) and let the existing ScrollArea in ThreadDetailsCard.tsx:108 scroll the overflow, instead of unmounting sections precisely when they have content.
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
juliusmarminge added labelsbug
juliusmarminge added labelsvia-triage
Opened PR https://github.com/pingdotgg/t3code/pull/15348 for the Previous agents expansion trigger described here.
Expanding the completed-agent list overwrote the card's fitting measurement with the taller content, which selected compact density and unmounted Lineage. The patch keeps a stable minimum measurement for density decisions and retains the latest expanded height separately so the floating preview still clears the real card.
Verified with 16 completed agents in the T3 Browser panel: in a 420px-tall chat canvas, the card remains 396px tall and Lineage stays mounted; showing all 16 agents produces a scrollable list. The PR includes before/after screenshots, a recording, and focused regression coverage.
This addresses expansion after the collapsed card has been measured. It preserves intentional folding when available space drops and does not claim to resolve every initial-population scenario in this issue.
Note
Grok responding on behalf of Julius.
This should be fixed by #16635, which just merged to
main. Lineage is no longer counted when the card picks its density, so populating or expanding Lineage rows doesn't flip the card tocompactand unmount the section anymore. The expanded rows now use the existing scroll areas. If Automations rows still fold the card on a current build, comment here and we'll reopen.juliusmarminge closed this
@juliusmarminge
The Automations case still reproduces on
0.1.6-nightly.20261030.3904, macOS arm64, release commit36dac688a17c6de1c6398e62d01546fb787c185b.Following your closing note about reopening if Automations still folds the card, I captured this on the affected thread through T3's Browser panel:
- The thread had 13 bound automations, 12 paused. Their section occupied 679 CSS px. Lineage was enabled but absent before any attempt to toggle it.
- At a 1536 × 960 CSS px viewport, the card had 884px available, while its measured full fitting height was 1012px. It selected
data-density="compact"and unmounted both Automations and Lineage, leaving a 268px card with empty space below it. - Changing only the viewport to 1536 × 1500 provided 1424px. The card selected
full, and Automations, Lineage and Previous agents immediately appeared. - Returning to 1536 × 960 reproduced the disappearance. Toggling Lineage off and on did not restore it. The underlying delegated-task relationships were present.
The fitting measurement excludes Lineage and PR lists, but does not exclude the Automations section. The panel still gates Automations and Lineage on full density.
These measurements were captured at 07:29 UTC on October 30, before subsequent schedule cleanup. No source changes were made. Could you reopen this for the remaining Automations case?
— EtanHey's T3 triage agent (worker) · codex/gpt-6.1-sol
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
Triage#
Thanks for the detailed report, @tarunravi! I can confirm this on
mainat71dbaf1. The sections really are being folded away, not failing to mount.ThreadDetailsPanelonly renders two of these blocks whendensity === "full"and the thread isn't a draft:ThreadAutomationsPanelatapps/web/src/components/chat/ThreadDetailsPanel.tsx:225ThreadRelationshipsPanelatapps/web/src/components/chat/ThreadDetailsPanel.tsx:229So there are two gates rather than four. This card has no separate Background Tasks section, and Subagents are rows inside the single Lineage section (
ThreadRelationshipsControl). Both panels returnnulluntil they have rows, which is why their headings don't show while they're empty.ThreadDetailsCardstarts atfullwhile the measured full height is still0. Once the measured full tree is taller than the card,resolveThreadDetailsCardDensityinthreadDetailsCardLayout.tssteps down tocompact. The card's max height is the canvas height minus 24px, or less when the preview overlaps it. Populated Lineage is capped (max-h-[13.5rem], with its own scroller), but Lineage plus Automations still sits on top of Workspace and Version Control, and on a ~800px window that total can be taller than the card. The new rows paint atfull, theResizeObserverrecords the taller height, anddata-densityflips tocompact, which unmounts the same panels.That full height is cached per
environmentId:threadId:card widthand isn't measured again while the card iscompact, because those panels aren't mounted then. A taller window or a wider card can bringfullback. Losing the rows that caused the overflow can't, because the cached height still fails the fit check.The
ScrollAreadoesn't help here, because density is picked so the tree fits before that viewport ever scrolls.Likely fix area#
full, let the existing card scroll, and remeasure when their rows change.density === "full"check would reach further than this bug. The environment selector and workspace branch controls are folded on purpose, andthreadDetailsCardLayout.test.tscovers that compact and essential folding.A maintainer will decide on the fix direction.