hermes-agent/acp_adapter
dsad a5f94e93ad fix(acp): bind session_id in session context for subprocess isolation
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>
2026-08-01 14:53:34 -07:00
..
__init__.py
__main__.py
auth.py
edit_approval.py
entry.py perf(mcp): non-blocking startup via background MCP discovery + TUI fast path 2026-08-01 13:27:58 +05:30
events.py
permissions.py
provenance.py
server.py fix(acp): bind session_id in session context for subprocess isolation 2026-08-01 14:53:34 -07:00
session.py fix(acp): serialize late MCP refresh with turn start + self-sufficient agent-build wait 2026-08-01 13:27:58 +05:30
tools.py