mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 10:11:46 +03:00
fix(tui): restore composer focus after runtime controls
This commit is contained in:
@@ -33,7 +33,7 @@ interface RuntimeControlsOptions {
|
||||
onModel: (name: string) => void
|
||||
onAccess: (scope: WorkspaceScopePayload) => void
|
||||
onStatus: (message: string) => void
|
||||
onVisibilityChange: () => void
|
||||
onVisibilityChange: (visible: boolean) => void
|
||||
}
|
||||
|
||||
/** Model and workspace policy controls expose one small, mouse-optional interface. */
|
||||
@@ -139,7 +139,7 @@ export class RuntimeControls {
|
||||
this.kind = null
|
||||
this.menu.hide()
|
||||
this.renderColors()
|
||||
this.options.onVisibilityChange()
|
||||
this.options.onVisibilityChange(false)
|
||||
}
|
||||
|
||||
setTheme(theme: RuntimeControlsTheme): void {
|
||||
@@ -261,7 +261,7 @@ export class RuntimeControls {
|
||||
|
||||
private opened(): void {
|
||||
this.renderColors()
|
||||
this.options.onVisibilityChange()
|
||||
this.options.onVisibilityChange(true)
|
||||
}
|
||||
|
||||
private apply(choice: Choice): void {
|
||||
|
||||
Reference in New Issue
Block a user