GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): remember right panel width across threads by baptisteArno · Pull Request #13298 · pingdotgg/t3code

Conversation

@baptisteArno

@baptisteArno baptisteArno commented Sep 23, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

Right panel in the first draft at 700 px

After switching drafts

Right panel in the second draft at 700 px

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.

All reactions
@baptisteArno
fix(web): remember right panel width across threads
32af293
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 23, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Sep 23, 2026
View reviewed changes
Comment thread apps/web/src/components/ChatView.tsx
<RightPanelTabs
mode="inline"
widthStorageKey={`t3code:preview-panel-width:${activeThreadKey}`}
widthStorageKey="t3code:preview-panel-width"

@macroscopeapp macroscopeapp Bot Sep 23, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions
@coderabbitai

coderabbitai Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

This comment has been minimized.

Sign in to view
@macroscopeapp

macroscopeapp Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@baptisteArno baptisteArno closed this Sep 26, 2026
@levochkaa levochkaa mentioned this pull request Oct 20, 2026
feat(web): add a setting to share the right panel width across threads #22256
Closed
@levochkaa levochkaa mentioned this pull request Oct 30, 2026
feat(web): new threads open the right panel at the last used width #27739
Closed
@levochkaa levochkaa mentioned this pull request Nov 12, 2026
feat(web): add a setting to share the right panel width across threads #35200
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

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.

Projects

None yet

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.

1 participant

@baptisteArno
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.