#!/usr/bin/env bash
set -euo pipefail
session="$1"
out="$2"
# Start on the seeded thread, paired to that side's isolated server.
agent-device record start "$out.mp4" --session "$session" --hide-touches
agent-device press 'label="Git controls"' --session "$session" --settle
agent-device press 'text="Review changes"' --session "$session" --settle
agent-device wait 'label="Hide changed files"' --session "$session"
agent-device press 'label="Maximize content"' --session "$session" --settle
python3 "$(dirname "$0")/capture.py" "$out" "$session"
agent-device snapshot --json --session "$session" > "$out-accessibility.json"
agent-device record stop --session "$session"
