mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-20 18:08:55 +00:00
* fix(sync): enforce conflict-journal retention mid-session, not only at start pruneOnStart (14 days / newest 200) ran only at startup, so a long-lived session could grow SUP_CONFLICT_JOURNAL unboundedly. record() now checks the store count (cheap) and, when it exceeds JOURNAL_MAX_ENTRIES plus a slack of JOURNAL_PRUNE_SLACK, runs the same age+count prune — amortized to once every JOURNAL_PRUNE_SLACK records. The prune core is extracted and shared with pruneOnStart; the observe-only never-throw contract of record() is unchanged. SPAP-36 (deferred LOW from PR #8874 review) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(sync): await tx.done with the deletes in the conflict-journal prune An aborted prune delete transaction rejects both the delete requests and tx.done. Awaiting them separately (Promise.all(deletes), then await tx.done) leaves tx.done's rejection unhandled once the delete aggregate rejects first, so it escapes as a global unhandled rejection during active conflict resolution. Await both in one Promise.all so tx.done always has a handler. Adds an aborted-transaction regression test (fails on the old sequencing) and updates the retention model comment + doc to reflect mid-session pruning. Addresses maintainer review on #8948. SPAP-36 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| long-term-plans | ||
| plans | ||
| promotion | ||
| research | ||
| screens | ||
| sync-and-op-log | ||
| wiki | ||
| add-new-integration.md | ||
| android-edge-to-edge-keyboard.md | ||
| apple-release-automation.md | ||
| build-and-publish-notes.md | ||
| documentation-guide.md | ||
| ENV_SETUP.md | ||
| github-access-token-instructions.md | ||
| gitlab-access-token-instructions.md | ||
| how-to-rate.md | ||
| howto-refresh-snap-credentials.md | ||
| i18n-script-usage.md | ||
| legacy-webview-analysis.md | ||
| mac-app-store-code-signing-guide.md | ||
| performance-project-tag-report.md | ||
| plainspace-api-extension-plan.md | ||
| plainspace-integration-plan.md | ||
| plugin-development.md | ||
| styling-guide.md | ||
| theming-contract.md | ||
| TRANSLATING.md | ||
| unused-translations-analysis.md | ||
| update-android-app.md | ||
| update-mac-certificates.md | ||