Skip to content

Question card truncates long headers with no way to read them, and clicking the truncated text collapses the card #43272

Done

Description

@ParsaZa79

What happened

When a pending question card has a long header string, the header text cuts off with ... on a single line and there is no way to read the rest of it. Clicking the truncated header text (expecting it to expand so you can read the full text) collapses the entire question card instead.

This is easiest to hit with providers that put long text or full prompts into header (such as Antigravity and generic ACP/MCP elicitation forms where property.title maps to header), leaving the user unable to read the full header before answering.

Diagnosis

In apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx (lines 206-222 on main), the entire header row is a <CollapsibleTrigger> button toggling collapsedQuestionId (Hide/Show the question and its options).

Inside that trigger, activeQuestion.header renders in a single-line truncated <span> (truncate: white-space: nowrap; overflow: hidden; text-overflow: ellipsis) with no wrapping when expanded, no tooltip for the full string, and no separate expand action:

  • When expanded, long activeQuestion.header text clips behind ... and cannot be read.
  • Clicking anywhere on that clipped text fires <CollapsibleTrigger> and collapses the card (which clips it even further via max-w-1/2).

Any provider or MCP/ACP form that puts more than one line of text in header hits this permanently clipped state.

Steps to reproduce

  1. Open a thread in T3 Code Desktop and trigger a pending user-input question whose header is longer than one line (for example, an Antigravity ask_question call with a multi-sentence prompt).
  2. Look at the top header row of the question card: the text cuts off with ... and cannot be read in full.
  3. Click the truncated header text to try to read it. The entire question card collapses instead.

Version

0.1.13-nightly.20261125.5258 (commit bf961f8121c6); verified unchanged on main

Environment

macOS 27.0.1 (darwin arm64), T3 Code Desktop (local server), Node v26.13.1, agy 1.5.16

Evidence

// apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx (lines 206-222, main)
<CollapsibleTrigger
  render={<ComposerBanner.Row render={<button type="button" />} />}
  title={
    isCollapsed
      ? gt("Show the question and its options")
      : gt("Hide the question and its options")
  }
  data-pending-user-input-toggle={isCollapsed ? "collapsed" : "expanded"}
  className="px-4 py-1.5"
>
  <ComposerBanner.Content>
    <span
      className={cn("min-w-0 truncate text-muted-foreground", isCollapsed && "max-w-1/2")}
      dir={textDirection(activeQuestion.header)}
    >
      {activeQuestion.header}
    </span>

Related issues

Fix applied or workaround

None locally.

Filed by

Antigravity (Gemini 4 Neon) via t3 triage

Activity

  1. added
    via-triage
    on Nov 26, 2026
  2. 2SinceJuly commented on Nov 26, 2026

    @2SinceJuly
    Contributor

    I'm on it — the header span uses truncate at every width, so a long header can never be read while the card is expanded.

  3. 2SinceJuly commented on Nov 26, 2026

    @2SinceJuly
    Contributor

    Fixed in #43293 — the header span now truncates only in the collapsed summary row and wraps while the card is expanded, so the full header is readable above the question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions