From 148fd8d39fbca5a8f8c3b14528b099f192a17e6f Mon Sep 17 00:00:00 2001 From: assagman Date: Fri, 19 Dec 2025 21:03:08 +0300 Subject: [PATCH] feat(tui): add agent descriptions to autocomplete options Enhance the agent selection autocomplete by displaying agent descriptions alongside the agent names. This helps users : - understand what each agent does before making a selection, - differentiate agents from local files Signed-off-by: assagman --- .../opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx index cef083ad734..0fa28f3a670 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx @@ -192,6 +192,7 @@ export function Autocomplete(props: { .map( (agent): AutocompleteOption => ({ display: "@" + agent.name, + description: agent.description, onSelect: () => { insertPart(agent.name, { type: "agent", @@ -562,6 +563,7 @@ export function Autocomplete(props: { + {" - "} {option.description}