Skip to content

Remove the child question cards above the composer - #5391

Merged
brsbl merged 28 commits into
bb/child-threads-4c-banner-focus-thr_7xmbr7vsqzfrom
bb/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
Oct 14, 2026
Merged

brsbl merged 28 commits into
bb/child-threads-4c-banner-focus-thr_7xmbr7vsqzfrom
bb/child-threads-4-answer-in-banner-thr_7xmbr7vsqz

Conversation

@brsbl

@brsbl brsbl commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The per-child question cards above the composer are removed.
  • The banner and any open question stay while the parent asks or answers its own question.
  • The unused "From " link on question cards is removed.

How you verified

  • Remote CI on 0ccea61cf9: pending.
  • A new test checks the banner stays mounted while the parent's own question comes and goes.
  • Dev app on the stack top (82cb2a1812, Chrome for Testing 155): no child cards showed above the composer.

Screenshots

Before: 470852f795 · After: d2b31ffa93 · Captured at 2×

Screen / state Viewport Before After
Children waiting on questions Desktop · 1280×720 Before: child cards above the banner After: banner only
Children waiting on questions Mobile · 390×844 Before: child cards above the banner on mobile After: banner only on mobile
The parent asks its own question Desktop · 1280×720 Before: banner gone, only cards After: banner stays above the parent's card

BB-Thread-ID: thr_p3h5vu5u4j
BB-Thread: Redesign child threads

🤖 Generated with Claude Code

AGENT GENERATED

brsbl and others added 2 commits October 12, 2026 16:01
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]>
@brsbl
brsbl force-pushed the bb/child-threads-4-answer-in-banner-thr_7xmbr7vsqz branch from 9b85043 to 3abed9b Compare October 12, 2026 23:01
brsbl and others added 11 commits October 12, 2026 16:53
…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]>
@brsbl
brsbl marked this pull request as ready for review October 13, 2026 08:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T08:27:20.443600Z be7fd31 Draft marked ready
ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +15 to +16
density: "default",
promptShownAbove: null,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +949 to +952
const questionIndex =
matchedIndex >= 0
? matchedIndex
: Math.min(openQuestion?.index ?? 0, pendingInteractions.length - 1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@brsbl
brsbl removed this pull request from stack #5392 October 13, 2026 08:55
@brsbl brsbl changed the title Answer child thread questions inside the banner Remove the child question cards above the composer Oct 13, 2026
@brsbl
brsbl changed the base branch from bb/child-threads-3-banner-list-thr_7xmbr7vsqz to bb/child-threads-4c-banner-focus-thr_7xmbr7vsqz October 13, 2026 08:56
@brsbl
brsbl added this pull request to stack #5425 October 13, 2026 08:56
brsbl and others added 3 commits October 13, 2026 02:13
…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
brsbl added 2 commits October 13, 2026 02:53
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
…b/child-threads-4-answer-in-banner-thr_7xmbr7vsqz
brsbl added 9 commits October 13, 2026 03:08
…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
@brsbl
brsbl merged commit e565141 into main Oct 14, 2026
28 checks passed
@brsbl
brsbl deleted the bb/child-threads-4-answer-in-banner-thr_7xmbr7vsqz branch October 14, 2026 18:42
brsbl added a commit that referenced this pull request Oct 14, 2026
## 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 | ![Before: waiting
list, rows open the child
thread](https://github.com/user-attachments/assets/b0a5de4c-1a6e-4926-9bf3-aeec424f6587)
| ![After: question opened in the
banner](https://github.com/user-attachments/assets/3044d922-b7d1-4445-9c72-0c9e45fa8d81)
|
| Question opened in the banner | Mobile · 390×844 | ![Before: waiting
list on
mobile](https://github.com/user-attachments/assets/55c88734-cb24-482e-9219-edbe79a7cff4)
| ![After: question opened in the banner on
mobile](https://github.com/user-attachments/assets/860f7aa1-c898-4343-9a06-cd21dc273372)
|
| Step to the next waiting question | Desktop · 1280×720 | ![Before: no
stepper](https://github.com/user-attachments/assets/94c15f39-fac9-4afd-9b8f-dee705b792e5)
| ![After: second question, 2 of
2](https://github.com/user-attachments/assets/a3c8231e-7dcc-42c5-b93c-eb8a4434d257)
|
| Single child: question opened | Desktop · 1280×720 | ![Before: single
child
waiting](https://github.com/user-attachments/assets/7207199d-0f8e-47e3-a943-e1051b646c00)
| ![After: single child's question
opened](https://github.com/user-attachments/assets/45a40d61-4cbb-4228-ba63-495b6e550536)
|
| Open question line matches the list | Desktop · 1100×800 | ![Before:
open question line at
13px](https://github.com/user-attachments/assets/9bf99322-8ca1-44a2-9616-44046ef0b7f7)
| ![After: open question line at
12px](https://github.com/user-attachments/assets/b2e4eba4-4bcf-412f-8fdc-89e4b136c572)
|
| Open question line matches the list | Mobile · 390×844 | ![Before:
open question line on
mobile](https://github.com/user-attachments/assets/0015d909-06ce-48ef-bc11-2b4fa106e0eb)
| ![After: open question line on
mobile](https://github.com/user-attachments/assets/e6098684-84fd-44e2-b225-0363a7e7d4f7)
|
| Long question with a long option label | Mobile · 390×844 | ![Before:
long question in its own
card](https://github.com/user-attachments/assets/0ff1c77f-7d15-4093-a5bc-b78a9ca3ca90)
| ![After: question capped at five lines, label
wrapped](https://github.com/user-attachments/assets/62aa29bf-f59e-4b12-a3dd-40211f47a16b)
|

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]>
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