Skip to content

Check channel freshness for install-on-activate packages during activation - #600

Open
joahg wants to merge 1 commit into
cashapp:masterfrom
joahg:joah/channel-freshness-on-activate
Open

Check channel freshness for install-on-activate packages during activation#600
joahg wants to merge 1 commit into
cashapp:masterfrom
joahg:joah/channel-freshness-on-activate

Conversation

@joahg

@joahg joahg commented Aug 5, 2026

Copy link
Copy Markdown

Context: #597 — composing agent-skills-style content packages from existing Hermit primitives.

Channel packages with an update interval are only checked for updates when one of their binary stubs is executed. Packages installed via install-on-activate may never be executed — e.g. packages whose purpose is to materialise content into the environment via triggers — so they currently remain stale indefinitely.

This runs the standard EnsureChannelIsUpToDate check in EnsureInstalled so activation keeps install-on-activate channel packages fresh. The check is a no-op for packages without an update interval, and for packages whose update check is not yet due, so ordinary activations stay fast.

Tested with go test ./... and golangci-lint run.

Channel packages with an update interval are only checked for updates
when one of their binary stubs is executed. Packages installed via
install-on-activate may never be executed - e.g. packages whose purpose
is to materialise content into the environment via triggers - so they
currently remain stale indefinitely.

Run the standard EnsureChannelIsUpToDate check in EnsureInstalled so
activation keeps install-on-activate channel packages fresh. The check
is a no-op for packages without an update interval, and for packages
whose update check is not yet due.

Buzz-Message: buzz://message?channel=573ff355-6c19-422d-b425-112853d0ec7e&id=16f5b666c0976829a1985868753407c7b20b393d89f99a8b39106be9fe6a1514
Amp-Thread-ID: https://ampcode.com/threads/T-019fce27-e59e-727c-b6d3-cdeeba894a4e
Co-authored-by: Amp <amp@ampcode.com>
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.

1 participant