fix(resume): add --workspace symmetry in resume_session.sh and update test_tier4_e2e for isolation model

This commit is contained in:
2026-07-25 00:03:56 +09:00
parent 6918f211e8
commit c4839822ed
4 changed files with 145 additions and 5 deletions
+3 -4
View File
@@ -103,11 +103,10 @@ def test_e2e_scenario2_disconnect_resume(mam_sandbox, mock_herdr, mock_agents):
# Simulate first message creating own ID (materialized own ID)
own_uuid = "e2e-own-uuid-111"
iso_root = Path(orig_session["isolation"]["root"])
key = str(tmp_path).replace('/', '-').replace('_', '-')
proj_dir = iso_root / "projects" / key
proj_dir.mkdir(parents=True, exist_ok=True)
(proj_dir / f"{own_uuid}.jsonl").write_text(json.dumps({"sessionId": own_uuid}) + "\n")
claude_dir = Path(os.environ.get("CLAUDE_PROJECT_DIR", Path.home() / ".claude" / "projects")) / key
claude_dir.mkdir(parents=True, exist_ok=True)
(claude_dir / f"{own_uuid}.jsonl").write_text(json.dumps({"sessionId": own_uuid}) + "\n")
mutation = f"""
for s in d.get('herdr_sessions', []):