# refactor\(web\): ChatView's right panel actions live in useRightPanelActions · PR \#23064 · pingdotgg/t3code

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

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

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: refactor/split2-chatview-right-panel

Target branch: refactor/split2-chatview-terminal

Head commit: ba60a748159e2c49b7e57d3a247a008ac48ba52b

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

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

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

## Description

---

Opening, closing, toggling, and arranging right-panel surfaces (browser, diff, files, pull requests, device, terminal tabs), plus the preview-action bus subscription, move into `chat/useRightPanelActions.ts`. Verbatim move.

| | Before | After |
|---|---|---|
| `ChatView.tsx` lines | 5,420 | 5,249 |

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)

