#!/usr/bin/env bash
# Run in either isolated checkout after vp i and T3CODE_DEV_SEED=0 vp run dev.
# The server must already be listening. No database writes or copied seed data.
set -euo pipefail
node apps/server/src/bin.ts project add . --title 'Goal handoff proof' --base-dir .t3
node apps/server/src/bin.ts thread start . '/goal Write one short code comment idea per turn for files in this directory; keep going until the user says stop. Never edit files.' --title 'Native goal handoff' --provider codex --model gpt-6-luna --base-dir .t3 --json
# Once the output thread has a native active goal, run:
# node apps/server/src/bin.ts thread send '<threadId>' '/goal pause' --base-dir .t3 --json
# In the paired web client open the returned thread, then click Send now to
# interrupt its autonomous turn and apply the queued /goal pause.
# Wait for Goal paused. Select Claude > Claude Haiku 5.5 in the composer.
# Send exactly:
# Without running any tools: does this thread have a goal? If so, quote its objective, status, which session owns it, and its token usage exactly as given to you.
# Capture the model selection, message submission, and completed response.
