fix(tui): keep navigation commands in Herdr panes

This commit is contained in:
chengyongru
2026-08-20 11:53:07 +08:00
committed by chengyongru
parent c615aee2ca
commit c0e1c2848b
3 changed files with 11 additions and 7 deletions
+1 -5
View File
@@ -459,11 +459,7 @@ export class NanobotTui {
this.activeThemeMode = this.resolveThemeMode(renderer.themeMode)
this.palette = this.activeThemeMode === "light" ? LIGHT : DARK
this.host = host
this.localCommands = host.hosted
? LOCAL_COMMANDS.filter(({ command }) => (
command === "/context" || command === "/diff" || command === "/exit"
))
: LOCAL_COMMANDS
this.localCommands = LOCAL_COMMANDS
this.transcript = new Transcript(
renderer,
transcriptTheme(this.palette, this.backgroundKnown),