Skip to content

menubar payload: data-freshness marker for stale readOnly serves #771

Closed

Description

@iamtoruk

The warm-refresh gate (#743) serves the prior complete snapshot when the lock times out or is unavailable, which is correct and fail-closed, but the payload's only time field is the render timestamp, so a stale serve is indistinguishable from a fresh parse. Bounded (self-heals within one refresh cycle) and the served data is real known-good history, so accepted for 0.9.18 per the review's judgment; this tracks surfacing an as-of marker so surfaces can render staleness honestly.

Activity

  1. ozymandiashh commented on Aug 3, 2026

    @ozymandiashh
    Collaborator

    Two complementary never-pushed drafts of the as-of marker were recovered from local session worktrees and preserved as branches, both green on their bases:

    Sequencing recommendation: hold this until #744 lands. The marker has to thread through precisely the read-only serve paths (timed-out / unavailable / completed-by-other) that #744 is restructuring in parseAllSessions, so building on top of it avoids implementing the honesty marker twice. When #744 merges, the plan is: rebase the core branch onto it, fold in the surfaces branch, re-verify, PR.

  2. iamtoruk commented on Aug 22, 2026

    @iamtoruk
    MemberAuthor

    PR #1100 now implements the minimal marker: stale?: boolean (add-only) on the menubar payload, fed by isSessionHydrationComplete() — the honesty signal that #937 landed made the core plumbing your feat/ branch carried mostly unnecessary, so the payload side collapsed to a few lines. @ozymandiashh your preserved surfaces branch is now the natural follow-up: the gnome indicator, dash API, and the mac SwiftUI staleness dot can all layer on the stale field once #1100 merges (the Swift Codable model already decodes it; only the view work remains). Sequencing note from your comment is satisfied — the read-only serve paths restructuring landed via #937/#1096.

  3. iamtoruk commented on Aug 22, 2026

    @iamtoruk
    MemberAuthor

    #1100 merged (ed8fa3a) — the stale payload field is live. @ozymandiashh the surfaces work (gnome indicator, dash API, mac SwiftUI dot) can now layer on it; the Swift Codable model already decodes the field. Leaving this issue open to track the surfaces half.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions