# refactor\(web\): ChatView's pull request checkout lives in usePullRequestDraftThread · PR \#23070 · pingdotgg/t3code

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

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

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: refactor/split2-chatview-pr-draft

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

Head commit: c8c87afdbfeacdcaaeec94927259a84dd7ba0f48

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

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

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

## Description

---

Opening the pull request dialog and placing the prepared branch or worktree on the project's draft thread move into `chat/usePullRequestDraftThread.ts`. Verbatim move.

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

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)

