refactor(tui): remove legacy keymap layer (#37206)

Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Dax Raad <d@ironbay.co>
This commit is contained in:
opencode-agent[bot]
2026-07-16 21:33:15 +00:00
committed by GitHub
co-authored by Kit Langton Dax Raad
parent e916b99742
commit b4a4ef0b3c
19 changed files with 535 additions and 1025 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ import type {
ShellInfo,
SkillInfo,
} from "@opencode-ai/client"
import type { Renderable } from "@opentui/core"
import type { KeyEvent, Renderable } from "@opentui/core"
import type { JSX } from "@opentui/solid"
interface LocationCollection<Value> {
@@ -139,8 +139,8 @@ export interface KeymapCommand {
}
/** Promotes the command in discovery UI. */
readonly suggested?: boolean | (() => boolean)
/** Executes the command. Return false to let keymap dispatch continue. */
readonly run: (input?: string) => void | false | Promise<void>
/** Executes the command. Keyboard dispatch includes its event; programmatic dispatch does not. Return false to continue. */
readonly run: (input?: string, event?: KeyEvent) => void | false | Promise<void>
}
export interface KeymapLayer {