Skip to content

Desktop: harden dashboard task freshness reconciliation #8124

Closed

Description

@Git-on-my-level

Context

PR #8013 adds dashboard-scoped task freshness without hydrating the full Tasks page list. That is the right direction, but there are a few follow-up correctness edges worth handling separately from the startup performance PR.

Follow-ups

1. Exact-ID server truth vs recent local-change protection

DashboardTaskRefreshService fetches exact server truth for locally visible dashboard task IDs, then applies the result through ActionItemStorage.syncTaskActionItems(...).

That storage path intentionally skips incoming API data when the local record is newer and changed within 60 seconds to protect optimistic updates. For dashboard exact-ID reconciliation, though, this can leave a stale dashboard row visible even after the server says the task is completed/deleted/moved out.

Desired behavior: exact-ID dashboard reconciliation should have a targeted authoritative path for visibility-changing fields (completed, deleted, dueAt) without breaking optimistic-update protection for generic partial refreshes.

2. Dashboard freshness fetch only reads the first server page

The dashboard refresh fetches limit=100, offset=0 for the due window and recent-created window. Users with more than 100 matching tasks can have dashboard-visible server tasks that are not discovered by the freshness pass.

Desired behavior: paginate or otherwise fetch enough per dashboard bucket to make the dashboard freshness invariant explicit.

3. Concurrent refresh fallback

If a dashboard refresh is already running, the current guard returns before even loading the local dashboard snapshot. Consider sharing/awaiting the in-flight refresh, or at least loading local dashboard state before returning.

Notes

These are follow-ups; PR #8013 should not balloon into a larger task-sync/storage migration.

Activity

  1. added
    p3
    on Jun 24, 2026
  2. added a commit that references this issue on Jul 21, 2026
    aff3255
  3. added a commit that references this issue on Sep 29, 2026
    7c7c0f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    desktopp3stabilitytask

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions