#!/usr/bin/env bash
set -euo pipefail
# Run separately in each freshly installed base/head checkout.
# Start its server first: T3CODE_DEV_SEED=0 vp run dev
checkout=$(pwd)
node apps/server/src/bin.ts project add "$checkout" --title 'Cancellation guide' --base-dir "$checkout/.t3"
node apps/server/src/bin.ts thread start "$checkout" 'Read the guide.' \
  --title 'Read cancellation documentation' --provider devReplay --model multi-turn \
  --wait --json --base-dir "$checkout/.t3"
# Pair the browser using that server's startup link.
# Open the seeded thread; Ctrl+P; search orchestrator-mcp-server.md.
# Select docs/orchestration-v2/orchestrator-mcp-server.md.
# Maximize panel, select Show rendered markdown, scroll task_cancel to the top.
# Capture at 1280x800 CSS pixels, light theme; require two identical PNGs >=500ms apart.
