Skip to content
Source
Sign inSign up
pingdotgg/t3code

Composer usage-limit banner overflows left edge and renders duplicate info icons in narrow panes #48101

Opensantissimoo(GitHub profile, opens in a new tab) opened this issue 0 comments

What happened

In a narrow thread pane when a thread hits a usage limit (with auto-resume enabled) and also has stashed prompts, the docked warning banner above the composer breaks visually:

  • The title truncates to "Us..." with two identical (i) info icons rendered side by side ([gauge] Us... (i) (i)).
  • Both action links (Cancel auto-resume and Snooze until reset) wrap onto separate lines and overflow past the left edge of the amber banner border over the chat transcript.

Diagnosis

Three layout issues compound when the composer dock is narrow (verified against 0.1.14-nightly.20261201.5564, 0.1.14-nightly.20261203.5637, and main):

  1. Action labels overflow past the left edge of the banner

    • ComposerBanner.Row uses layout="wrap-actions" (apps/web/src/components/chat/ComposerBannerStack.tsx:184, ComposerBanner.tsx:160-167), wrapping ComposerBanner.Actions onto a second flex line.
    • ComposerBanner.Actions has justify-end, ms-auto (ComposerBanner.tsx:230-232), and an explicit min-w-14 sm:min-w-12 (ComposerBannerStack.tsx:213), so the actions container shrinks to the narrow banner's inner width.
    • Inside it, UsageLimitRecoveryBanner.tsx:196 renders <span className="flex flex-wrap items-center gap-x-3 gap-y-1 px-1"> with no min-w-0/max-w-full, containing two InlineButtons that default to shrink-0 and [white-space:var(--inline-button-white-space,nowrap)].
    • The inner <span>'s flex min-width: auto clamps to the widest nowrap button ("Cancel auto-resume" + px-1), which exceeds the banner's inner width. Because ComposerBanner.Actions uses justify-end, the excess width is pushed out the left edge, and the banner surface (before:inset-0) does not clip overflow.
    • Note: InlineButton already exposes --inline-button-white-space and --inline-button-text-align (used in the notice popover), which could allow narrow-container wrapping alongside min-w-0 max-w-full and justify-start / safe flex-end when wrapped.
  2. Duplicate (i) info buttons + title crushed to "Us..."

    • ComposerBannerStack.tsx wraps item.title (line ~192) and item.description (line ~206) in two separate truncation-detection popover wrappers inside ComposerBanner.Content.
    • At container width < 400px, description receives @max-[400px]:sr-only (position: absolute). The truncation detector checks getComputedStyle(el).position === "absolute", so description unconditionally spawns an (i) button.
    • That (i) button consumes width from the narrow content row, causing title to truncate and spawn a second (i) button right next to it, leaving only enough width for "Us...". Consolidating title + description into a single info trigger when either is truncated/hidden would prevent duplicate icons and preserve title width.
  3. Horizontal width starvation in ComposerBanner.Dock

    • ComposerBanner.Dock (ComposerBanner.tsx:92) renders ComposerBanner.Column (flex-1 min-w-0, line 104) and ComposerStashBadge (data-composer-shoulder-tab, width="content" / flex-none, ComposerStashBadge.tsx:36) side-by-side in a non-wrapping row inside w-[calc(100%-2*var(--chat-composer-drawer-inset))].
    • In a narrow split pane or window, the fixed-width Stash tab + 44px drawer insets squeeze ComposerBanner.Column down to ~110–120px, triggering both bugs above.

Steps to reproduce

  1. Open a thread that has hit a usage limit with a future reset time and Auto-resume enabled (so actions show Cancel auto-resume and Snooze until reset).
  2. Add at least 1 stashed prompt so the Stash shoulder tab renders alongside the banner in ComposerBanner.Dock.
  3. Narrow the thread pane (e.g. split view / side panel or resize window so the composer is ≤ ~260–300px wide).
  4. Observe [gauge] Us... (i) (i) on row 1 and Cancel auto-resume / Snooze until reset overflowing past the left border of the amber banner.

Version

0.1.14-nightly.20261201.5564 (also verified present in 0.1.14-nightly.20261203.5637 and main)

Environment

macOS 27.2.1, T3 Code Desktop (Nightly), Node v26.12.1

Evidence

apps/web/src/components/chat/ComposerBanner.tsx:230-232
  "col-start-3 row-start-1 flex flex-wrap items-center justify-end gap-1"
  "group-data-[composer-banner-layout=wrap-actions]/banner-row:ms-auto"

apps/web/src/components/chat/ComposerBannerStack.tsx:184,192,206,213
  <ComposerBanner.Row layout="wrap-actions">
  title wrapper -> Show full title: {title}
  description wrapper -> className="w-0 min-w-0 grow truncate text-muted-foreground @max-[400px]:sr-only"
  <ComposerBanner.Actions className="min-w-14 sm:min-w-12">

apps/web/src/components/chat/UsageLimitRecoveryBanner.tsx:196
  <span className="flex flex-wrap items-center gap-x-3 gap-y-1 px-1">
  • #43607 (closed) — about usage-limit banner state not clearing / buttons doing nothing; not a layout/overflow issue.

Fix applied or workaround

None (widening the thread pane avoids the overflow).

Filed by

Antigravity (Gemini 4 Neon) via t3 triage

  1. santissimoo(GitHub profile, opens in a new tab) added labelsvia-triage

  2. tanstack-source added labelsbug

Sign in to join this conversation.