Skip to content

Route session transactions through the persistence worker - #403

Merged
devmobasa merged 1 commit into
mainfrom
refactor/session-persistence
Oct 3, 2026
Merged

devmobasa merged 1 commit into
mainfrom
refactor/session-persistence

Conversation

@devmobasa

Copy link
Copy Markdown
Owner

Summary

Move session transaction orchestration into a shared production owner used by
both the Wayland overlay and session tests.

Route session disk operations through the persistence worker instead of
maintaining separate implementations in the runtime adapter and tests.

Changes

  • Introduce a shared SessionTransaction context for input state, text
    measurement, session state, and persistence.
  • Route Open, Save As, overwrite preflight, Clear, and saved tool-state resets
    through persistence operations.
  • Keep save-before-open ordering, named-target validation, and overwrite checks.
  • Commit target and canvas changes only after the required disk operations
    succeed.
  • Preserve pending output-transition handling and session recovery rules.
  • Reduce the Wayland session adapter to calls into the shared transaction owner.

Regression coverage

  • Exercise the production transaction code with a real persistence worker.
  • Retain coverage for target validation, overwrite handling, failed operations,
    saved data, and session transitions.
  • Remove the duplicate test-side transaction implementation so tests follow
    the same orchestration path as the overlay.

@devmobasa
devmobasa merged commit 09199c3 into main Oct 3, 2026
3 checks passed
@devmobasa
devmobasa deleted the refactor/session-persistence branch October 5, 2026 12:49
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