The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(tui): server.py — keep _tour_request probing an existing empty session record
Teknium042710a89d9d
diff --git a/tui_gateway/server.py b/tui_gateway/server.pyindex 2b9b210036a..7ba689647b3 100644--- a/tui_gateway/server.py+++ b/tui_gateway/server.py@@ -1367,7 +1367,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+ session = {}state = session.get("tour_bridge")if state == "unanswered":return _TOUR_BRIDGE_UNAVAILABLE