Skip to content

fix(desktop): retain workspace state and isolate window actions - #182

Merged
bketelsen merged 2 commits into
mainfrom
fix/desktop-window-review
Nov 11, 2026
Merged

bketelsen merged 2 commits into
mainfrom
fix/desktop-window-review

Conversation

@bketelsen

@bketelsen bketelsen commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep caret and scroll positions through navigation, target jumps at the requesting tab, retain active tabs during workspace validation, and deep-copy merge views. Hidden properties hide their YAML and panel; closing Settings commits unfinished fields. Remote-image preference changes rebuild image caches, and dropping a tab in a group's center joins that group.

Join results belong to their own run. A lost vault-add answer explains that a vault may remain and where to remove it. Moves and deletions held at sequence zero are persisted with their resume point so reopening can apply them after the vault list arrives.

Closes #159. Closes #160. Closes #161. Closes #162. Closes #163. Closes #164. Closes #165. Closes #166. Closes #172. Closes #175. Closes #176.

Risk tier

Risk tier: 3 — workspace/event durability and the L1 match internal/desktop/reading/view.go. The image loader keeps its existing scheme checks, byte limits and pixel budget; changing the preference creates a new drawer and cache identity so refusals can retry without sharing the old loader's mutable policy. No vault files are deleted for an ambiguous add result.

Verification

  • mise exec -- make check passed in the isolated worktree.
  • make desktop-build passed.
  • go test -race ./internal/desktop/window ./internal/desktop/reading ./internal/desktop/workspace ./internal/desktop/uikit passed.
  • Revert tests: disabling each behavioral fix makes its new regression fail in go test ./internal/desktop/window ./internal/desktop/workspace ./internal/desktop/reading ./internal/desktop/uikit; all pass with fixes restored. Coverage includes real notesd navigation, a restart with held events, out-of-order join completion, a refused image retried against an HTTP fixture, and a center drag/drop.

Merge order

Stacked on #181; merge that PR first, then retarget this PR to main. Preserve ancestry with merge commits, or rebase the remaining branches after a squash merge. Full order: #181 → #182 → #183 → #184 → #185 → #186 → #188 → #187 → #189 → #190.
The final branch contains the combined fixes. CI and Flatpak workflows were dispatched on that branch because PR CI is restricted to a main base.

@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json labels Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment