Skip to content

Activity and Digest must distinguish load failures from empty results #943

Closed

Description

@currentbits

Reproduced usability bug. Priority: P1. Reviewed 2026-09-06 at 6c7a6fbe.

Problem and reproduction

  1. Load Activity successfully with one event. Reject the next listActivity call and press Refresh.
  2. Existing rows disappear and the view says “No activity yet”, with no failure explanation.
  3. Separately mount Digest with loadDigest rejecting.
  4. It says “Nothing ran while you were away.” and Mark reviewed remains enabled.

These are statements about work that happened, but the app has failed to retrieve that work. In Digest the user can also invoke acknowledgement without seeing a successfully loaded digest.

Cause

ActivityView.loadAll catches errors with setItems([]). DigestView.loadAll catches with setResult(null). Both feed the ordinary empty rendering branch. onMarkReviewed also silently returns if markSeen rejects.

Smallest useful scope

  • Initial failure: explicit load error and Retry.
  • Refresh failure: retain the last successful rows, label them as potentially out of date, expose Retry.
  • Show successful-empty copy only after a successful response.
  • Disable Mark reviewed while there is no successfully loaded digest or acknowledgement is pending; clearly surface acknowledgement failure.
  • Do not silently clear a digest window after a failed acknowledgement.
  • Reuse the existing InsightsView approach, which already retains modes and displays refresh errors. No shared fetching framework is needed.

Acceptance

Tests cover initial rejection, refresh rejection after success, successful empty response, retry recovery and markSeen rejection. A failed refresh does not erase known data or claim that no work occurred. Errors are announced accessibly and buttons remain reachable.

This concerns local Activity/Digest rendering and acknowledgement, not forge outage resilience #427 or decorative chrome #729/#728.

Sources: Activity load, Digest load and acknowledgement, existing Insights pattern.
Runnable evidence: node --import=./test/support/disable-grok-mcp.mjs --import=./test/support/render.mjs --experimental-strip-types docs/issue-drafts/2026-09-06-views-evidence.mjs (exit 0). This audit script asserts current behavior, not desired regression behavior. Artifact is in the audit checkout; reproduction steps above are self-contained.

Requested disposition: separate Planboard issue with plan:todo. No implementation in this research task.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 6, 2026
  2. currentbits commented on Sep 8, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Activity and Digest must distinguish load failures from empt". Closed on merge.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions