mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(tui): force MCP discovery off in slash worker env
This commit is contained in:
parent
c8e3c02c2b
commit
d5eef50e9e
3 changed files with 49 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue