#!/usr/bin/env bash
set -euo pipefail
# Run from either comparison checkout after vp i.
# Start its server separately with T3CODE_DEV_SEED=0 and isolated
# XDG_DATA_HOME / XDG_STATE_HOME, then pair the web client.
# In Settings > Providers add OpenCode, pointing at @opencode/cli@2.4.1.
# Verify v2.4.1, Authenticated, lists 111 models.
# Pass a fresh synthetic git workspace as $1 and this server's base directory as $2.
workspace=$1
base_dir=$2
node apps/server/src/bin.ts project add "$workspace" --title 'Goal resume proof' --base-dir "$base_dir"
node apps/server/src/bin.ts thread start "$workspace" '/goal resume' \
  --title 'Resume without a goal' --provider opencode \
  --model anthropic/claude-haiku-5-5 --base-dir "$base_dir" --json
# Open the returned thread in the paired web client.
# Chromium, Linux, 1280x800 CSS pixels, DPR 2, dark theme.
# Collapse the sidebar and thread details; dismiss the error banner.
# In the composer type /goal resume, press Escape to dismiss suggestions,
# click Submit message. Repeat once, recording the second resend.
# Base: each turn says the provider could not start and advises Retry.
# Head: each turn says OpenCode has no paused goal to resume.
# For the final still dismiss the banner, blur the composer and move the
# pointer away; require two pixel-identical screenshots 500ms apart.
