The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor: keep tui_gateway/server.py at its line count
Teknium0bbb0b7dc840
diff --git a/tui_gateway/server.py b/tui_gateway/server.pyindex c62c2216f36..1bfbe7ad5b1 100644--- a/tui_gateway/server.py+++ b/tui_gateway/server.py@@ -263,7 +263,6 @@ class _SlashWorker:# ``--provider`` pins the child to the parent agent's virtual provider: without it the# worker re-resolves provider from config, so a MoA session (provider=moa, model=<preset>)# dispatched its preset NAME to the configured real provider and 402/503'd (#57283).- # -P: the worker runs in the user's cwd, which must not shadow tui_gateway/hermes_cli.argv = [sys.executable, "-P", "-m", "tui_gateway.slash_worker", "--session-key", session_key,"--parent-pid", str(os.getpid())] \+ (["--model", model] if model else []) \@@ -286,7 +285,7 @@ class _SlashWorker:env = _prepend_tool_paths(served_profile_child_env(target_home=profile_home or (_hermes_home if is_multiplex_active() else None),inherit_credentials=True))- # Internal slash workers must import the same checkout as their parent.+ # Internal slash workers must import the same checkout as their parent; -P keeps their cwd off sys.path.module_root = str(Path(__file__).resolve().parent.parent)env["PYTHONPATH"] = os.pathsep.join(part for part in (module_root, env.get("PYTHONPATH", "")) if part