Skip to content

Commit 17c6542

Browse files
author
01luyicheng
committed
fix(ui): truncate agent description in agent selection dialog
Fixes anomalyco#4825 When displaying agents in the /agents command, long descriptions were causing display issues. Now descriptions are truncated to 40 characters to match the title truncation pattern (61 chars).
1 parent 1349eab commit 17c6542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ function Option(props: {
376376
>
377377
{Locale.truncate(props.title, 61)}
378378
<Show when={props.description}>
379-
<span style={{ fg: props.active ? fg : theme.textMuted }}> {props.description}</span>
379+
<span style={{ fg: props.active ? fg : theme.textMuted }}> {Locale.truncate(props.description!, 40)}</span>
380380
</Show>
381381
</text>
382382
<Show when={props.footer}>

0 commit comments

Comments
 (0)