feat(tui): exit subagent menu with up arrow (#36951)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot]
2026-07-15 16:00:53 -05:00
committed by GitHub
parent 4394b324c9
commit 888c4cb504
2 changed files with 42 additions and 0 deletions
@@ -633,6 +633,12 @@ export function RunSubagentSelectBody(props: {
return
}
if (event.name.toLowerCase() === "up" && menu.selected() === 0) {
event.preventDefault()
props.onClose()
return
}
handleKey({ event, menu, field: () => field, setQuery, select, close: props.onClose })
})