Skip to content

refactor: extract window runtime - #271

Merged
alecdotdev merged 1 commit into
alecdotdev:masterfrom
PathGao:agent/extract-window-runtime
Jul 29, 2026
Merged

refactor: extract window runtime#271
alecdotdev merged 1 commit into
alecdotdev:masterfrom
PathGao:agent/extract-window-runtime

Conversation

@PathGao

@PathGao PathGao commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #236.

Summary

  • Move process-wide window state, file watchers, window-state persistence, secondary-window creation, single-instance delivery, and window event handling into window_runtime.rs.
  • Keep Tauri command names, payloads, builder wiring, and frontend behavior unchanged.
  • Leave lib.rs responsible for top-level builder and command registration.

Merge order

This is the first PR in the replacement chain:

  1. window runtime extraction (this PR)
  2. window session extraction
  3. document session extraction
  4. replacement for feat: move tabs between windows, merge all windows, and a carry shortcut #225
  5. replacement for feat: window tags — named color chips, with pinned tags as reopenable sessions #226

Validation

  • npm run check
  • npm test (117 passing)
  • cargo test (18 passing)

@PathGao

PathGao commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

@alecdotdev This starts the replacement chain for #225 and #226. It is behavior-preserving: runtime ownership moves out of lib.rs while commands, events, and payloads remain unchanged.

@alecdotdev
alecdotdev merged commit 2743145 into alecdotdev:master Jul 29, 2026
5 checks passed
@PathGao
PathGao deleted the agent/extract-window-runtime branch July 30, 2026 06:28
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.

refactor: extract multi-window session runtime from MarkdownViewer and lib.rs

2 participants