The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): quote the release path in the handoff test
Tekniumc14a4400addf
diff --git a/tests/gateway/test_handoff_completion_parent_context.py b/tests/gateway/test_handoff_completion_parent_context.pyindex 24ae356a30b..93050d5f6c6 100644--- a/tests/gateway/test_handoff_completion_parent_context.py+++ b/tests/gateway/test_handoff_completion_parent_context.py@@ -15,6 +15,7 @@ import asyncioimport contextlibimport jsonimport re+import shleximport signalimport sqlite3import threading@@ -50,7 +51,7 @@ class ScriptedModel(BaseHTTPRequestHandler):for c in (m.get('tool_calls') or [])]if 'terminal' not in called:# Held open until the handoff has landed: a process that exits first cannot be handed off.- return _call('terminal', command=f'while [ ! -e {state.release} ]; do sleep 0.2; done; echo FIRST_DONE',+ return _call('terminal', command=f'while [ ! -e {shlex.quote(str(state.release))} ]; do sleep 0.2; done; echo FIRST_DONE',background=True, notify_on_complete=True)if 'tool_call' not in called: # process_manage is a deferred tool for the childstarted = next(str(m['content']) for m in messages if m['role'] == 'tool')