Merge pull request #13047 from Kilo-Org/fix/tui-autocomplete-description-spacing

fix(tui): separate autocomplete descriptions from labels
This commit is contained in:
Joshua Lambert
2026-08-10 16:39:07 -04:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---
Separate autocomplete item names from their descriptions in the TUI.
@@ -831,13 +831,14 @@ export function Autocomplete(props: {
moveTo(index)
}}
onMouseUp={() => select()}
gap={1} // kilocode_change - keep descriptions separated from labels in flex layout
>
<text fg={index === store.selected ? selectedForeground(theme) : theme.text} flexShrink={0}>
{option().display}
</text>
<Show when={option().description}>
<text fg={index === store.selected ? selectedForeground(theme) : theme.textMuted} wrapMode="none">
{" " + option().description?.trimStart()}
{option().description?.trimStart()}{/* kilocode_change */}
</text>
</Show>
</box>