This repository was archived by the owner on Apr 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
packages/opencode/src/cli/cmd/tui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export function CommandProvider(props: ParentProps) {
7878 const keybind = useKeybind ( )
7979
8080 useKeyboard ( ( evt ) => {
81- if ( keybind . match ( "command_list" , evt ) ) {
81+ if ( keybind . match ( "command_list" , evt ) && dialog . stack . length === 0 ) {
8282 evt . preventDefault ( )
8383 dialog . replace ( ( ) => < DialogCommand options = { value . options } /> )
8484 return
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function DialogStatus() {
1515 < text attributes = { TextAttributes . BOLD } > Status</ text >
1616 < text fg = { theme . textMuted } > esc</ text >
1717 </ box >
18- < Show when = { Object . keys ( sync . data . mcp ) . length > 0 } >
18+ < Show when = { Object . keys ( sync . data . mcp ) . length > 0 } fallback = { < text > No MCP Servers </ text > } >
1919 < box >
2020 < text > { Object . keys ( sync . data . mcp ) . length } MCP Servers</ text >
2121 < For each = { Object . entries ( sync . data . mcp ) } >
Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
123123
124124 const keybind = useKeybind ( )
125125 useKeyboard ( ( evt ) => {
126- if ( evt . name === "up" ) move ( - 1 )
127- if ( evt . name === "down" ) move ( 1 )
126+ if ( evt . name === "up" || ( evt . ctrl && evt . name === "p" ) ) move ( - 1 )
127+ if ( evt . name === "down" || ( evt . ctrl && evt . name === "n" ) ) move ( 1 )
128128 if ( evt . name === "pageup" ) move ( - 10 )
129129 if ( evt . name === "pagedown" ) move ( 10 )
130130 if ( evt . name === "return" ) {
You can’t perform that action at this time.
0 commit comments