The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(tui): skip the session-store title read when the Bot Chat hint is set
teknium1b3feb88a956e
diff --git a/tui_gateway/prompt_turn.py b/tui_gateway/prompt_turn.pyindex 527f0cdb157..4152a1f8631 100644--- a/tui_gateway/prompt_turn.py+++ b/tui_gateway/prompt_turn.py@@ -37,7 +37,9 @@ def _is_bot_mode_session(session: dict) -> bool:"""from tools.bot_mode_probe import BOT_CHAT_TITLEhint = str(getattr(session.get("agent"), "_session_title_hint", "") or "").strip()- return (hint or _session_live_title(session, _session_lookup_key(session))) == BOT_CHAT_TITLE+ if hint: # any explicit hint decides; only an empty one costs a session-store read+ return hint == BOT_CHAT_TITLE+ return _session_live_title(session, _session_lookup_key(session)) == BOT_CHAT_TITLEdef _hook_failure(what: str, exc: BaseException) -> None: