Skip to content

Answer GetPackage from the local catalogue; bump to 0.9.2 - #41

Merged
imattau merged 2 commits into
masterfrom
claude/happy-franklin-c4bsrp
Nov 9, 2026
Merged

imattau merged 2 commits into
masterfrom
claude/happy-franklin-c4bsrp

Conversation

@imattau

@imattau imattau commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • The GUI details pane called GetPackage every time it opened, and the daemon connected to the relays and resolved live on each call, so details were slow and failed when relays were unreachable.
  • GetPackage now selects the release from the local catalogue (including its revocations) and takes the artifact event from the on-disk cache, falling back to the relays only when either is missing.
  • A new live: true parameter forces a relay query. Install passes it, because locally answered artifact_urls omit the publisher's Blossom servers.
  • The release-selection logic is shared between live discovery and the local lookup (select_release).
  • Bumps npack and npack-gui to 0.9.2 (and Cargo.lock).

Notes

  • The first details view of a package whose artifact event is not cached still queries the relays once, which fills the cache.
  • Details can be as stale as the catalogue, the same as Browse.

Test plan

  • cargo fmt --all -- --check
  • cargo test -p npack (187 passed), including a new test for no catalogue, no cached artifact, a local hit, and a revoked release
  • cargo clippy --all-targets --all-features clean
  • packaging/check-release-version.sh 0.9.2
  • Open details in the GUI against a refreshed catalogue (not run here)

Generated by Claude Code

The GUI details pane called GetPackage on every open, which connected to
relays and resolved live each time. The daemon now selects the release from
the local catalogue and the cached artifact event, falling back to relays
only on a miss. Install passes live: true to keep resolving from relays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjtG22dxbf2JzLCaCkuW9U
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjtG22dxbf2JzLCaCkuW9U
@imattau
imattau merged commit 6a7a43b into master Nov 9, 2026
3 checks passed
imattau pushed a commit that referenced this pull request Nov 9, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjtG22dxbf2JzLCaCkuW9U
imattau pushed a commit that referenced this pull request Nov 9, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjtG22dxbf2JzLCaCkuW9U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants