# refactor\(web\): ChatView's model, mode, and workspace choices live in useComposerSelection · PR \#23069 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/23069)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: refactor/split2-chatview-composer-selection

Target branch: refactor/split2-chatview-project-banners

Head commit: d7052be1584ef4c21e11eed75ae43ddced5989f3

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/23069)

[Commits](https://git.cafe/pingdotgg/t3code/pull/23069/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/23069/diffs?format=markdown)

## Description

---

Provider/model selection, runtime and interaction mode changes, env mode and start-from-origin changes, and the model-disabled reason move into `chat/useComposerSelection.ts`, which selects its own draft-store setters. Verbatim move.

| | Before | After |
|---|---|---|
| `ChatView.tsx` lines | 4,415 | 4,271 |

Tests: `tsc-rs --noEmit` for apps/web, oxlint on the changed files, `vp test run src/components/ChatView.logic.test.ts`, and the React Compiler coverage test for every changed file (0 bailouts). ChatView stays in the coverage test's slow set.

Part of the ChatView split (7,258 → 3,975 lines across the stack).

Opus 5.5, Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

