A dev server started in a worktree resolved its data directory to the
shared `~/.t3`. Worse, an ambient `T3CODE_HOME` counts as an *explicit*
base dir, which flips the state directory from `<base>/dev` to
`<base>/userdata` — the database the user's installed T3 Code is
actively running against. Feature work in a throwaway branch was
sharing a database with the user's real app, and its
`server-runtime.json` overwrote the live server's entry.
Worktrees now default to their own gitignored `.t3`, outranking the
ambient env var; `--home-dir` still wins, and the main checkout keeps
`~/.t3/dev`. `auth pairing url` applies the same default, so `dev:pair`
from a worktree can no longer mint a credential into the real database.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>