Skip to content

The agent that grows with you

fix(tui_gateway): refuse tools.configure while a turn is running

kshitijk4poor276a0ae61b1c
diff --git a/tui_gateway/methods_tools.py b/tui_gateway/methods_tools.py
index 571f62a6070..a14c51d6017 100644
--- a/tui_gateway/methods_tools.py
+++ b/tui_gateway/methods_tools.py
@@ -1346,7 +1346,7 @@ def _(rid, params: dict) -> dict:
session = None
if sid:
session, err = _sess_nowait(params, rid)
- if err:
+ if err or (err := _busy_error(rid, session, "tools")): # the reset bumps history_version mid-turn
return err
# The client sends session_id, not profile; the live session is authoritative.
home = (session or {}).get("profile_home")