Welcome and first-run setup
Guides a fresh installation through provider readiness, project import, and first use.
0 of 3 reviewed by a person
Where it starts
First run · Welcome to T3 Code: a setup page lists agents found on this computer, offers to find and import projects, and a Start button that stays disabled until one agent is ready.
FirstRunGate.tsx:163-170firstRun.logic.ts:109-146WelcomePage.tsx:285-357welcome-page.md:3-7welcome-page.md:9-19

Stories
Finish first-run setup
As new user, I want to get through the welcome setup, so that I land in the app ready to start work.
Requirements without a story
Flow
Outline
- Set up an agent → firstRun
- Find my projects → firstRun
- Finish setup with a project → newThread
- Finish setup → noProject
- Start without an agent → noProject
- Host requires pairing → pairing
- Pair with host → noProject
- Add a project → newThread
- Start without a project → newThread
- Start a new thread → newThread
- Add a project → newThread
- Open terminal → terminalOpen
- Provider needs attention → providerAttention
- Type a message → composing
- Choose a model → newThread
- Choose permission mode → newThread
- Use a new worktree → newThread
- Use current checkout → newThread
- Send a message → agentWorking
- Choose a model → composing
- Open diff panel → reviewing
- Choose permission mode → composing
- Use a new worktree → composing
- Interrupt → turnFinished
- Send a message → agentWorking
- Agent needs approval → waitingApproval
- Agent asks a question → waitingInput
- Agent finished → turnFinished
- Approve request → agentWorking
- Decline request → agentWorking
- Interrupt → turnFinished
- Answer question → agentWorking
- Interrupt → turnFinished
- Type a message → composing
- Open diff panel → reviewing
- Roll back to checkpoint → rollingBack
- Commit changes → committed
- Publish repository → publishingRepository
- Rollback finished → composing
- Rollback failed → turnFinished
- Close diff panel → turnFinished
- Close terminal → composing
- Provider recovered → composing
- Open provider settings → providers
- Push → pushed
- Open pull request → pullRequestOpen
- Type a message → composing
- Repository published → turnFinished
- Cancel publishing → turnFinished
- Leave settings → projectOpen
- Pair a device → pairingDevice
- Open Providers settings → providers
- Pairing finished → browsing
- Use existing CLI → providers
- Continue with ChatGPT → connectingProvider
- Install an agent → connectingProvider
- Provider ready → providers
- Cancel setup → providers
Checks
3 no checks
Sources1 source
- Entry point
- Welcome route: /welcome
- Files
- Generated from
Commit
a2332bc1055e2e2aa8ff86972e18d761bc2bde69Saved Nov 28, 2026, 10:15 PM