fix(test): add list-panes support to mock_herdr and fix environment overrides in tier3 integration tests
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user