Repository navigation
Remove the child question cards above the composer - #5391
Conversation
Clicking a waiting child thread (or the collapsed "child: question" header) opens its question inside the banner instead of showing every question as a card above the composer. With more than one child thread, the header becomes "‹ Active child threads" and returns to the list (Esc does too); "‹ 1 of n ›" steps between waiting questions on the question row. The form uses question-card sizes without bold, Decline on the left and Submit on the right, and answering moves to the next question. Built-in plugin forms (Codex, Ask User Question, pi) go compact through the question form host they already read from bb; the plugin SDK is unchanged, and the registry's copy of the form stays at its default density. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The compact question form hid its own question line on the assumption that the banner's "child: question" row already showed it. Ask User Question titles its requests with a short label, so the banner showed "child: Database" while the real question stayed hidden. The banner now passes the text it shows to the form through the question form host, and the form hides its question line only when that text matches. Co-Authored-By: Claude Opus 5.5 <[email protected]>
9b85043 to
3abed9b
Compare
…child-threads-4-answer-in-banner-thr_7xmbr7vsqz
Both composer stacks render the banner under one thread-scoped key, so the open question survives the parent asking its own question. Opening from the collapsed header moves focus into the question, and focus that drops when an answered question leaves returns to the banner. The question that moves into place after an answer ignores input for half a second so a double-click cannot answer it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…child-threads-4-answer-in-banner-thr_7xmbr7vsqz # Conflicts: # apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsx
The footer buttons stay where they were on main, with only the compact class and labels added; the extracted button variables were left over from an earlier layout. QuestionForm uses QuestionFormHost["density"] directly. The duplicate advance-after-answer test folds into the one that also covers focus and the input hold, and the story row describes answering in the banner with the current back label. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…child-threads-4-answer-in-banner-thr_7xmbr7vsqz # Conflicts: # apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsx
… links - Focus returns to the banner after an answer only when focus was last inside it, and Back/Esc look up the child's row inside this card, so a second pane showing the same parent keeps its own focus. - ThreadDetailPromptArea builds the banner key once, and a test checks the banner keeps its node while the parent asks and answers its own question. - The open question's title shows the child's resolved title. - The From <child> source link and its sourceThread props are gone; the only caller was the per-child cards this layer removes. - An inline approval hides its heading when the banner line already shows the same text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be7fd31c54
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| density: "default", | ||
| promptShownAbove: null, |
There was a problem hiding this comment.
Retain compact presentation values in the plugin host
When an inline child interaction is rendered by a built-in provider plugin, experimental_useQuestionFormHost() receives the app's host object, including the new density: "compact" and promptShownAbove values, but this wrapper overwrites both after spreading it. Consequently, the Codex and Pi question forms continue using the full-size layout and can repeat the prompt inside the banner; apply defaults only when the runtime values are absent rather than replacing values supplied by the host.
Useful? React with 👍 / 👎.
| const questionIndex = | ||
| matchedIndex >= 0 | ||
| ? matchedIndex | ||
| : Math.min(openQuestion?.index ?? 0, pendingInteractions.length - 1); |
There was a problem hiding this comment.
Wrap to the first question after answering the last
When the open interaction is the final item and answering it removes it from pendingInteractions, matchedIndex becomes -1 and this clamp selects the new final item—the question immediately before the one just answered. This contradicts the stepper's wraparound ordering and means repeated answering reverses direction at the end; the fallback index should wrap to zero when the removed index is now beyond the shortened list.
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz # Conflicts: # apps/app/src/components/thread/pending-interactions/PendingInteractionShell.tsx
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz # Conflicts: # apps/app/src/views/thread-detail/ThreadDetailPromptArea.test.tsx
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
## Human comments ## What was wrong Child questions could only be answered in separate cards above the composer, so the banner listed questions you couldn't act on there. ## What changed - Clicking a waiting child opens its question inside the banner. - Clicking the collapsed header only expands the list. - With more than one child, "‹ Active child threads" or Esc returns to the list. - "‹ 1 of n ›" steps between waiting questions, and answering moves to the next. - Cancel returns to the list and leaves the question waiting. - The open "child: question" line matches the list's 12px size. - A long question shows five lines, then scrolls. - Esc keeps the question open during text composition or when the form handled it. - Question cards above the composer still show in this layer; merge with #5424 and #5391. ## How you verified - Remote CI on `4c7677b80b`: pending. - New tests check that answers reach the open child and the open form skips unrelated re-renders. - Dev app on `cf39a34051`: a long question and long labels fit a 390px screen. - Dev app on the stack top (`82cb2a1812`, Chrome for Testing 155): the header click expanded the list without opening a question. - Dev app on the stack top (`82cb2a1812`, Chrome for Testing 155): Cancel kept the child waiting, and answering resolved it. ### Screenshots Before: `bdcec0c109` · After: `49bb0dec3c` · Long-question row: before `0a20c99c5b`, after `da23883d86` · Open question line: before `921c407d42`, after `7a7044dda3` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Question opened in the banner | Desktop · 1280×720 |  |  | | Question opened in the banner | Mobile · 390×844 |  |  | | Step to the next waiting question | Desktop · 1280×720 |  |  | | Single child: question opened | Desktop · 1280×720 |  |  | | Open question line matches the list | Desktop · 1100×800 |  |  | | Open question line matches the list | Mobile · 390×844 |  |  | | Long question with a long option label | Mobile · 390×844 |  |  | BB-Thread-ID: thr_p3h5vu5u4j BB-Thread: [Redesign child threads](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_7xmbr7vsqz) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Human comments
What was wrong
With questions answerable in the banner, each waiting child still had its own large card above the composer, repeating the question and pushing the conversation out of view.
What changed
How you verified
0ccea61cf9: pending.82cb2a1812, Chrome for Testing 155): no child cards showed above the composer.Screenshots
Before:
470852f795· After:d2b31ffa93· Captured at 2×BB-Thread-ID: thr_p3h5vu5u4j
BB-Thread: Redesign child threads
🤖 Generated with Claude Code