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
View File
@@ -653,6 +653,7 @@ describe("NanobotTui layout", () => {
try {
await waitUntil(() => (app as unknown as { ready: boolean }).ready)
app.accept({ event: "goal_status", chat_id: "chat", status: "running" })
await setup.flush()
await setup.mockMouse.click(
ui.runtimeControls.modelText.x + 2,
@@ -682,6 +683,8 @@ describe("NanobotTui layout", () => {
access_mode: "full",
restrict_to_workspace: false,
}])
expect((app as unknown as { activeTurn: boolean }).activeTurn).toBe(true)
app.accept({ event: "goal_status", chat_id: "chat", status: "idle" })
} finally {
globalThis.fetch = original
}