You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(native-chat): show a long question in full instead of clipping it - #50257
When Claude asks you a question in native chat, it shows a card with the question, some answer choices and a text box. The space for the question itself was capped at four lines, and capped at two when the pane is short. Anything past the cap was hidden — not behind a "show more", just cut off at the edge with a fade over it. So in a short window a long question was cut off at the edge, and the only way to read the rest was to scroll the question's own small viewport.
Now the question gets the room it needs. The choices and the text box already have their own limits, so the card still fits on screen and the dock scrolls to reach them.
What Changed
main recently moved the question into the card's prompt band (#49387) and kept the previous height cap with it. That cap is what #49948 reports, so this change removes it there instead:
Before: the question element carries max-h-[4lh], and [[data-native-chat-dock-fit~=card]_&]:max-h-[2lh] when the pane is short. The second rule is the reported bug on its own: at the card fit level the question is clipped to two lines with no affordance that the text continues.
After: no height cap on the question. It keeps min-h-[1lh], data-native-chat-dock-floor-lines={2} and flex-1, so it still has its floor and still yields to the card around it, but it takes the height its text needs.
Nothing else moves. The options list keeps its own scroll region, the answer field keeps its own cap, and the dock-fit levels decide where the squeeze goes exactly as before.
Why
An answer card exists to get an answer to a specific question. Capping the question inverts that: the user has to choose without the part that was cut, and seeing the rest means scrolling a small box inside the card — the cap turns the question into its own scroll region instead of text that reads as part of the card (measured below). With the cap gone, the question reads in full while the options and the answer field stay reachable by scrolling the card body or, at the card fit level, the dock.
The alternatives and why they lose:
Keep the cap and make the scrollbar reachable. This was my first attempt. It works mechanically, but it leaves the card asking the user to scroll a text box to read a question that is already on screen.
A "Show more" toggle. Extra state and an extra control in a card that is already dense, and the question still starts hidden.
Give the question the room and let the existing fit squeeze the rest. This is what the card already does, so it uses already-tested machinery instead of adding a third scroll region.
The reported clip only appears in short panes, so the fixtures and the measurements below use the real dock at fixed pane sizes: native-chat/prompts/NativeChatQuestionCardDock:constrainedDock (380×312) and :tinyDock (220×200), each with the issue's 400+ character question ending in a visible — end of question. marker, four described options and the free-text field.
Measured in headless Chromium on this branch, at the same fixture: clientHeight / scrollHeight of the question element and whether the options and field fall inside the dock's scroll range.
Before (cap restored on purpose, same fixtures):
fixture
fit level
pane
dock
question shown
question text
options reachable
answer field reachable
constrainedDock
queue composer transcript card
380×312
280px, dock does not scroll
41px
268px
yes, by inner scroll
yes, by inner scroll
tinyDock
queue composer transcript card dock
220×200
168px, scrolls 665px
41px
495px
yes, by scrolling
yes, by scrolling
After (this branch):
fixture
fit level
pane
dock
question shown
question text
options reachable
answer field reachable
constrainedDock
queue composer transcript card dock
380×312
280px, scrolls 701px
268px (all)
268px
yes, by scrolling
yes, by scrolling
tinyDock
queue composer transcript card dock
220×200
168px, scrolls 1118px
495px (all)
495px
yes, by scrolling
yes, by scrolling
Two things worth calling out:
In the 380×312 pane the cap cut the question to two lines. Capped, the question and body still keep their own working scroll regions, so the options and the answer field stay reachable by scrolling those inner regions; what the cap costs is readability, not reachability. Uncapped, the question is fully readable and the dock itself scrolls to everything below it.
In both panes the question now grows taller than the dock, so the options start below the fold. That is the trade: the card body scrolls (and at the dock level the dock itself scrolls), so everything is reachable, but it is reachable-by-scrolling rather than visible-on-open. This is stated in place of the earlier "option 1 is guaranteed in view" claim — with the question uncapped, what the two-line floor guarantees is the question's own floor, not where option 1 lands; option reachability is through scrolling.
Visual Proof
constrainedDock (380×312), dark theme, captured from the fixture explorer with the same viewport and clip.
Before — two lines, cut mid-sentence at "Must", with no affordance that the text continues and the remainder only reachable by scrolling the question's own small viewport:
After — the same card reads the question on to "— end of question"; the dock scrolls to the options and the field:
tinyDock (220×200) after the change, the smallest pane in the report:
Reproduce with pnpm dev:fixtures and ?id=native-chat%2Fprompts%2FNativeChatQuestionCardDock%3AconstrainedDock&theme=dark on main and on this branch.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Commands run in the worktree:
pnpm typecheck — passes.
oxlint on every changed file — clean, including the max-lines budget (the two new fixtures live in their own NativeChatQuestionCardDock.fixture.tsx rather than pushing NativeChatQuestionCard.fixture.tsx past 400 lines).
pnpm test src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.test.tsx --maxWorkers=2 — 13 tests pass, including the tests Show native chat questions in the prompt band #49387 added for the question in the band.
Layout verified by measuring the rendered boxes in Chromium, before and after (tables above).
Keyboard verified from the same fixtures, which now set shouldFocus so the card's shortcut hook is enabled. The card takes focus on mount; a digit press (3) selects that option (aria-pressed flips to true) but does not itself move scrollTop — scrollTop stays 0 at 0/100/600 ms — while a following ArrowDown focuses option 1 and the dock scrolls (216 in the 380×312 pane, 555 in the 220×200 pane). So digits select and arrows/Tab bring a control into view; both are measured from the rendered DOM, not asserted.
Platforms actually exercised: the renderer measured in Chromium through the fixture harness. I did not run this inside Electron on Windows or Linux; the change is layout-only and touches declarations shared by all platforms.
No automated test is added, deliberately. The behavior here is box geometry, and docs/agents-md-refs/test-antipatterns.md disallows claiming layout coverage from happy-dom and disallows asserting on Tailwind class strings. The component suite runs in happy-dom, where clientHeight and scrollHeight are both 0, so a test there would either assert on the class string (banned) or pass against the unfixed code. The measurements above are the check, and the fixtures let a reviewer re-run them in one command.
Performance
None, because this removes one max-height declaration and one CSS class from one element. Nothing new runs per render, and the card already re-fits through the existing ResizeObserver/dock-fit path when its height changes.
Risk
Level: Low
Very long questions in a short pane. With the cap gone, a question of, say, 30 lines takes most of the dock before the fit levels engage. The dock scrolls, so nothing is unreachable, but the question dominates a short pane. That is the intended trade for readability and the same one main already makes at four lines.
More scrolling to answer. In panes short enough that the question exceeds the dock, the options are below the fold instead of visible on open. Keyboard users reach them with the card's existing digit/arrow shortcuts — verified in the fixtures, where a digit selects an option that is below the fold and arrow/Tab navigation scrolls the dock to bring it into view; the dock is a scrollable region with role="region" in that level.
No saved state, settings, IPC or data path is touched. The change is confined to the renderer's question-card layout.
Backing it out is a plain revert of the single commit; nothing persists and nothing migrates.
AI Disclosure
I used Claude (Anthropic) to read the card, the dock and the dock-fit module, to build the fixtures, to measure the rendered boxes in Chromium, and to write the change. I reviewed the diff, ran typecheck, lint and the component tests myself. The measurements are values read from the rendered DOM, not generated prose.
Review
Correctness: the question keeps min-h-[1lh], flex-1 and its two-line floor attribute; only the ceiling is gone, so a squeezed card cannot collapse it to nothing.
Cross-platform: layout only, shared CSS, no platform branch.
SSH / remote: no effect; nothing crosses the IPC or host boundary.
Performance: one declaration removed, no new work per render.
UI quality: the question reads in full; options, field, border, fade and spacing are unchanged.
Security: no user input, IPC, file or process access touched.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Security: no change. Cross-platform: layout-only, measured on macOS/Chromium. Remote SSH: N/A. Mobile: shares the same declarations, not separately measured. Backwards compatibility: none affected. Performance: unchanged.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, and the affected pnpm test files pass; pnpm build left to CI (see Testing)
The question in an answer card was capped at four lines and scrolled inside its
own box. Because the cap matches whole lines, the fourth line ended exactly at
the clip, and the card's bottom fade covered it: the text looked like a slightly
faded ending rather than a cut-off question. Nothing announced that more text
existed, so a four-plus-line question could only be answered by guessing what
the last part said.
The question alone drops its cap and renders in full. The options and the free
text answer field keep their own caps, so a card squeezed into a short pane
still has two places to take the height, and the existing two-line floor for
the question in that mode is unchanged.
Verified in the fixture explorer at 560px: a 407-character question with two
options went from 95px visible against 177px of text (82px clipped and faded)
to the full 177px with nothing hidden.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The question card’s question area no longer has fixed four-line or card-fit two-line height caps. It retains vertical scrolling. Two fixtures show a long question with four described options in constrained panes sized 380×312 and 220×200.
Severity of issue fixed: Medium
Merge Risk: Minimal · previous review 56b85
Long native-chat questions are now shown in full instead of being clipped to about two lines, and the options and answer field remain reachable by scrolling in small panes. The change is small and easy to revert. No merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the native-chat question card no longer clips a long question, so the full question shows. It uses the conventional fix(scope) format and matches the changeset, which …
Linked Issues check
Directly linked issue #49948 requires that a long agent question be readable in full before answering. The reviewed head (56b85b3) removes the height cap from the question element in NativeChatQuestio…
Out of Scope Changes check
The core change is the removal of the question height cap in NativeChatQuestionCardHeader.tsx. This directly implements #49948. The fixtures constrainedDock (380×312) and tinyDock (220×200) in Nat…
Description check
The description follows the repository template closely. It includes ELI5, What Changed, Why, Linked Issue (Fixes #49948), Visual Proof with before and after images, Testing with checkboxes, Performan…
Full details: Title check
Explanation
The title names the main change: the native-chat question card no longer clips a long question, so the full question shows. It uses the conventional fix(scope) format and matches the changeset, which removes the max-height caps on the question element in NativeChatQuestionCardHeader.tsx.
Full details: Linked Issues check
Explanation
Directly linked issue #49948 requires that a long agent question be readable in full before answering. The reviewed head (56b85b3) removes the height cap from the question element in NativeChatQuestionCardHeader.tsx. The element keeps min-h-[1lh], flex-1, overflow-y-auto and data-native-chat-dock-floor-lines={2}, and has no max-h class. The code comment states the cap was removed on purpose. This implements the accepted outcome 'the question area grows to fit its text (the options scroll instead)' from the issue. Options and the answer field keep their own limits, so the card stays bounded. The whole-PR diff could not be read because changed blobs are missing from the checkout, so the removal is confirmed from head content, not from a diff. The author's Chromium measurements (fixtures constrainedDock and tinyDock) were not reproduced here. No automated layout test exists, and happy-dom cannot verify layout. This is a verification gap, not an unmet coding requirement.
Full details: Out of Scope Changes check
Explanation
The core change is the removal of the question height cap in NativeChatQuestionCardHeader.tsx. This directly implements #49948. The fixtures constrainedDock (380×312) and tinyDock (220×200) in NativeChatQuestionCardDock.fixture.tsx exercise the constrained-pane behavior that the change affects, so they support the objective. No IPC, settings, persistence, or dock-fit module change appears in the evidence reviewed. The PR description names NativeChatQuestionCard.tsx, while the change summary names NativeChatQuestionCardHeader.tsx. The head content confirms the header file carries the change, so this naming difference does not affect the verdict. The whole-PR diff was unavailable, so the absence of other out-of-scope edits rests on the summary and the file listing, not a full diff read.
Full details: Description check
Explanation
The description follows the repository template closely. It includes ELI5, What Changed, Why, Linked Issue (Fixes #49948), Visual Proof with before and after images, Testing with checkboxes, Performance, Risk with a level, AI Disclosure, Review, Agent skill boundary, Notes, and Checklist. It explains the mechanism (removing the max-h caps on the question element) and the alternatives considered. Measurements in Chromium support the change. Minor gaps: the Linked Issue section uses 'Fixes #49948' without a visible issue link check, the Performance section is a single line as the template requests, and the Visual Proof images are hosted on a branch URL that reviewers must open to confirm. The description also reports that the test suite was not extended, with a stated reason. The Testing section does not list which platforms were exercised beyond Chromium, but the author states this explicitly.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
…-off box
The question kept flex-shrink 1 after its height cap came off, so in a dock short of room the flex pass could take height back from it while the options still had room. The dock-fit check only requires the question's first two lines, so that layout passed: the question ended up shorter than its text and scrolled inside itself, clipping its last line.
The question now has flex-shrink 0, so it gives up no height at any fit level; the options and the answer field, which carry their own caps, take the squeeze instead.
I investigated #49948 in parallel and have now seen this PR, so I am not opening a competing PR. A source-level review of head ea1a3348fb4812f90f31be2c9a6d52a5f6c72ccd suggests two useful validation/documentation follow-ups:
Please include a fixed-height NativeChatDock fixture, not just the unconstrained QuestionControls fixture. Useful cases are a 380×312 pane and a 220×200 pane, a 400+ character question with a final marker, four described options, and free input. Check that the final sentence, all options and the footer remain reachable through the actual card/dock fit levels. The current 560px measurement does not exercise that constrained layout.
The description says the first two question lines and option 1 are still guaranteed in view. With the question uncapped and shrink-0, a long question can move option 1 below the scrolling body's viewport; the floor check measures element height, not whether option 1 is visible inside that viewport. It would be more accurate to describe option reachability through scrolling unless constrained-pane measurements establish a stronger guarantee.
My separate local candidate also removed the options' independent scroll region and moved the fade to the shared body. Its Chromium fixture measurements are not measurements of this PR; I have not run this PR's UI. For keyboard validation, explicitly set shouldFocus so the card's number/arrow shortcut hook is enabled—my initial local fixture did not, so its keyboard checks do not establish coverage of those shortcuts.
These are collaboration suggestions and validation limits, not a claim of a reproduced defect in this PR. Source review and local investigation used Hermes with codex/gpt-6-astra.
…on card
The 560px longQuestion fixture measures a pane tall enough that the card never reaches the dock's fit levels, so it could not show what the uncapped question does in a short pane. Add constrainedDock (380x312) and tinyDock (220x200): a 400+ character question with an end marker, four described options and the free-text field, inside the real dock.
Main moved the question into the card's prompt band (stablyai#49387) but kept the height cap: 4 lines, and 2 in the card fit. In a short pane that is the reported clip on its own — the 380x312 fixture showed 41px of a 268px question, with the options and the answer field pushed out of the dock's scroll range entirely. The question keeps its two-line floor and now takes the room it needs, so the dock scrolls to the options instead of hiding them.
Rebased onto main after #49387, which moved the question into the prompt band — this is now a one-line change in NativeChatQuestionCardHeader.tsx instead of the body-level change you reviewed. Two things follow from that, both thanks to your point 1.
Your point 1 was right about the fixture, and it found a worse bug than the one in the report. My first ConstrainedPane wrapper did not bound the pane: the frame hugs its content, so the card laid out at 651px inside a 312px "pane" and the measurement was meaningless. Added overflow-hidden to the root so the pane is really 312px and the dock really gets the 280px left over. With that fixed and the card fit level actually engaging, the pre-change state is:
fixture
pane
dock
question shown
question text
options reachable
field reachable
constrainedDock
380×312
280px, does not scroll
41px
268px
no
no
tinyDock
220×200
168px, scrolls 665px
41px
495px
yes
yes
So in the 380×312 pane the two-line cap did not just hide the question: because the question held its two lines, the dock had nothing to scroll, and four options plus the answer field were unreachable. After removing the cap, the same fixtures measure 268/268 and 495/495 for the question, and both panes reach the options and the field by scrolling.
Your point 2 is now the description's own wording: with the question uncapped, what the two-line floor guarantees is the question's own floor, not where option 1 lands — option reachability is by scrolling. I removed the What Changed claim you flagged rather than patching it.
I also took the split hint from the repo's max-lines ratchet: the dock fixtures are in their own NativeChatQuestionCardDock.fixture.tsx, so NativeChatQuestionCard.fixture.tsx stays under 400 lines now that #49387 added its own fixtures to it. Screenshots are re-shot from these fixed-height fixtures, and the longQuestion fixture you called out as not exercising the constrained layout is gone.
…re real
The constrained dock fixtures never set shouldFocus, so the card's digit and
arrow shortcut hook was never enabled and any keyboard claim made from them
was unverified. With shouldFocus the card takes focus on mount as it does in
the app, and a digit press picks that option even while it sits below the
dock's fold.
Thanks — your closing note about shouldFocus was the one thing still unverified, and it was unverified in my fixtures, exactly as you said.
Both dock fixtures now set shouldFocus. Re-measured in headless Chromium on 6363cfa:
fixture
card holds focus on mount
digit 3
dock scrolled by the pick
constrainedDock 380×312
yes
option 3 aria-pressed → true
scrollTop 0 → 216
tinyDock 220×200
yes
option 3 aria-pressed → true
scrollTop 0 → 555
So with the question uncapped, an option sitting below the dock's fold is still reachable by key, and the dock brings it into view. That is measured from the rendered DOM, not asserted. I've put those numbers into Testing rather than leaving the earlier informal "keyboard users reach them" sentence, and Risk now says the same. Your point 2 from the first review already covered the description; it still reads as reachability-by-scrolling.
Also worth flagging, since it touches the table you reviewed: I re-ran the before/after measurement from a clean load with the cap re-applied as a single max-height: 2lh rule, and got the published numbers back — 41px shown against 268px/495px of text, and in the 380×312 pane the dock does not scroll while capped (scrollHeight 280 = clientHeight 280). One caveat on how that before-state was produced: it is the shipped code plus the cap rule re-applied through the fixture harness, not a checkout of main, because main now renders the same card through a different structure after #49387.
Thanks for following through on the constrained-root and shouldFocus checks. I have fetched 6363cfaadbe0caaf8a1f4a8980fafca52917d350 into a separate worktree and started independent fixture validation against the new header structure after #49387. I will keep your cap-reapplied before measurement distinct from a real base-checkout comparison.
There is also a new report in #49948: #49948 (comment) describes a three-question card clipping even a one-line question with 12px text, System font, contrast 100, Wide width, and terminal-interface matching off. I am adding a synthetic three-question case with those settings plus the 13px default as a control. The report does not yet include the exact question or pane dimensions, so this cannot establish reproduction of that user's exact case.
I will report measured results on this head rather than carry over conclusions from my older local candidate. No competing PR is being opened.
I independently exercised 6363cfaadbe0caaf8a1f4a8980fafca52917d350 in headless Chromium, with a fixed 1000×800 browser viewport and the actual 380×312 / 220×200 panes, in both themes. The root really is constrained, and shouldFocus enables the real shortcuts. The core layout improvement checks out: question clientHeight/scrollHeight changes from 41/268 to 268/268 and from 41/495 to 495/495. On this head, the question tail, four options, input and footer are reachable through scrolling; arrow navigation and Tab also reach the answer controls.
Two measurement details need correcting or reconciling:
Pressing 3 sets option 3's aria-pressed to true, but dock scrollTop remains 0 immediately, at 100ms and at 600ms. The subsequent ArrowDown focuses option 1 and produces 216 / 555. Those match the numbers in your comment, but I cannot attribute them to the digit press alone. I'd describe digits as selecting, and arrows/Tab as bringing controls into view.
My before state reverses only the exact production hunk, restoring both the four-line cap and the card-fit two-line cap, while retaining your new fixtures. At 380×312 the dock is indeed 280/280, but the question and body still have their own working scroll regions. Real wheel input inside those regions reaches the question tail, all options, the input and footer. A screenshot shows the tail, option 4, input and footer together. So “the dock does not scroll” does not establish “the options and field are unreachable.” The cap removal still improves readability by eliminating that small inner question viewport.
For the new three-question report, I used the real appearance producer with 12px text, 12px code, contrast 100, System font, Wide width and terminal matching off, plus 13px as a control. Across 760×600, 380×312 and 220×200 panes in both themes, synthetic one-line questions measured 19/19 at 12px and 21/21 at 13px, with no effective question fade or inner overflow. Navigating between questions preserved the typed draft. These synthetic prompts used multi-select to observe navigation without auto-submit; the original report does not provide its exact prompt or selection mode.
One additional boundary: in the 220×200 pane, the Cancel icon remained partially clipped after Tab focus; the reachability statement above covers the question and answer controls, not complete visibility of every control. I have not established whether this is pre-existing.
This does not reproduce or rule out the reporter's Orca 1.4.278 case. The exact three-question payload, pane dimensions, screenshot and transition sequence would help connect that report to this change. I tested the component renderer, not Electron or mobile/Windows/Linux. No competing patch or PR was created.
Investigation assisted by Hermes with codex/gpt-6-astra; measurements above come from this PR head, not the earlier local candidate.
Both corrections are right, and both are now in the description rather than left as claims.
Digit vs. arrow. Your measurement is what mine should have said. A digit press selects (aria-pressed → true) but does not move scrollTop on its own — it stays 0 at 0/100/600 ms — and it is the following ArrowDown that focuses option 1 and produces 216 / 555. Testing and Risk now say "digits select, arrows/Tab bring into view" and give the two scrollTop numbers, so the digits are not credited with the scroll.
Capped reachability. Agreed — "the dock does not scroll" is not "the options are unreachable". With the cap on, the question and body keep their own working scroll regions, so wheel input reaches the options and the field; what the cap costs is the question's readability. I changed the Before row from "no / no" to "yes, by inner scroll" and rewrote the point underneath to say the cap costs readability, not reachability. The improvement I'm claiming is narrower now: the question reads in full and the small inner question viewport is gone.
The tail/option-4/input/footer screenshot you mention lines up with that reading, so the smaller claim is the one to keep.
I left the 220×200 Cancel-icon partial clip out of the reachability statement — it is outside what this change touches and I have not established whether it is pre-existing; if you want, I can check it on main next round and open a separate issue if it reproduces there.
onegaop
pushed a commit
to onegaop/orca
that referenced
this pull request
Nov 27, 2026
Apply stablyai#45791, stablyai#50257, stablyai#48696 and keep artifact links on their conversation host. Preserve the built-in ACP version guard where upstream meeting fork types.
Two new reports in #49948 broaden the useful verification cases: a roughly 990pt-wide card with three options on 1.4.279, and OMP questions with paragraph-length choices on 1.4.278. I have started focused OMP-path/wide-card validation on 6363cfa; no competing PR or expand/collapse implementation is being opened. The latter is an optional UX proposal, explicitly not a request to delay this fix.
One remaining documentation follow-up to your accepted corrections: the current ELI5 still says the question ending cannot be seen and the answer field is out of reach; Why still says “there is no gesture that reveals it”; the Before screenshot caption still says the options and field are out of reach. These conflict with the corrected table and our inner-scroll measurements. Could you align those passages with the narrower demonstrated improvement—removing the small question-only viewport improves readability while answer controls remain reachable by scrolling? The single-line inline-code report is still unconfirmed and should not be treated as resolved by the long-question evidence.
Done — those three passages now match the corrected table and the inner-scroll measurements:
ELI5 no longer says the field was pushed out of reach; it says the only way to read the rest was to scroll the question's own small viewport.
Why no longer claims "there is no gesture that reveals it". It says the cap turns the question into its own scroll region instead of text that reads as part of the card, and that with the cap gone the question reads in full while the options and field stay reachable by scrolling the card body — or the dock, at the card fit level.
The Before screenshot caption now reads "no affordance that the text continues and the remainder only reachable by scrolling the question's own small viewport" instead of "options and answer field out of reach below".
The Before table row and both points under it already carried the narrower reading, so nothing there changed.
On the single-line inline-code report: agreed it is not covered by the long-question evidence, and I am not claiming it as resolved here. I have not reproduced it — the reports in #49948 do not yet pin the pane size and the exact question text, so I left it out of this PR's scope rather than guess at a second mechanism.
Thanks for updating the description. The field-reachability claim, “no gesture” assertion and Before caption have been revised; the opening still contains “without ever seeing the end” immediately before describing the working inner scroll, so that phrase could simply be removed for consistency.
The completed OMP-compatible ACP/wide-card component measurements support the cap-removal effect at 6363cfa (992px card: 41/103 → 103/103 question client/scroll height). However, a new report and #50978 identify the real prompt-slot display: contents wrappers as a separate dock-fit problem. I checked our fixture: it also mounts the card directly in the dock, so our evidence does not validate that wrapper path. Full measurements and limits: #49948 (comment).
I have started a pinned-head rendered comparison with the slot structure on both PRs. This should distinguish the fit-selection bug from the behavior choice of retaining a two-line fallback in short panes. I am not claiming either PR fully resolves #49948, and will keep the inline-code report separate. No competing PR is being created.
Updated: the ELI5 opening no longer says the end was never seen — it now reads "a long question was cut off at the edge, and the only way to read the rest was to scroll the question's own small viewport", matching the corrected table and the inner-scroll measurements. Thanks for keeping the scope to what the fixtures demonstrate.
The real production slot-wrapper comparison is now complete at 6363cfa; matrix and limits.
Your header change still improves the wrapped case: restoring only its original caps yields 41/103px, while unchanged head yields 103/103px. The old selector nevertheless measures a zero-size contents wrapper and forces final dock fit at all three tested pane heights (1023, 600, 312; width 1024). #50978 corrects that traversal separately.
The short-pane tradeoff is measurable: at 312px, this PR keeps the full question, leaving 85px for each roughly 141px option; arrows still focus all choices, Tab reaches input, the draft survives focus changes and Skip stays reachable. #50978 retains a two-line question there and gives each focused option enough geometric space. These policies need explicit reconciliation.
The new async-question regression reported on #50978 is outside this completed synchronous-prompt matrix; I have started a focused probe. The current evidence is component-level Chromium with synthetic input, not full Electron or a clearance to close all #49948 symptoms. No competing implementation was created.
Thanks for the slot-wrapper numbers — good to have the wrapped path measured rather than inferred, and it's clear #50978 owns the display: contents traversal.
On the two policies. Short-pane question height: I'll follow #50978's two-line question plus focused-option clearance if that is the direction you land on; the reason I removed the cap here is that a clipped question hides the text the user has to answer against, but that is a policy choice and yours to set. Scope: I'm happy for this PR to stay as the uncapped-question change and for #50978 to carry the fit-traversal fix and the short-pane reconciliation — no objection to landing them in whichever order you prefer, and I won't touch #50978.
If the short-pane decision comes out the other way, say so and I'll put the two-line floor back here while keeping the removed four-line cap.
Thanks — your slot-wrapper matrix answers the question I could not from my fixtures, and I take the measurement as yours rather than re-deriving it.
Two points on where this leaves the PR:
Different scope, both load-bearing. This PR only removes the question's height cap in the prompt band; it does not touch how the dock finds its items. Your result that the unchanged head yields 103/103px while restoring only the original caps yields 41/103px is exactly the evidence that the cap removal stands on its own even where the fit traversal already lands correctly. fix(native-chat): show long questions in full when the pane has room #50978's nativeChatDockItems change is the other half, and I have left it there.
The 312px policy split is a maintainer call. This PR spends the dock on the question and relies on scroll plus the card's digit/arrow shortcuts for the options; fix(native-chat): show long questions in full when the pane has room #50978 keeps a two-line fallback so each focused option gets geometric space. I am not going to converge this PR onto fix(native-chat): show long questions in full when the pane has room #50978's policy unilaterally — doing so would leave two near-identical patches, which is worse for review than one explicit choice between them. If a maintainer prefers the two-line fallback, I will switch this PR rather than have both open.
The async-question regression you started probing on #50978 is a separate path from the synchronous prompt matrix here, so I am not claiming it either way.
The revision check on #50978 at 64bea2 is complete: its new four-line question fallback resolves the oversized-async queue/editor contraction in the production-component fixture. The synchronous wrapper checks still pass at 1023/600/312px pane heights.
This PR remains at 6363cfa; I reused its existing fixed-head evidence rather than rerunning unchanged code. The policy distinction remains: #50257 keeps the full title in the short wrapped pane, while revised #50978 retains a two-line final card fallback after the four-line step. The results do not establish that the header edits can be combined mechanically.
@nwparker Could you confirm the intended short-pane policy and which PR should carry the final implementation? No additional patch from me is needed to report this result. The linked verification is synthetic production-component Chromium evidence, not full Electron/provider validation or clearance to close every #49948 symptom.
Neither this PR nor #50978 is the other superseded — they differ only in the short-pane policy, so there is one decision left and it is yours (or @nwparker's):
This PR spends the dock on the question and relies on scroll plus the card's digit/arrow shortcuts for the options.
If you prefer the two-line fallback, say so and I will switch this PR to it rather than leave two near-identical patches open. If the full-title policy is the one you want, this PR is the patch to take and #50978 can close.
Nothing else is outstanding here: the gate is green and the bot thread from ea1a334 is resolved.
Long questions now read in full. In short panes, the question, options, answer field and Skip scroll together inside the card. The dock makes room before shrinking the card, and group-room questions remain reachable.
Verified the final head against main at 1024×900, 1024×560, 1024×400, 1024×340 and 760×400 with a seeded dev profile. Keyboard navigation, answering, Skip, step reset and draft retention passed. The 116px pane and group-room checks passed. Remote formatting, lint, typecheck, targeted tests and selected static checks passed; CI passed. Performance inspection found no new timers, listeners or idle work. Resize checks settled on both builds.
Known limits: with both sidebars open at 760×400, both builds have the same existing width collapse. The separate one-line inline-code clipping report did not reproduce on either build. Questions came from a deterministic provider fixture through the production UI.
Before, 1024×340:
After, same viewport, question and scrolled answer controls:
Thanks for the independent pass — the five viewports and the group-room case are exactly the checks I could not run here, and it is useful that the 760x400 sidebar collapse reproduces on both builds so it is clearly not this patch.
That leaves the one open item from earlier: this PR keeps the question uncapped in the short pane, while #50978 keeps a two-line fallback. I will take whichever of the two the maintainers prefer; if it is the two-line fallback, say so and I will switch this PR rather than leave two near-identical patches open.
Rechecked current head 5ff4f5a9c70fab266a6c94ea37aa9044f9308bce with production-component Chromium fixtures. This supersedes my 6363cfa layout results for this PR; the implementation now changes whole-card scrolling and dock fitting, not just the question cap.
The wrapped card is usable in the exercised matrix. At width 1024 and pane heights 1023 / 600 / 312, the same 103px question remains uncapped. Fit is unset at 1023 and queue composer transcript card at 600/312. Injected wheel reaches the footer, arrows bring each of the three long options within the clipping geometry, Tab reaches free text, the draft survives focus changes, and a subsequent Tab brings Submit fully into view. Skip is reachable by wheel after resetting the fixture. This establishes reachability; Submit is not simultaneously visible while typing in the shortest pane.
The full-title policy also consumes queue/composer space for oversized async questions. With the same production AsyncQuestion fixture, 1024×1000 pane, three queued messages and eight-line editor draft:
3578px, with about 760px initially visible through ancestors
Queue list height
114px
0px, folded
Composer editor height
168px
68px
The title tail, answer field and local Skip remain reachable; drafts and composer editing work. The queue header/data remain. In the previously measured #5097864bea2 fixture, its four-line first fallback retained the 114px queue list and 168px editor. These are different policies/baselines, not a proof that #50257 introduced this behavior relative to current main. Please include this tradeoff in the choice, rather than only the two-line-versus-full-title distinction.
One retained queue gap prevents treating the PRs as complete substitutes. At a roomy 1024×1600 pane with six queued messages and the same synchronous structured prompt, mounting it without the extra production slot wrappers produces three queued rows plus “3 more”. Mounting it through the real Layer/PromptSlot chain produces six queued rows, no “more” control. Both have no fit compression. The queue's old exported selector detects the question only in the first case; the second returns the zero-box contents anchor. This is separate from your private FIT_ITEM_SELECTOR, which now fixes the fit path. Source: use-native-chat-queue-room.ts:28-38. This is a demonstrated remaining gap, not a claimed newly introduced regression. #50978's shared collector and queue invalidation changes still have independent scope worth retaining or reconciling; I did not test mount/unmount or sheet relocation here.
Seven final cases, no pageerrors. Frozen-lockfile dependency installation succeeded; production-source hashes were checked and temporary fixtures archived/removed. No product edits or gate run. Limits: synthetic data, headless Chromium 157.0.8103.81, no real Claude/Codex transport, full Electron, Windows/Linux, group-room or step-transition retest. The separate one-line/inline-code symptoms remain unverified.
Please update the body: “nothing else moves”, separate option scrolling, and no new runtime logic no longer describe the current diff. The current PR Checks run 46143246263 still reports action_required with no jobs, so the earlier CI-pass comment cannot establish that run passed. @nwparker please reconcile the queue scope and height policy when choosing the retained implementation, and approve the fork workflow if appropriate.
Investigation assisted by Hermes with codex/gpt-6-astra.
Thanks a lot for this fix, @2SinceJuly! Long questions in the chat question card now show in full, and it's merged. We added a small follow-up on top so short panes scroll the card, which keeps the answer field and Skip reachable.
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
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.
ELI5
When Claude asks you a question in native chat, it shows a card with the question, some answer choices and a text box. The space for the question itself was capped at four lines, and capped at two when the pane is short. Anything past the cap was hidden — not behind a "show more", just cut off at the edge with a fade over it. So in a short window a long question was cut off at the edge, and the only way to read the rest was to scroll the question's own small viewport.
Now the question gets the room it needs. The choices and the text box already have their own limits, so the card still fits on screen and the dock scrolls to reach them.
What Changed
mainrecently moved the question into the card's prompt band (#49387) and kept the previous height cap with it. That cap is what #49948 reports, so this change removes it there instead:max-h-[4lh], and[[data-native-chat-dock-fit~=card]_&]:max-h-[2lh]when the pane is short. The second rule is the reported bug on its own: at thecardfit level the question is clipped to two lines with no affordance that the text continues.min-h-[1lh],data-native-chat-dock-floor-lines={2}andflex-1, so it still has its floor and still yields to the card around it, but it takes the height its text needs.Nothing else moves. The options list keeps its own scroll region, the answer field keeps its own cap, and the dock-fit levels decide where the squeeze goes exactly as before.
Why
An answer card exists to get an answer to a specific question. Capping the question inverts that: the user has to choose without the part that was cut, and seeing the rest means scrolling a small box inside the card — the cap turns the question into its own scroll region instead of text that reads as part of the card (measured below). With the cap gone, the question reads in full while the options and the answer field stay reachable by scrolling the card body or, at the
cardfit level, the dock.The alternatives and why they lose:
Linked Issue
Fixes #49948
Constrained-pane verification
The reported clip only appears in short panes, so the fixtures and the measurements below use the real dock at fixed pane sizes:
native-chat/prompts/NativeChatQuestionCardDock:constrainedDock(380×312) and:tinyDock(220×200), each with the issue's 400+ character question ending in a visible— end of question.marker, four described options and the free-text field.Measured in headless Chromium on this branch, at the same fixture:
clientHeight/scrollHeightof the question element and whether the options and field fall inside the dock's scroll range.Before (cap restored on purpose, same fixtures):
constrainedDockqueue composer transcript cardtinyDockqueue composer transcript card dockAfter (this branch):
constrainedDockqueue composer transcript card docktinyDockqueue composer transcript card dockTwo things worth calling out:
docklevel the dock itself scrolls), so everything is reachable, but it is reachable-by-scrolling rather than visible-on-open. This is stated in place of the earlier "option 1 is guaranteed in view" claim — with the question uncapped, what the two-line floor guarantees is the question's own floor, not where option 1 lands; option reachability is through scrolling.Visual Proof
constrainedDock(380×312), dark theme, captured from the fixture explorer with the same viewport and clip.Before — two lines, cut mid-sentence at "Must", with no affordance that the text continues and the remainder only reachable by scrolling the question's own small viewport:
After — the same card reads the question on to "— end of question"; the dock scrolls to the options and the field:
tinyDock(220×200) after the change, the smallest pane in the report:Reproduce with
pnpm dev:fixturesand?id=native-chat%2Fprompts%2FNativeChatQuestionCardDock%3AconstrainedDock&theme=darkonmainand on this branch.Testing
Commands run in the worktree:
pnpm typecheck— passes.oxlinton every changed file — clean, including themax-linesbudget (the two new fixtures live in their ownNativeChatQuestionCardDock.fixture.tsxrather than pushingNativeChatQuestionCard.fixture.tsxpast 400 lines).pnpm test src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.test.tsx --maxWorkers=2— 13 tests pass, including the tests Show native chat questions in the prompt band #49387 added for the question in the band.shouldFocusso the card's shortcut hook is enabled. The card takes focus on mount; a digit press (3) selects that option (aria-pressedflips to true) but does not itself movescrollTop—scrollTopstays 0 at 0/100/600 ms — while a followingArrowDownfocuses option 1 and the dock scrolls (216 in the 380×312 pane, 555 in the 220×200 pane). So digits select and arrows/Tab bring a control into view; both are measured from the rendered DOM, not asserted.Platforms actually exercised: the renderer measured in Chromium through the fixture harness. I did not run this inside Electron on Windows or Linux; the change is layout-only and touches declarations shared by all platforms.
No automated test is added, deliberately. The behavior here is box geometry, and
docs/agents-md-refs/test-antipatterns.mddisallows claiming layout coverage from happy-dom and disallows asserting on Tailwind class strings. The component suite runs in happy-dom, whereclientHeightandscrollHeightare both 0, so a test there would either assert on the class string (banned) or pass against the unfixed code. The measurements above are the check, and the fixtures let a reviewer re-run them in one command.Performance
None, because this removes one
max-heightdeclaration and one CSS class from one element. Nothing new runs per render, and the card already re-fits through the existingResizeObserver/dock-fit path when its height changes.Risk
Level: Low
mainalready makes at four lines.role="region"in that level.Backing it out is a plain revert of the single commit; nothing persists and nothing migrates.
AI Disclosure
I used Claude (Anthropic) to read the card, the dock and the dock-fit module, to build the fixtures, to measure the rendered boxes in Chromium, and to write the change. I reviewed the diff, ran typecheck, lint and the component tests myself. The measurements are values read from the rendered DOM, not generated prose.
Review
min-h-[1lh],flex-1and its two-line floor attribute; only the ceiling is gone, so a squeezed card cannot collapse it to nothing.Agent skill upstream boundary
Notes
Security: no change. Cross-platform: layout-only, measured on macOS/Chromium. Remote SSH: N/A. Mobile: shares the same declarations, not separately measured. Backwards compatibility: none affected. Performance: unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck, and the affectedpnpm testfiles pass;pnpm buildleft to CI (see Testing)