hermes-agent/tests/acp
mr.Shu 31b4721791 fix: simplify ACP approval bridging
Previously ACP dangerous-command approvals mixed an invalid ACP
payload shape with partial Hermes option mapping, and the callback
plumbing was shared across worker threads. This commit uses ACP
tool-call updates, preserves Hermes once/session/always semantics,
and scopes approval callbacks to the current worker thread.

- Build permission requests with `update_tool_call` and unique
  `perm-check-*` ids in `acp_adapter/permissions.py`
- Keep ACP option mapping explicit and fail closed on unknown outcomes
  or request failures
- Set approval callbacks inside the ACP executor worker and read them
  from thread-local state in `tools/terminal_tool.py`
- Replace duplicated ACP bridge coverage with focused tests in
  `tests/acp/test_permissions.py` and add a thread-local callback test
2026-05-13 22:59:39 -07:00
..
__init__.py feat: restore ACP server implementation from PR #949 (#1254) 2026-03-14 00:09:05 -07:00
test_approval_isolation.py fix(acp): wire HERMES_SESSION_KEY per session so sudo cache scope activates 2026-04-28 01:34:16 -07:00
test_auth.py feat: restore ACP server implementation from PR #949 (#1254) 2026-03-14 00:09:05 -07:00
test_entry.py fix(acp): complete session management surface for editor clients (salvage #3501) (#3675) 2026-03-28 23:45:53 -07:00
test_events.py fix(acp): improve zed integration 2026-04-17 13:29:26 -07:00
test_mcp_e2e.py fix(acp): polish Zed context and tool rendering 2026-05-03 01:44:23 -07:00
test_permissions.py fix: simplify ACP approval bridging 2026-05-13 22:59:39 -07:00
test_ping_suppression.py fix(acp): silence 'Background task failed' noise on liveness-probe requests (#12855) 2026-04-20 00:10:27 -07:00
test_server.py Schedule ACP history replay and fence file output 2026-05-03 01:44:23 -07:00
test_session.py fix(acp): preserve assistant reasoning metadata in session persistence 2026-05-05 10:18:28 -07:00
test_tools.py fix(acp): compact Zed tool replay rendering 2026-05-03 01:44:23 -07:00