The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 19:30 UTC
fix(web): subagent bar keeps model and status readable in narrow chat columns (#23502)
Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shivam committed
Oct 22, 2026 at 19:50 UTC
60b35a1ee02d717009ff4a3de34de285db9e8a60
1 file changed
+33
-26
apps/web/src/components/chat/ProviderSubagentBar.tsx
+33
-26
@@ -42,40 +42,47 @@ export function ProviderSubagentBar(props: {
42
return () => clearInterval(id);
43
}, [live, status]);
44
45
+ // Sized by the composer, not the viewport: a docked side panel narrows the
46
+ // chat column on a wide window, and one row there squeezes out the model
47
+ // and status, so the status drops to its own line instead.
48
return (
49
<div className="flex min-h-12 items-center gap-3 rounded-3xl py-2 ps-5 pe-2 text-sm">
47
- <span className="flex min-w-0 items-center gap-2">
48
- {props.provider ? (
49
- <ProviderInstanceIcon
50
- driverKind={props.provider.driverKind}
51
- displayName={props.provider.displayName}
52
- accentColor={props.provider.accentColor}
53
- acpRegistryAgentId={props.provider.acpRegistryAgentId}
54
- acpRegistryIconUrl={props.provider.acpRegistryIconUrl}
55
- showBadge={props.showInstanceBadge}
56
- className="size-4 shrink-0"
57
- iconClassName="size-4"
58
- badgeClassName="right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-5xs"
59
- />
60
- ) : null}
61
- <span className="min-w-0 truncate font-medium text-foreground">{props.modelLabel}</span>
62
- {props.effortLabel === null ? null : (
63
- <span className="shrink-0 text-muted-foreground">{props.effortLabel}</span>
64
- )}
65
- </span>
66
- <span
67
- ref={statusRef}
68
- aria-hidden
69
- className="min-w-0 truncate text-muted-foreground tabular-nums"
70
- />
50
+ <div className="flex min-w-0 flex-1 items-center gap-3 @max-[560px]/composer-surface:flex-col @max-[560px]/composer-surface:items-start @max-[560px]/composer-surface:gap-0.5">
51
+ <span className="flex min-w-0 max-w-full items-center gap-2">
52
+ {props.provider ? (
53
+ <ProviderInstanceIcon
54
+ driverKind={props.provider.driverKind}
55
+ displayName={props.provider.displayName}
56
+ accentColor={props.provider.accentColor}
57
+ acpRegistryAgentId={props.provider.acpRegistryAgentId}
58
+ acpRegistryIconUrl={props.provider.acpRegistryIconUrl}
59
+ showBadge={props.showInstanceBadge}
60
+ className="size-4 shrink-0"
61
+ iconClassName="size-4"
62
+ badgeClassName="right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-5xs"
63
+ />
64
+ ) : null}
65
+ <span className="min-w-0 truncate font-medium text-foreground">{props.modelLabel}</span>
66
+ {props.effortLabel === null ? null : (
67
+ <span className="shrink-0 text-muted-foreground">{props.effortLabel}</span>
68
+ )}
69
+ </span>
70
+ <span
71
+ ref={statusRef}
72
+ aria-hidden
73
+ className="min-w-0 max-w-full truncate text-muted-foreground tabular-nums @max-[560px]/composer-surface:text-xs"
74
+ />
75
+ </div>
76
<span role="status" className="sr-only">
77
{`${modelDescription} subagent: ${announcement}`}
78
</span>
74
- <span className="ms-auto shrink-0 text-muted-foreground max-sm:hidden">Runs on its own</span>
79
+ <span className="shrink-0 text-muted-foreground @max-[640px]/composer-surface:sr-only">
80
+ Runs on its own
81
+ </span>
82
{props.onOpenParent ? (
83
<Button size="sm" variant="ghost" onClick={props.onOpenParent}>
84
<ArrowUpLeftIcon />
78
- Open parent
85
+ <span className="@max-[320px]/composer-surface:sr-only">Open parent</span>
86
</Button>
87
) : null}
88
</div>