fix(tui): force MCP discovery off in slash worker env

This commit is contained in:
Tranquil-Flow 2026-04-25 10:09:03 +10:00
parent c8e3c02c2b
commit d5eef50e9e
3 changed files with 49 additions and 2 deletions

View file

@ -185,6 +185,9 @@ class _SlashWorker:
if model:
argv += ["--model", model]
worker_env = os.environ.copy()
worker_env["HERMES_MCP_DISCOVERY"] = "0"
self.proc = subprocess.Popen(
argv,
stdin=subprocess.PIPE,
@ -193,7 +196,7 @@ class _SlashWorker:
text=True,
bufsize=1,
cwd=os.getcwd(),
env=os.environ.copy(),
env=worker_env,
)
threading.Thread(target=self._drain_stdout, daemon=True).start()
threading.Thread(target=self._drain_stderr, daemon=True).start()