GeezerVison is showing github.com — fix(web): a collapsed question no longer stops the composer from resting on scroll by Mnigos · Pull Request #14845 · pingdotgg/t3code
Conversation
Mnigos
commented
Oct 2, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #14231.
Problem
With Collapse composer on scroll on, a pending agent question keeps the composer at full height. Folding the question card with the chevron in its header hides the question body, but the answer field and footer stay, and scrolling the thread never rests the composer, even when nothing has been typed. The folded state lived inside ComposerPendingUserInputPanel, so ChatComposer treated any pending question as expanded chrome.
Change
- The folded state moves to
ChatComposer, kept per question (request id + question id), and is passed to the panel as collapsed / onCollapsedChange. A new or different active question starts expanded.
shouldTopDrawerHoldComposerExpanded (composerFooterLayout.ts) replaces the bare showComposerTopDrawer in the expanded-chrome check: an approval always holds the composer open; a question holds it open unless its card is folded and no answer is in progress (no typed answer, no selected option).
- When the composer rests with a folded question, the card's header row stays docked above the one-line composer. Clicking or focusing the composer expands it again, as for any resting composer, with the answer intact.
- The resting row keeps room for the Submit/Next pill (and Previous from the second question on), so the controls do not cover the answer placeholder. Update after merging main (2026-10-09): upstream fix(web): collapsed composer reserves room for wide send actions #17016 now measures the actions row's width instead of fixed padding, so this PR no longer adds its own padding for a folded question.
After the merge with main: Pi editor prompts arrive with a prefilled answer (#17206). That text counts as an answer in progress, so folding such a question still keeps the composer expanded. That is conservative and loses nothing, but this PR does not help those prompts.
Unchanged: an expanded question card, approvals, the plan follow-up drawer and multiline drafts still keep the composer open, and mobile layouts do not scroll-rest.
Scope and approval
Triaged bug: #14231, following the triage comment: the folded flag never reached the scroll-rest gates; an in-progress answer should keep the composer open; approvals and multiline drafts stay with #6849. No focus rule was added, as the triage notes scroll-rest does not look at focus. Web only (desktop renders the same code).
Verification
Real web client, before and after. Rechecked on V2 with headless Chromium 153.0.8010.12 at 1400×900 against vp run dev: main at cc1e634 versus this branch at 6790123. Both contain the V2 rewrite. Isolated state, the same synthetic long thread and a stand-in provider asking one question with two options. Real wheel, click and keyboard input; no clock mocking. Heights are the composer surface's bounding box.
Before (main): folded question, scroll up, composer stays at 146 px |
After: the composer rests to 48 px, the card header stays |
 |
 |
 |
 |
| Steps |
Before |
After |
| Fold the card, type nothing, scroll up |
146 px, not resting |
48 px, resting, header visible |
| Click the composer after that scroll |
146 px, card folded |
146 px again, card still folded |
| Card expanded, scroll up |
146 px |
146 px |
| Fold, type "yes", scroll up |
146 px, answer retained |
146 px, answer retained |
| Select an option, fold, scroll up |
146 px |
146 px |
| No question, scroll up (control) |
142 → 48 px |
142 → 48 px |
Recording of reopening the composer, typing "yes", and selecting an option on the branch.
The current single-question resting row with attach, Stop and Submit showed no overlap with the placeholder: 
These captures include the final resting-row padding. The row with Previous and the context meter visible was not captured in a browser.
Tests. composerFooterLayout.test.ts: the new helper for no drawer, approval, expanded question, folded question with an empty, whitespace-only or typed answer, a selected option, and a drawer with neither; plus the resting decision fed by it. ComposerPendingUserInputPanel.test.tsx: the chevron folds and unfolds the card through the controlled prop with real clicks. 51 tests pass; with the helper reverted to the old behavior the three folded-question tests fail. Web typecheck, targeted lint, format and knip are clean.
Not checked: a multi-question request, an approval arriving while the composer rests, and Safari. ChatComposer has no interaction test harness, so "a new question starts expanded" is covered by the code path and review, not by a test.
Implemented with Claude Code (Claude Opus 5.5, coordinated by Claude Fable 5.1); tests, independent review and evidence capture by GPT-6 Astra via Codex.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
macroscopeapp
Bot
commented
Oct 2, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 3e3eb2a
Macroscope's review found this PR approvable — This is a localized composer bug fix that preserves all active-answer and approval flows while allowing only an explicitly collapsed, empty question to rest during thread scrolling. The state transition and layout predicate are covered by focused tests, with no schema, deployment, security, or static-analysis changes.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 2, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID: 2208211c-c63b-4fcd-8754-a6b083b9bd05
📥 Commits
Reviewing files that changed from the base of the PR and between 105d1e52dc1baa647fe5838fe667642d8aeba51c and 6790123.
📒 Files selected for processing (5)
apps/web/src/components/chat/ChatComposer.tsx
apps/web/src/components/chat/ComposerPendingUserInputPanel.test.tsx
apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
apps/web/src/components/composerFooterLayout.test.ts
apps/web/src/components/composerFooterLayout.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough
ChatComposer now controls pending-question collapse state. Composer expansion and resting padding account for the question’s collapsed state, answer, selected options, and attachments.
Changes
Pending question composer
| Layer / File(s) |
Summary |
Controlled question collapse apps/web/src/components/chat/ChatComposer.tsx, apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx, apps/web/src/components/chat/ComposerPendingUserInputPanel.test.tsx |
ChatComposer owns the active question’s collapse state and passes it to the pending-question panel in expanded and mobile layouts. The panel reports collapse changes. Mounted tests cover disclosure changes, question visibility, dismissibility, and expanded content. |
Expansion and resting layout apps/web/src/components/composerFooterLayout.ts, apps/web/src/components/composerFooterLayout.test.ts, apps/web/src/components/chat/ChatComposer.tsx |
shouldTopDrawerHoldComposerExpanded accounts for drawer visibility, approvals, question collapse, answers, selected options, and attachments. Pending-question actions set composer padding, while existing padding rules remain when no pending action is present. Tests cover expansion and resting-layout conditions. |
Priority: ⬇️ Low
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Low
Suggested reviewers: t3dotgg
Merge Risk
Merge Risk: ⚪ Minimal · up to 67901
This change lets a collapsed, unanswered question stop holding the composer open on scroll. I found no concrete merge-blocking risk. Multi-question requests, approvals arriving while the composer rests, and Safari were not tested.
-
Security Architecture Review
Security architecture risk: 🔵 Low · up to 105d1
The change primarily affects question disclosure and composer layout. Examined approval and answer-submission safeguards remain separate from collapse state. No introduced security issue was identified, although recovery behavior was not verified end to end.
Retained concerns
No architecture-level concerns identified.
-
Security review details
Security Blast Radius
- inferred — The demonstrated effect is bounded to active-question visibility and composer expansion. In the examined paths, question content and selected answers influence presentation without acquiring approval authority or a new submission destination.
Trust Boundaries and Controls
- observed — Submission continues through provider/send guards and the parent callback. Question responses retain environment, thread and request targeting; collapse state is absent from those dispatch inputs.
Resilience and Maintainability Implications
- observed — The existing pending-request projection keeps terminal events final despite activity ordering and removes resolved or stale-failed requests. This supports local lifecycle containment but does not establish backend recovery guarantees.
🚥 Pre-merge checks | ✅ 6 | ❌ 1
❌ Failed checks (1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Docstring Coverage |
 |
Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 5 files. |
Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (6 passed)
| Check name |
Status |
Explanation |
| Linked Issues check |
 |
The description links the fix to issue #14231 and includes the related triage comment and scope decisions. |
| Out of Scope Changes check |
 |
The changes are focused on web composer collapse and scroll-rest behavior, related tests, and layout logic. The reported scope is consistent with the objective. |
| Linked Issues check |
 |
The changes satisfy the coding requirements in [#14231]. ChatComposer owns collapsed state per request and question, and passes controlled state to ComposerPendingUserInputPanel. A collapsed quest… |
| Out of Scope Changes check |
 |
The changes stay within [#14231]. The composer state, controlled question panel, resting layout, and tests directly support collapsed-question resting and state preservation. The test-rendering change… |
| Title check |
 |
The title clearly and concisely describes the primary fix: collapsed questions no longer prevent the composer from resting during scroll. |
| Description check |
 |
The description includes the problem, implementation details, scope and approval, detailed UI verification with before/after evidence, test coverage, reported results, and known limitations. |
- Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Autopilot is currently an internal CodeRabbit preview.
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ing on scroll
A pending question always counted as expanded chrome, so with "Collapse composer
on scroll" on the composer stayed at full height even after the question card was
folded with its chevron and nothing had been typed.
The folded state now lives in ChatComposer, per question, and a folded question
with no answer in progress steps aside: scrolling the thread rests the composer
and leaves the card header docked above it. An expanded card, a typed answer or
a selected option keeps the composer open, as do approvals and multiline drafts.
Fixes pingdotgg#14231
Note 🤖 Claude Fable 5.1 on behalf of Mnigos
Closing to keep my open queue focused; happy to reopen if this is still wanted.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
macroscope-review
Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|