sendTurn was constructing a fresh runtimePayload with only modelSelection,
activeTurnId, lastRuntimeEvent, and lastRuntimeEventAt—completely overwriting
persisted fields like cwd, model, and providerOptions set during startSession.
Now reads the existing binding's runtimePayload and spreads it as the base,
so fields persisted by startSession survive through sendTurn updates.
- Replace provider-specific model options with typed modelSelection
- Persist and replay selected provider, model, and options end to end
- Update adapter, service, and chat composer tests for the new shape
- Store missing model options as SQL NULL in project and thread projections
- Stop rehydrating derived model options when restarting provider sessions
- Share model option conversion logic in `packages/shared`
- Keep draft model options when switching models within the same provider
- Decode SQL errors correctly in projection snapshot model selection
- Default missing sticky provider to codex during draft migration
- Replace model-only fields with provider/model selections across orchestration
- Add projection schema and migration updates for provider-backed snapshots
- Update server and web tests to use the new selection shape
- Change local PR worktree branch format from `pr/<number>-<head>` to `t3code/pr-<number>/<head>`
- Update GitManager tests to assert the new branch naming convention
- Treat remotes that only differ by trailing slash after `.git` as the same remote
- Add a GitCore regression test for trailing-slash remote reuse
- Refactor `GitHubCli` tests to `@effect/vitest` layer-based effect tests with reset cleanup
- create a unique local branch name for cross-repo PR worktrees (`pr/<number>-<head>`)
- fetch/set upstream against that local branch instead of overwriting local `main`
- add regression tests for fork PRs where head branch is `main`
- Restore/set upstream tracking when preparing local and reused PR worktrees
- Derive fork `owner/repo` from PR URL when GitHub omits `headRepositoryNameWithOwner`
- Expand GitManager tests to cover local mode, URL-derived fork identity, and reused worktree upstream recovery
- add GitCore helpers to ensure remotes, fetch remote branches, and set upstreams
- extend GitHub CLI parsing to include cross-repo PR metadata and repo clone URLs
- update GitManager flow and tests to materialize fork heads and keep tracking on fork remotes
- Add git APIs to resolve PR refs and prepare PR thread workspaces
- Support fetching PR head refs into local branches and reusing existing worktrees
- Wire new websocket/contracts/web composer flows for PR-based thread creation
- Expand server/web/contracts tests for PR routing and branch/worktree behavior
- Map Codex `error` notifications with `willRetry: true` to `runtime.warning`
- Keep active turns/sessions running during reconnect warnings
- Add adapter and ingestion tests for retry-warning behavior