mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(acp): honor task cwd for foreground terminal commands
This commit is contained in:
parent
550f6e2efc
commit
b349ae1e4c
2 changed files with 78 additions and 3 deletions
|
|
@ -2001,9 +2001,10 @@ def terminal_tool(
|
|||
|
||||
while retry_count <= max_retries:
|
||||
try:
|
||||
execute_kwargs = {"timeout": effective_timeout}
|
||||
if workdir:
|
||||
execute_kwargs["cwd"] = workdir
|
||||
execute_kwargs = {
|
||||
"timeout": effective_timeout,
|
||||
"cwd": workdir or cwd,
|
||||
}
|
||||
result = env.execute(command, **execute_kwargs)
|
||||
except Exception as e:
|
||||
error_str = str(e).lower()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue