Repository navigation
fix(preview): restore thread panels and compact viewport controls - #880
Merged
Merged
Conversation
Restore mini preview selection and minimization after navigating back to a thread. Persist each thread's side panel visibility, module and preview tool in local workspace metadata, keeping targets in scoped session memory. Use consistent icon controls for minimizing and restoring previews. Keep viewport fields and Apply visible in narrow panels without pointer steppers. Fixes: #846 Fixes: #872
nixuuu
enabled auto-merge (squash)
November 16, 2026 18:46
nixuuu
added a commit
that referenced
this pull request
Nov 16, 2026
Switching between threads with different Files/Preview panel states animates the restored panel and resizes the conversation during navigation. Restore the panel column, opacity and narrow-screen sheet immediately when the thread changes, including during an active transition. Opening, closing and changing the panel within the same thread retain their existing animations. Update the workspace documentation to describe the navigation behavior. Validation: - Web typecheck passed with zero errors or warnings. - Lint passed for the edited Svelte component; edited source files were formatted and `git diff --check` passed. - Static review covered rapid thread changes and narrow-screen dialog/backdrop handling. - Visual verification remains outstanding: the browser tool could not start its session (`connection refused`). - UI copy audit (§8): not applicable; no user-facing text changes. - Remaining repository checks and builds run in CI. Fixes: #880
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Change
Returning to a thread restores its mini preview and minimization state. Each thread also remembers whether its side panel is open, whether Files or Preview is selected, and which preview tool is active. Panel metadata survives reloads in local workspace storage; preview targets remain in scoped session memory and frames are discarded when a watch closes.
The mini preview uses one fixed icon button for minimize/restore, with accessible labels, tooltips and keyboard focus preserved. Viewport width, height and Apply remain visible in narrow panels: the toolbar wraps and these numeric fields omit the +/− buttons. Other numeric controls retain their existing steppers.
Documented the implemented behavior and its persistence boundaries in the workspace and automation docs.
Verification
check:tmp, with no temporary files left behind.Fixes: #846
Fixes: #872