fix(tui): keep runtime controls interactive

This commit is contained in:
Xubin Ren
2026-08-17 20:56:10 +08:00
parent 03d982023a
commit a632017194
4 changed files with 20 additions and 10 deletions
+3 -1
View File
@@ -507,7 +507,9 @@ export class NanobotTui {
modelPreset: this.modelPreset,
workspace: options.workspace,
access: options.access,
available: () => ({ ready: this.ready, active: this.activeTurn }),
// Runtime settings are session state. Changing them during a turn is
// safe and takes effect when the next provider call starts.
available: () => this.ready,
beforeOpen: () => this.closeTransientMenus(),
refreshScope: () => this.refreshSessionMetadata(this.client.activeChatId),
onModel: (preset) => this.sendGatewayCommand(`/model ${preset}`, "side_channel", true),