#!/usr/bin/env bash
# Run once in each checkout, after vp i. Use a fresh checkout-local .t3 home.
# Start T3CODE_DEV_SEED=0 vp run dev in a retained terminal first.
set -euo pipefail
workspace=$(mktemp -d)/demo
mkdir -p "$workspace"
git init --quiet --initial-branch=main "$workspace"
echo 'Synthetic background follow-up reproduction.' > "$workspace/README.md"
git -C "$workspace" add README.md
git -C "$workspace" -c user.name=Evidence -c user.email=evidence@example.invalid commit -qm 'Synthetic reproduction workspace'
node apps/server/src/bin.ts project add "$workspace" --title 'Follow-up evidence' --base-dir .t3
node apps/server/src/bin.ts thread start "$workspace" - --title 'Follow-up delivery proof' --provider claudeAgent --model claude-sonnet-5-5 --base-dir .t3 --json < "$(dirname "$0")/prompt.txt"
# Open the returned parent thread in the paired web client.
# At approximately 1 minute, inspect the two follow-up cards and child transcript.
# At approximately 4 minutes, inspect delivered results in the parent.
