orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug]: Question card clips the question text to 2 lines with no visible cue that it continues

Open hugohomesquita opened this issue 6 days ago • 2 comments

Where were you using Orca?

Desktop only

Operating system

Linux

Remote host operating system

No response

Orca version

1.4.282

Details

Short summary: On the native chat question card (AskUserQuestion), a question longer than two lines gets cut off. The rest of the text is reachable only by scrolling inside the title, and nothing shows that it continues: no ellipsis, no "show more", and the scrollbar is a few pixels wide. The part that gets cut is often the context the options depend on, so the user picks an option without reading the whole question.

What happened? The agent asked a question that was about four lines long. The card showed only the first line and a half: the second line is cut through the middle of the glyphs, mid-sentence, and the only hint is a tiny scrollbar on the right of the title. I didn't notice the text continued until I looked closely. Reproduced with a neutral test question (UI language: Portuguese):

question-card-clipped

Expected: The whole question is readable on the card, or the card shows clearly that there is more text (ellipsis + "Show more" / expand).

How can we reproduce it?

  1. Open a native chat session (Claude Code) in a pane that isn't very tall.
  2. Have the agent call AskUserQuestion with a question of about 300 characters (3 to 4 lines at the card width).
  3. The title shows about 2 lines and the rest is hidden; the visible part ends mid-line.

Anything else that might help: In NativeChatStructuredQuestionCard, the title uses max-h-[4lh] overflow-y-auto, and [[data-native-chat-dock-fit~=card]_&]:max-h-[2lh] drops it to 2 lines when the dock is short. So the clipping looks intentional, but there's no visible cue for it.

Possible fixes:

  • show an ellipsis with "Show more" (or expand on click) when the title overflows, the way approval details already do with line-clamp-3;
  • or keep the question at full height and let the options area scroll instead, since the question is what the user has to read before answering.

hugohomesquita avatar Nov 30 '26 17:11 hugohomesquita

Thanks for the report. This was fixed in v1.4.283 by #50257: the question header no longer caps long questions at two lines, so the full question shows. You're on 1.4.282, so updating to the latest release (v1.4.284) should fix it. If it still clips after updating, comment here and we'll reopen.

nwparker avatar Nov 30 '26 17:11 nwparker

Additional report: decision context clipped above chat choices

This is an additional report of the same symptom as #53342 / #53192, not a claim of a new regression in 1.4.284. We found those reports while preparing a new issue and are adding the details here instead of duplicating them.

Observed behavior

In the native chat choice/question card, the introductory question containing the context for the decision is confined to an approximately two-line scrolling header. In the supplied screenshot, it ends mid-sentence, with a tiny scrollbar beside the text. Three option cards and their descriptions occupy substantially more space below it. The question is technically scrollable, but it is difficult to discover and read as a coherent paragraph.

The highlighted defect is the question/context above the options, not a demonstrated truncation of the individual option descriptions. The controls at the upper right also do not clearly communicate how to reveal the missing context.

Impact

The hidden text can contain the reason for a recommendation, exceptions, or consequences needed to choose safely. A reader can mistake the visible fragment for the whole question and answer before seeing the qualification. Even when discovered, reading a paragraph through a narrow nested scroll strip is cumbersome.

Neutral reproduction scenario

  1. Open a native chat with structured questions enabled.
  2. Ask the agent to produce a single-choice question with a 400–600 character introductory paragraph and three options, each with a two- or three-line description.
  3. End the question with an unmistakable marker such as END OF DECISION CONTEXT.
  4. Inspect it at a normal pane size, then narrow and shorten the pane.
  5. Check whether the final marker is readable by normal card scrolling, rather than by discovering a separate approximately two-line title scroller.

Suggested neutral question:

The read-only migration preview found eleven records that would disappear across nine accounts. Seven are redundant imports, three represent current employers, and one still requires investigation. Nothing has been written. Removing the records is the smallest change, but keeping employer links would preserve context for affected accounts. Review the consequences of each approach before deciding whether to proceed, preserve those links, or pause for the full audit. END OF DECISION CONTEXT

Expected behavior / acceptance checks

  • When space permits, the full question wraps naturally without an artificial two-/four-line height cap.
  • When the pane is constrained, the card has a coherent scroll surface; all question text, choices, free-text input, and final actions remain reachable.
  • No partial line/fade should look like the actual end of the question.
  • Long option descriptions remain readable without horizontal scrolling.
  • Keyboard choice selection, focus visibility, collapse/cancel, and multi-question navigation continue to work.
  • Check normal desktop panes, short split panes, narrow panes, and larger chat text settings. Include both direct and remote-served chat surfaces.

Version and fix investigation

The exact app version and client/server topology of our screenshot have not been independently established; our last recorded fleet rollout was 1.4.282. We are not reporting a reproduction on 1.4.284.

Source comparison confirms that v1.4.282's NativeChatQuestionCardHeader.tsx has max-h-[4lh] and the dock-fit max-h-[2lh] override. In v1.4.284, those caps are absent, the header band has shrink-0, and NativeChatQuestionCard.tsx supplies a scrollable whole-card surface with nonshrinking content. The release also includes constrainedDock (380×312) and tinyDock (220×200) fixtures with a long question and an ending marker.

This matches the remedy in #50257, merged as 68057fbd02a7517df5c4ad7e5279cb33da34c7e0 and shipped in 1.4.283. The existing fix appears to cover this report; no additional patch is proposed without a reproduction on a fixed release. Local rendered verification of our exact case is still pending. The original screenshot includes production-specific context; this report uses a neutral equivalent instead.

davefano avatar Dec 01 '26 00:12 davefano