Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(agents): keep long model names readable in pickers (#8988)

Wolf Mermelstein5740d34f9025
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md
index 03cf76cfc3..38f09df93c 100644
--- a/apps/web/AGENTS.md
+++ b/apps/web/AGENTS.md
@@ -246,6 +246,8 @@ the user's newest account for that app from the last fifteen minutes.
preserve their native input semantics and use root sizing instead of internal
control/glyph overrides. See the [selection-control contract](../../.agents/rules/web/ui-primitives.md#selection-controls).
+- Keep model picker triggers bounded with full-name title tooltips; wrap model names in catalog rows, including effort submenus and touch sheets.
+
Agent split headers show live viewers through `BlockLiveIndicators` with the
resolved session ID; keep the existing `AgentSessionProvider` subscription to
`agent_session` rather than enabling legacy block tracking of placeholder IDs.
diff --git a/apps/web/src/features/agents-view/views/AgentPicker.tsx b/apps/web/src/features/agents-view/views/AgentPicker.tsx
index d1ac850c3d..4a3373cbde 100644
--- a/apps/web/src/features/agents-view/views/AgentPicker.tsx
+++ b/apps/web/src/features/agents-view/views/AgentPicker.tsx
@@ -95,8 +95,9 @@ function DesktopAgentPicker(props: AgentPickerProps) {
: `${props.selected?.name ?? 'Choose agent'} · ${label()}`
}
class={cn(
- 'h-[33.75px] min-w-0 max-w-full gap-[5.625px] px-[7.5px] text-base font-normal text-ink-muted light-mode:text-composer-placeholder',
- props.triggerClass
+ 'h-[33.75px] min-w-0 gap-[5.625px] px-[7.5px] text-base font-normal text-ink-muted light-mode:text-composer-placeholder',
+ props.triggerClass,
+ 'max-w-[min(18rem,100%)]'
)}
>
<Show when={!rawModel()}>
diff --git a/apps/web/src/features/agents-view/views/MobileAgentPicker.tsx b/apps/web/src/features/agents-view/views/MobileAgentPicker.tsx
index e0963338c4..0defb9febe 100644
--- a/apps/web/src/features/agents-view/views/MobileAgentPicker.tsx
+++ b/apps/web/src/features/agents-view/views/MobileAgentPicker.tsx
@@ -203,7 +203,7 @@ export function MobileAgentPicker(props: AgentPickerProps) {
}}
>
<ModelIcon model={option.id} />
- <span class="min-w-0 flex-1 truncate">
+ <span class="min-w-0 flex-1 whitespace-normal wrap-anywhere">
{option.label}
</span>
<Show
diff --git a/apps/web/src/features/block-agent/component/AgentModelMenuItem.tsx b/apps/web/src/features/block-agent/component/AgentModelMenuItem.tsx
index 0632e23a8d..663a79aea5 100644
--- a/apps/web/src/features/block-agent/component/AgentModelMenuItem.tsx
+++ b/apps/web/src/features/block-agent/component/AgentModelMenuItem.tsx
@@ -63,7 +63,7 @@ function EffortModelSubmenu(
<Dropdown.Sub open={open()} onOpenChange={setOpen} overlap>
<Dropdown.SubTrigger
disabled={props.disabled}
- class="h-8 gap-2"
+ class="min-h-8 gap-2"
textValue={props.option.label}
title={props.option.description ?? props.option.label}
onKeyDown={(event) => {
@@ -80,7 +80,7 @@ function EffortModelSubmenu(
}}
>
<ModelIcon model={props.option.id} />
- <span class="min-w-0 flex-1 truncate text-sm">
+ <span class="min-w-0 flex-1 whitespace-normal wrap-anywhere text-sm">
{props.option.label}
</span>
<Show when={props.hint}>
@@ -101,7 +101,11 @@ function EffortModelSubmenu(
>
<Suspense>
<Dropdown.Group>
- <Dropdown.Item closeOnSelect onSelect={props.onSelect}>
+ <Dropdown.Item
+ closeOnSelect
+ class="whitespace-normal wrap-anywhere"
+ onSelect={props.onSelect}
+ >
Use {props.option.label}
</Dropdown.Item>
<Dropdown.GroupLabel>Reasoning effort</Dropdown.GroupLabel>
@@ -132,7 +136,9 @@ function EffortModelSubmenu(
props.onClose?.();
}}
>
- <span class="flex-1">{option.name}</span>
+ <span class="min-w-0 flex-1 whitespace-normal wrap-anywhere">
+ {option.name}
+ </span>
<Show
when={
props.selected &&
diff --git a/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx b/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx
index 46f095830e..eb394d3df9 100644
--- a/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx
+++ b/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx
@@ -67,7 +67,7 @@ export function ModelRow(props: ModelRowProps) {
closeOnSelect
disabled={props.disabled}
class={cn(
- 'h-8 gap-2',
+ 'min-h-8 gap-2',
props.selected && 'bg-ink/5 text-ink font-medium',
props.option.locked && 'opacity-50'
)}
@@ -80,7 +80,9 @@ export function ModelRow(props: ModelRowProps) {
onSelect={props.onSelect}
>
<ModelIcon model={props.option.id} />
- <span class="min-w-0 flex-1 truncate text-sm">{props.option.label}</span>
+ <span class="min-w-0 flex-1 whitespace-normal wrap-anywhere text-sm">
+ {props.option.label}
+ </span>
<Show when={props.hint}>
<span class="shrink-0 text-xs text-ink-extra-muted">{props.hint}</span>
</Show>
@@ -228,7 +230,7 @@ export function ModelCatalogPicker(props: ModelCatalogPickerProps) {
);
const triggerClass = () =>
cn(
- 'justify-between border border-edge-muted bg-transparent px-3 text-left text-sm text-ink hover:bg-ink/3',
+ 'min-w-0 max-w-full justify-between border border-edge-muted bg-transparent px-3 text-left text-sm text-ink hover:bg-ink/3',
props.triggerSize === undefined && 'h-9',
props.triggerClass
);
@@ -453,7 +455,7 @@ function ModelCatalogSheet(
}}
>
<ModelIcon model={option.id} />
- <span class="min-w-0 flex-1 truncate">
+ <span class="min-w-0 flex-1 whitespace-normal wrap-anywhere">
{option.label}
</span>
<Show when={option.locked}>
diff --git a/docs/agent-guide/ai-chat.md b/docs/agent-guide/ai-chat.md
index 2deef9156e..0528ac690b 100644
--- a/docs/agent-guide/ai-chat.md
+++ b/docs/agent-guide/ai-chat.md
@@ -1966,6 +1966,12 @@ There is no periodic PR lookup polling.
### Agent reasoning effort
+Long model names wrap in model menus and touch sheets. Desktop composer
+triggers stay on one line within the available width; hover a truncated trigger
+to read its full model and effort in the native tooltip. Verify both ordinary
+model rows and rows that open effort submenus, including search results.
+Long runtime-provided effort names wrap within their submenu rows as well.
+
Open the model selector and hover a model to choose its reasoning effort in the
submenu on desktop, opened with Right Arrow. On mobile, tap a model to select it,
then use the adjacent effort button to adjust effort.