fix(test): add list-panes support to mock_herdr and fix environment overrides in tier3 integration tests

This commit is contained in:
2026-08-07 11:40:09 +09:00
parent 7e16d656a1
commit 778b22b904
2 changed files with 20 additions and 3 deletions
+15
View File
@@ -441,6 +441,21 @@ elif cmd1 == "pane":
save_state()
sys.exit(0)
elif cmd1 == "list-panes":
session_target = ""
if "-t" in args:
session_target = args[args.index("-t") + 1]
agents = state.get("agents", {})
if session_target in agents:
data = agents[session_target]
pid = data.get("pid", 9999)
cwd = data.get("cwd", "TMP_PATH_PLACEHOLDER")
cmd = data.get("command", "claude")
print(f"{pid}|{cwd}|{cmd}")
sys.exit(0)
else:
sys.exit(1)
elif cmd1 == "ls":
if "-F" in args:
for name, data in state.get("agents", {}).items():