Skip to content

Compact provider instance badges are clipped on the right and bottom edges in sidebar thread cards #46130

Done

Description

@vibhor1102

What happened

When multiple provider instances exist (showing initials badges such as AY / AB on the Antigravity icon), the instance badge at the bottom-right of each sidebar thread card is sliced flat along its right and bottom edges instead of rendering as a full rounded pill (compare the same AY icon in the composer, which is unclipped).

image

Diagnosis

  • In apps/web/src/components/chat/ProviderInstanceIcon.tsx:114 and 182-183, ProviderInstanceIcon with size="compact" renders a 14px (size-3.5) icon and positions the initials badge at right-[-0.1875rem] bottom-[-0.1875rem] (3px outside the icon's right and bottom edges).
  • In apps/web/src/components/sidebar/SidebarThreadRow.tsx:1651-1663 (1693-1705 on main), the bottom metadata row (metaLine) uses min-h-4 (16px) with items-center and overflow-hidden, and SidebarProviderIcon / SidebarProviderStack (SidebarThreadRow.tsx:258-270 in 7cb8305e3a; 260-296 on main) wraps the compact icon in <span className="inline-flex shrink-0 items-center"> with no trailing/bottom padding.
  • Because the 14px icon is vertically centered in a 16px (min-h-4) box and the agents item sits at the right edge of metaLine, the -0.1875rem (3px) badge offset extends ~2px past the bottom edge and 3px past the right edge of metaLine, so overflow-hidden clips both edges of the badge.

Steps to reproduce

  1. Configure at least two instances of a provider (e.g. two Antigravity accounts) so shouldShowInstanceBadge is true and an initials badge (AY, AB, etc.) is shown.
  2. Keep the default sidebar thread card layout where agents is at the end of the bottom row.
  3. Inspect the provider icon at the bottom-right of any thread card in the sidebar.
  4. Expected: The full rounded initials badge renders cleanly, matching the composer picker.
  5. Actual: The right and bottom edges of the badge are clipped flat by metaLine's overflow-hidden`.

Version

0.1.14-nightly.20261129.5438 (commit 7cb8305; also present on main at 4ddd02d)

Environment

T3 Code Desktop 0.1.14-nightly.20261129.5438, Linux x64 (7.3.5-200.fc44.x86_64), Node v24.22.1

Evidence

SidebarThreadRow.tsx (main @ 4ddd02d137):
  1697: "mt-0.5 flex min-h-4 min-w-0 items-center gap-1.5 overflow-hidden text-secondary-label text-xs",

ProviderInstanceIcon.tsx:
  114: const iconClassName = cn(props.size === "compact" && "size-3.5", props.iconClassName);
  182: props.size === "compact" &&
  183:   "right-[-0.1875rem] bottom-[-0.1875rem] h-3 min-w-3 px-0.5 text-5xs",

Related issues

Not a duplicate of #45607 (fixed in #45609), which addressed card-height clipping at 20px interface font size. Also checked #44794 (SidebarProviderStack), which preserved the same compact icon wrapper inside metaLine's overflow-hidden.

Fix applied or workaround

None applied locally.

Filed by

antigravity (gemini-4-hydrogen) via t3 triage

Activity

  1. added
    via-triage
    on Nov 30, 2026
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