Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
refactor(tui): use local command catalog directly
chengyongrudc13dff3ffa2
diff --git a/tui/src/app.ts b/tui/src/app.tsindex 72a6a18a4..de133171d 100644--- a/tui/src/app.ts+++ b/tui/src/app.ts@@ -376,7 +376,6 @@ export class NanobotTui {private readonly status: TextRenderableprivate readonly meta: TextRenderableprivate readonly host: TuiHost- private readonly localCommands: TuiCommand[]private readonly draft = new ComposerDraft()private readonly promptQueue = new PromptQueue()private palette: Palette@@ -459,7 +458,6 @@ export class NanobotTui {this.activeThemeMode = this.resolveThemeMode(renderer.themeMode)this.palette = this.activeThemeMode === "light" ? LIGHT : DARKthis.host = host- this.localCommands = LOCAL_COMMANDSthis.transcript = new Transcript(renderer,transcriptTheme(this.palette, this.backgroundKnown),@@ -468,7 +466,7 @@ export class NanobotTui {!host.hosted,)this.commandMenu = new CommandMenu(renderer, commandMenuTheme(this.palette))- this.commandMenu.setCommands([], this.localCommands)+ this.commandMenu.setCommands([], LOCAL_COMMANDS)this.sessionMenu = new SessionMenu(renderer,commandMenuTheme(this.palette),@@ -1844,7 +1842,7 @@ export class NanobotTui {// Local navigation remains available against older gateways.}const commands = new Map(discovered.map((command) => [command.command, command]))- this.commandMenu.setCommands([...commands.values()], this.localCommands)+ this.commandMenu.setCommands([...commands.values()], LOCAL_COMMANDS)this.syncCommandMenu()}