mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 10:11:46 +03:00
fix(tui): keep runtime controls interactive
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user