Composer usage-limit banner overflows left edge and renders duplicate info icons in narrow panes #48101
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-resumeandSnooze 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):
Action labels overflow past the left edge of the banner
ComposerBanner.Rowuseslayout="wrap-actions"(apps/web/src/components/chat/ComposerBannerStack.tsx:184,ComposerBanner.tsx:160-167), wrappingComposerBanner.Actionsonto a second flex line.ComposerBanner.Actionshasjustify-end,ms-auto(ComposerBanner.tsx:230-232), and an explicitmin-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:196renders<span className="flex flex-wrap items-center gap-x-3 gap-y-1 px-1">with nomin-w-0/max-w-full, containing twoInlineButtons that default toshrink-0and[white-space:var(--inline-button-white-space,nowrap)]. - The inner
<span>'s flexmin-width: autoclamps to the widestnowrapbutton ("Cancel auto-resume"+px-1), which exceeds the banner's inner width. BecauseComposerBanner.Actionsusesjustify-end, the excess width is pushed out the left edge, and the banner surface (before:inset-0) does not clip overflow. - Note:
InlineButtonalready exposes--inline-button-white-spaceand--inline-button-text-align(used in the notice popover), which could allow narrow-container wrapping alongsidemin-w-0 max-w-fullandjustify-start/safe flex-endwhen wrapped.
Duplicate
(i)info buttons + title crushed to"Us..."ComposerBannerStack.tsxwrapsitem.title(line ~192) anditem.description(line ~206) in two separate truncation-detection popover wrappers insideComposerBanner.Content.- At container width
< 400px,descriptionreceives@max-[400px]:sr-only(position: absolute). The truncation detector checksgetComputedStyle(el).position === "absolute", sodescriptionunconditionally spawns an(i)button. - That
(i)button consumes width from the narrow content row, causingtitleto 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.
Horizontal width starvation in
ComposerBanner.DockComposerBanner.Dock(ComposerBanner.tsx:92) rendersComposerBanner.Column(flex-1 min-w-0, line 104) andComposerStashBadge(data-composer-shoulder-tab,width="content"/flex-none,ComposerStashBadge.tsx:36) side-by-side in a non-wrapping row insidew-[calc(100%-2*var(--chat-composer-drawer-inset))].- In a narrow split pane or window, the fixed-width Stash tab +
44pxdrawer insets squeezeComposerBanner.Columndown to ~110–120px, triggering both bugs above.
Steps to reproduce#
- Open a thread that has hit a usage limit with a future reset time and Auto-resume enabled (so actions show
Cancel auto-resumeandSnooze until reset). - Add at least 1 stashed prompt so the Stash shoulder tab renders alongside the banner in
ComposerBanner.Dock. - Narrow the thread pane (e.g. split view / side panel or resize window so the composer is ≤ ~260–300px wide).
- Observe
[gauge] Us... (i) (i)on row 1 andCancel auto-resume/Snooze until resetoverflowing 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">
Related issues#
#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
santissimoo(GitHub profile, opens in a new tab) added labelsvia-triage
tanstack-source added labelsbug
markjoin123(GitHub profile, opens in a new tab) linked this to #48249
Sign in to join this conversation.