The ACP prompt path called set_session_vars(session_key=session_id, ...) without passing session_id, so the HERMES_SESSION_ID ContextVar was bound to its explicit "" default. Once the session-context machinery is engaged, _inject_session_context_env treats an explicitly-bound "" as authoritative and writes it to the child env — so subprocesses spawned during an ACP turn got an empty HERMES_SESSION_ID instead of the session's own id. Pass session_id through so child subprocesses carry the correct id. Salvage of the ACP half of #53454 by @necoweb3 (the V4A-path half is salvaged separately in the file-tools PR). Co-authored-by: necoweb3 <sswdarius@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_approval_isolation.py | ||
| test_auth.py | ||
| test_edit_approval.py | ||
| test_entry.py | ||
| test_events.py | ||
| test_mcp_e2e.py | ||
| test_named_provider_catalogs.py | ||
| test_permissions.py | ||
| test_ping_suppression.py | ||
| test_server.py | ||
| test_session.py | ||
| test_session_db_private_access.py | ||
| test_session_provenance.py | ||
| test_tools.py | ||