GeezerVison is showing github.com — fix(web): remember right panel width across threads by baptisteArno · Pull Request #13298 · pingdotgg/t3code
Conversation
baptisteArno
commented
Sep 23, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Chat saved the inline right panel width under a thread-specific key, so the panel returned to its default size when switching threads.
Use the existing shared panel-width key. The resize hook already persists the width and clamps it to the available space.
Verification
vp test run apps/web/src/hooks/useResizableWidth.test.tsx — 13 passed.
- Web typecheck, targeted lint, formatting, and
git diff --check passed. Lint reports existing warnings elsewhere in ChatView.tsx.
- In an isolated T3 preview at a 1600 px viewport, a seeded 700 px width rendered as 700 px in two different drafts after navigation.
Before switching drafts

After switching drafts

Implemented with GPT-6 in Codex.
Summary by CodeRabbit
- Bug Fixes
- The right-side panel now retains a consistent width across chat threads. Adjusting its width in one thread also applies when switching to another.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
<RightPanelTabs
|
|
|
mode="inline"
|
|
|
widthStorageKey={`t3code:preview-panel-width:${activeThreadKey}`}
|
|
|
widthStorageKey="t3code:preview-panel-width"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium components/ChatView.tsx:10334
Existing users lose their saved preview-panel widths after this change: useResizableWidth reads only t3code:preview-panel-width, so it does not find values stored under t3code:preview-panel-width:${activeThreadKey} and resets the panel to its default (or a shared stale value) until it is resized again. Restore the per-thread storage key, or add an explicit migration/fallback from the legacy keys.
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/web/src/components/ChatView.tsx around line 10334:
Existing users lose their saved preview-panel widths after this change: `useResizableWidth` reads only `t3code:preview-panel-width`, so it does not find values stored under `t3code:preview-panel-width:${activeThreadKey}` and resets the panel to its default (or a shared stale value) until it is resized again. Restore the per-thread storage key, or add an explicit migration/fallback from the legacy keys.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID: 432b8f90-c644-4d20-826c-01857c27fe6a
📥 Commits
Reviewing files that changed from the base of the PR and between f5ef0dd and 32af293.
📒 Files selected for processing (1)
apps/web/src/components/ChatView.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
The inline right-panel width storage key no longer includes the active thread key. The key is now shared across threads.
Changes
Right-Panel Width
| Layer / File(s) |
Summary |
Use a shared storage key apps/web/src/components/ChatView.tsx |
The inline right-panel width storage key no longer includes the active thread key. |
Estimated code review effort: 1 (Trivial) | ~3 minutes
Suggested reviewers: maria-rcks
Merge Risk: ⚪ Minimal · up to 32af2
The panel width is shared across threads as intended, while the separate pull-requests panel keeps its own width setting. No material merge risk remains.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Docstring Coverage |
⚠️ Warning |
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. |
Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name |
Status |
Explanation |
| Title check |
✅ Passed |
The title clearly and concisely describes the main change: preserving the right panel width across threads. |
| Description check |
✅ Passed |
The description explains what changed, why it changed, verification results, and UI behavior with before-and-after screenshots. It does not include the template headings or checklist, and it omits the… |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
- Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
Approvability
Verdict: Would Approve
Macroscope's review found this PR approvable — This is a localized one-line persistence fix that shares the chat panel width across threads without changing the default width, APIs, or infrastructure. Existing per-thread values are not migrated, so some users may temporarily lose their remembered widths until resizing again.
Not approved because:
- 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|