test(sandbox): mam_sandbox also drops HERDR_SESSION (reviews 63919c5d / 191f0ec3, non-blocking)

The caller-server helpers read it, so tests branched on whether they ran in
an agent pane. L2 covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgu9Fa9iT7TbJUSzdq4Ff
This commit is contained in:
GodopuandClaude Opus 5.5 committed 2026-10-13 10:01:55 +09:00
1 parent 325b056057
commit db7f4cab9c
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -293,7 +293,10 @@ def mam_sandbox(tmp_path, monkeypatch, request):
# A herdr pane exports its server's socket (and pane/tab ids). The real
# herdr follows HERDR_SOCKET_PATH over the sandbox HOME, so a call that
# missed the mock reached the caller's real server and opened panes there.
# HERDR_SESSION resolves under the sandbox HOME, but the caller-server
# helpers read it, so tests branched on whether they ran in a pane.
monkeypatch.delenv("HERDR_SOCKET_PATH", raising=False)
monkeypatch.delenv("HERDR_SESSION", raising=False)
monkeypatch.delenv("HERDR_PANE_ID", raising=False)
monkeypatch.delenv("HERDR_TAB_ID", raising=False)
# Issue #45: the shim bootstrap writes a herdr server config next to the