- Add --filter=@t3tools/desktop to the dev mode in dev-runner so
'bun run dev' also spins up the Electron app alongside contracts,
web, and server.
- Add OPENAI_API_KEY to globalPassThroughEnv in turbo.json so the
Codex CLI receives the key when spawned by the server process
(turbo strict env mode strips undeclared vars from child processes).
Co-authored-by: Theo Browne <[email protected]>
- Prefer `T3CODE_STATE_DIR` from env when `--state-dir` is unset or blank
- Throw on invalid `T3CODE_PORT` overrides and always recompute `VITE_WS_URL`
- Add tests for env/state-dir precedence, blank overrides, and invalid ports
- default root dev commands to `T3CODE_STATE_DIR=~/.t3/dev`
- add `--` flag forwarding in `scripts/dev-runner.mjs` for server env flags
- resolve desktop state dir from `T3CODE_STATE_DIR` with new tests for desktop and dev runner
- Route `dev*` scripts through `scripts/dev-runner.mjs` to compute shared server/web port offsets
- Support `T3CODE_DEV_INSTANCE` (hashed or numeric) and explicit `T3CODE_PORT_OFFSET`
- Document multi-instance usage and allow server `VITE_DEV_SERVER_URL` override