Skip to content

dashboard: name the files that did not read as a pull record #2666

Closed

Description

@thiras

Follow-up to #2651 (review).

Today. read_records (crates/cli/src/commands/activity.rs) skips a file in ~/.decdn/activity/pulls/ that does not parse as a PullRecord, logs why at debug only ("{path} is no pull record: {e}"), and adds one to unreadable. The page (crates/cli/dashboard/src/App.tsx) shows only "⚠ N file(s) in the directory did not read as a record." It names no file and no reason, and says nothing about how to find them. A truncated or hand-edited record shows this banner on every poll, and the user has no next step unless they know to rerun decdn dashboard with RUST_LOG=debug. A warn! in read_records is not the fix as it stands, because the dashboard calls read_records on every poll (dashboard/sources.rs), so the warning would repeat.

Ask. Make an unreadable record findable from the page. Options:

  • carry the unreadable paths (or the first one and its serde error) in the /_status payload and show them under the banner, or
  • warn once per path per process, and point the banner at the log.

Done when

  • A user who sees the banner can tell which file(s) failed and why without RUST_LOG.
  • A test covers an unreadable record's path (and reason, if carried) reaching the page.

🤖 Generated with Claude Code

Activity

  1. added
    kind:feature
    area:cli
    prio:low
    on Oct 28, 2026
  2. added this to the v0.3 milestone on Oct 29, 2026
  3. self-assigned this
    on Oct 29, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 29, 2026
  5. moved this from In progress to Done in deCDNon Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:featureprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions