Repository navigation
Show active child threads as rows and unfold the rest from a count chip - #6009
Closed
alexandre-vl wants to merge 6 commits into
Closed
alexandre-vl wants to merge 6 commits into
alexandre-vl wants to merge 6 commits into
Conversation
…ou clicked Each background command is one row with its live duration. With two or more, the newest row is the toggle: older commands open above it, oldest first, and the same row folds them back, so it never moves under the pointer in the bottom-anchored prompt stack. The expanded state is per thread and folds back below two commands.
Older rows tick only while unfolded and are dropped once fewer than two commands run. The card is keyed by thread and its open state resets on a thread switch. The list reveals from its bottom edge, the toggle's label keeps a background agent's model, and keyboard focus draws an inset ring inside the card.
The first child's row is always visible and opens the child, or its question when it waits on you. With more children, a count chip at the end of that row unfolds the others above it and folds them back from the same place. A single child is a plain row.
Upstream get-bb#6023 moved active child threads out of the context banner into ThreadChildThreadsBanner, a core row above the thread context segments, and the pull request segment and its tests into the GitHub PR Status plugin. ThreadChildThreadsBanner still renders ActiveChildThreadsCard, so the rows and the count chip carry over as they are: the import takes main's version without AnimatedBody, and the banner tests keep main's Banner harness with this branch's expectations.
# Conflicts: # apps/app/src/components/promptbox/banner/AnimatedBody.test.tsx # apps/app/src/components/promptbox/banner/ThreadBackgroundCommandsCard.test.tsx # apps/app/src/components/promptbox/banner/ThreadBackgroundCommandsCard.tsx # apps/app/src/views/thread-detail/ThreadDetailPromptArea.test.tsx
…s-card-thr_mwgsr32qtd # Conflicts: # apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsx
Contributor
|
This is an automated message. We have closed this pull request because it has been open for more than two weeks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The active child threads card above the composer has the problems #6007 fixes for background commands. On main (
b143a2286),apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsxgives it a header that reads "Active child threads" next to a count pill (:1138,:1141), so even with a single child you have to open the card to see which child is running. The prompt stack is anchored to the composer, so opening the card grows it upward. The header you clicked jumps 94 px, or 106 px on a phone, and the separate collapse row lands under the pointer (:1179-1186). When a child waits on you, the header shows its question, but clicking the header only opens the list (:1112, from #5423). Answering takes a second click on the same question in the list.What changed
A source dev instance with Claude Code child threads: two run
sleepand one waits on a question. A second parent has a single working child. Chromium at 2x: 1280×800, then a 390×844 touch viewport.Answering from the folded card, and the dark theme
3 ⌃) ends the first row. It unfolds the others above it, so the next most relevant child sits right above the visible row. The chip stays put and folds the list back.max-h-40, as on main. The list opens scrolled to the rows next to the chip.prefers-reduced-motionturns the transitions off.buttonlabelled "3 active child threads", witharia-expandedandaria-controls;Files:
apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsx:ChildThreadRowreplacesChildThreadsBody;ActiveChildThreadsCardrenders the rows, the chip and the question view;apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.test.tsxandThreadPromptContextBanner.child-questions.test.tsx: tests for the rows, the chip and its order, the one-click question, and where focus lands after the last answer.apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.stories.tsx: story hints.Stacked on #6007. The first two commits belong to #6007, and this PR is the last commit (compare).
How you verified
pnpm exec turbo run typecheck lint test --filter=@bb/app: passes. 6242 tests pass (4 skipped) across 647 files. Lint reports 0 errors and 248 warnings, down from 252.Six of the changed tests fail against main's banner and pass here:
The two other changed tests pass on both: auto-expanding on a new question, and hiding the stepper and the toggle while a question is open.
Screenshots: a source dev instance (
pnpm dev) with a fresh data directory, and real Claude Code (Haiku 5.5) child threads. Chromium was driven through dev-browser. The GIFs come from a CDP screencast.Geometry, measured in Chromium:
Not checked: Safari/WebKit, the iOS app, a screen reader.