super-productivity/electron
Johannes Millan d32f7037a3 fix(sync): preserve own vector clock counter across full-state op resets
When a full-state op (SYNC_IMPORT/BACKUP_IMPORT) arrived from another
client, mergeRemoteOpClocks reset the local clock to a "minimal" form
but only preserved the current client's counter from the incoming op's
clock. If the current client had issued ops (e.g. GLOBAL_CONFIG) not
reflected in the incoming full-state op's clock, its counter was dropped,
causing subsequent ops to reuse the same counter value. Downstream clients
then saw these ops as EQUAL (duplicate) and skipped them silently.

Fix: take max(mergedClock[clientId], currentClock[clientId]) when
rebuilding the clock after a full-state op reset.

Also add __SP_E2E_BLOCK_WS_DOWNLOAD flag to WsTriggeredDownloadService
to allow E2E tests to block automatic WS-triggered downloads during
concurrent conflict scenarios.

Fix archive conflict test by blocking WS downloads on Client A during
the concurrent edit phase so it doesn't auto-receive B's rename via
WebSocket before archiving (restoring the intended conflict scenario).

Fix LWW singleton test to assert convergence rather than specific winner.
Fix renameTask helper to avoid Playwright/Angular re-render races.
Fix shepherd.js import paths that broke the Angular dev server build.
2026-04-01 15:41:13 +02:00
..
assets/icons fix: wrong icon for kde title bar 2025-07-22 20:42:28 +02:00
ipc-handlers feat(electron): add Local REST API for desktop automation (#6981) 2026-03-28 13:35:04 +01:00
scripts refactor(electron): bundle preload script with esbuild to support sandbox mode 2026-03-22 19:38:21 +01:00
shared-with-frontend refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
task-widget refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
backup.ts chore(backup): increase retention to 30 recent and 21 daily 2026-02-11 20:37:40 +01:00
clipboard-image-handler.ts Adding Ctrl-V pasting function from clipboard. (#5998) 2026-02-04 15:46:51 +01:00
common.const.ts fix: windows crashing issue on minimize #3423 2024-09-09 15:17:24 +02:00
CONFIG.ts Increase ping interval and idle time in order to not waste CPU cycles. (#6227) 2026-01-28 15:37:50 +01:00
debug.ts refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
electronAPI.d.ts feat(electron): add Local REST API for desktop automation (#6981) 2026-03-28 13:35:04 +01:00
error-handler-with-frontend-inform.ts fix(error-handling): prevent [object Object] from appearing in error messages 2026-01-02 15:40:14 +01:00
full-screen-blocker.ts feat: improve shutdown cleanup 2025-06-29 17:31:28 +02:00
idle-time-handler.ts fix(electron): reduce idle detection log verbosity 2025-12-31 13:42:18 +01:00
indicator.ts refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
ipc-handler-wrapper.ts Adding Ctrl-V pasting function from clipboard. (#5998) 2026-02-04 15:46:51 +01:00
ipc-handler.ts feat(electron): add Local REST API for desktop automation (#6981) 2026-03-28 13:35:04 +01:00
jira.ts fix: add proxy env support for jira integration #6324 (#6574) 2026-03-09 13:09:51 +01:00
local-file-sync.ts refactor(sync): clean up file-based sync adapter dead code and duplication 2026-02-15 11:19:22 +01:00
local-rest-api.ts fix(security): harden Local REST API against DNS rebinding and field injection (#6996) 2026-03-29 11:59:27 +02:00
lockscreen.ts refactor(elctron): add typing wherever possible and simplify 2022-01-30 20:12:41 +01:00
main-window.ts refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
main.ts fix(electron): improve protocol URL handling and register URL scheme on Linux 2026-03-05 16:45:05 +01:00
plugin-node-executor.ts refactor: improve typing 2 2025-08-12 15:27:48 +02:00
plugin-oauth.ts fix: address review findings from 18.0.0 release (#6976) 2026-03-27 11:46:23 +01:00
preload.ts feat(electron): add Local REST API for desktop automation (#6981) 2026-03-28 13:35:04 +01:00
protocol-handler.ts fix(electron): restore hidden window on taskbar click 2026-01-20 17:07:23 +01:00
proxy-agent.ts fix: add proxy env support for jira integration #6324 (#6574) 2026-03-09 13:09:51 +01:00
shared-state.ts fix: refactor tray handling to use shared state for task and countdown visibility 2025-11-28 18:53:00 +01:00
simple-store.ts fix(electron): handle legacy simpleSettings directory causing EISDIR crash 2026-02-25 15:27:57 +01:00
start-app.ts fix(sync): preserve own vector clock counter across full-state op resets 2026-04-01 15:41:13 +02:00
tsconfig.electron.json fix(e2e): improve supersync test stability and build compatibility 2025-12-19 09:59:44 +01:00
various-shared.ts refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00