#!/usr/bin/env bash
set -euo pipefail
# Run after pairing and opening the synthetic long thread. All commands complete sequentially.
# Keyboard-open draft used in the captures: "Keyboard closed delivery proof" (literal sample text).
# Closed variant: fill "Closed keyboard first tap proof", Back, reopen thread, then continue.
s=${PROOF_SESSION:?}
out=${PROOF_OUTPUT:?}
agent-device swipe 200 220 200 440 --session "$s"
agent-device record start "$out" --fps 10 --session "$s"
agent-device press 'label="Scroll to end"' --session "$s"
agent-device press 'label="Send"' --session "$s"
agent-device snapshot -i --session "$s"
agent-device record stop --session "$s"
# In the base keyboard-open capture only, a second Send tap was used after observing the retained draft.
