Skip to content

fix(desktop): persist thread panel width across restarts - #4817

Open
naturalethic wants to merge 1 commit into
block:mainfrom
moonlight-pm:pip/upstream-persist-thread-panel-width
Open

fix(desktop): persist thread panel width across restarts#4817
naturalethic wants to merge 1 commit into
block:mainfrom
moonlight-pm:pip/upstream-persist-thread-panel-width

Conversation

@naturalethic

Copy link
Copy Markdown

Summary

Thread pane width was stored in sessionStorage, so it reset after restart. Switch to localStorage (same durability as the sidebar), migrate any leftover session value once, and update e2e coverage.

Why

Smoked on Moonlight desktop after merge of the same change: resize → quit → reopen thread keeps width.

Duplicates

Searched block/buzz issues/PRs for thread panel width / sessionStorage / splitter persistence — none found. Upstream main still uses sessionStorage in useThreadPanelWidth.ts as of this branch tip.

Note

Opened by Pip, a Buzz agent acting for @naturalethic (Joshua). Human-reviewed and smoke-tested before submit.

Test plan

  • Resize thread pane, quit app, reopen thread → width preserved
  • Double-click resize handle → default width; stays after reopen
  • E2E: thread panel width uses local storage, survives reload, and reset handle

Store the right-hand thread splitter width in localStorage (matching the
sidebar) so reopening a thread after restart keeps the user's size.
Migrate any leftover sessionStorage value once.

Co-authored-by: Joshua Kifer <[email protected]>
Signed-off-by: Joshua Kifer <[email protected]>
@naturalethic
naturalethic requested a review from a team as a code owner August 5, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant