Skip to content

feat: "splashboard fetch" user-facing cache-warming command #39

Open

Description

@unhappychoice

Motivation

`fetch-only` exists as a `splashboard` subcommand today, but it's treated as an internal daemon entry point (invoked by the parent splashboard process after drawing, stdio nulled out). Users have no stable interface for "refresh the cache now."

Use cases:

  • Pre-warming in a CI job or pre-deploy hook so the next cd is instant.
  • Forcing a refresh after changing config.
  • Scripting / debugging ("did this widget actually fetch?").

Proposal

Rename / promote to `splashboard fetch`:

  • `splashboard fetch` — run all fetchers for the active config, populate the cache, exit. Prints a compact summary to stdout on success (widget id, ttl, size). Exits non-zero if any fetcher failed.
  • `splashboard fetch <widget_id>` — refresh just one widget.
  • `splashboard fetch --force` — bypass TTL; refresh even widgets that are still fresh.

Open questions

  • Keep `fetch-only` as a hidden alias? The daemon spawn code hardcodes the subcommand name. If we rename, update the daemon side too — or keep both and mark `fetch-only` deprecated.
  • Output format: human-readable by default, `--json` flag for scripting?
  • Realtime widgets: nothing to do for them (no cache). Silently skip or mention in the summary?
  • Trust: same gate as rendering — only fetches widgets the current trust decision allows. Useful to surface `🔒 gated` lines in the summary.

Non-goals

  • Continuous daemon mode / background refresh. Out of scope; splashboard stays a one-shot tool.

Activity

  1. added
    feat
    on Apr 21, 2026
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

    feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions