fix(tui): restore composer focus after runtime controls

This commit is contained in:
Xubin Ren
2026-08-17 20:56:10 +08:00
parent cd6a11b3c5
commit c5d2e0ddf1
3 changed files with 14 additions and 4 deletions
+4 -1
View File
@@ -531,7 +531,10 @@ export class NanobotTui {
}
},
onStatus: (message) => { this.status.content = message },
onVisibilityChange: () => this.updateMeta(),
onVisibilityChange: (visible) => {
this.updateMeta()
if (!visible) this.composer.focus()
},
},
)
this.title.add(this.titleText)