Skip to content

Handle save cancellation and finish background work safely - #709

Merged
andiwand merged 3 commits into
mainfrom
review/runtime-lifecycle
Oct 10, 2026
Merged

andiwand merged 3 commits into
mainfrom
review/runtime-lifecycle

Conversation

@andiwand

@andiwand andiwand commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Ignore cancelled save-picker results even when they contain a URI, retain read access to saved targets, and exclude save reloads from document-open counts.

Finish recent-list mutations on their existing executor task so shutdown cannot reject a nested refresh. Install the process exception handler once instead of chaining one per manager initialization. Use try-with-resources for PDF copies so failed opens and closes report one result without cleanup null dereferences.

Validation: all three editions build; 48 JVM tests and 107 Android tests pass (one intentional screenshot skip); Spotless and Pro/Lite lint pass. Tests ran on Android 16 and include cancelled save results and repeated exception-handler initialization. Generated Kotlin compiler state is now ignored.

@andiwand
andiwand force-pushed the review/runtime-lifecycle branch from 81027ec to ee6a791 Compare October 10, 2026 07:59
@andiwand
andiwand merged commit 08be7c6 into main Oct 10, 2026
2 checks passed
@andiwand
andiwand deleted the review/runtime-lifecycle branch October 10, 2026 08:00
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