The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(integration): _tour_request keeps the verdict on an empty-but-registered session record
Teknium545e374a6830
diff --git a/tui_gateway/server.py b/tui_gateway/server.pyindex 7d3f6e01a2b..3534500baa5 100644--- a/tui_gateway/server.py+++ b/tui_gateway/server.py@@ -1405,7 +1405,9 @@ def _tour_request(sid: str, payload: dict) -> str:session's first action gets the short probe deadline; an unanswered probe marks the bridgeunavailable for that session; once a client has answered, actions get the full deadline. Theverdict lives on the session record, so a new session re-probes."""- session = _sessions.get(sid) or {} # detached caller: throwaway record, plain bridge, unprobed+ session = _sessions.get(sid)+ if session is None: # detached caller: throwaway record, plain bridge, unprobed (empty record != detached)+ session = {}state = session.get("tour_bridge")if state == "unanswered":return _TOUR_BRIDGE_UNAVAILABLE