#!/usr/bin/env bash
set -eu
# Run from the checkout under test, against its isolated running dev server.
# WORKSPACE must sort after that server's attachments directory.
: "${WORKSPACE:?Set the synthetic project path}"
node apps/server/src/bin.ts thread start --base-dir "${BASE_DIR:?Set the isolated T3 home}" --provider antigravity --model gemini-3.8-flash --title "CWD proof ${1:?base or head}" --json "$WORKSPACE" 'Execute pwd and then echo hello > relative-probe.txt without changing directories. Show the command output.'
