fix: sync pkg/package.json version with pi-coding-agent to prevent false update banner#15
Merged
glittercowboy merged 1 commit intogsd-build:mainfrom Mar 11, 2026
Conversation
…lse update banner pkg/package.json had a hardcoded version (0.1.0) that never got updated. Since gsd-pi sets PI_PACKAGE_DIR=pkg/, pi's config.js reads VERSION from pkg/package.json. The update check compares this stale version against npm registry and always shows 'Update Available' even when the user is already on the latest release. Fix: - Update pkg/package.json to current pi-coding-agent version (0.57.1) - Add sync-pkg-version.cjs script that reads the installed pi-coding-agent version and writes it into pkg/package.json - Run the sync script in prepublishOnly so the version stays correct on every publish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
gsd-pisetsPI_PACKAGE_DIR=pkg/so that pi'sconfig.jsreadspiConfigfrompkg/package.json(for branding). However,config.jsalso readsversionfrom that same file and uses it for the update check — comparing it against the npm registry.pkg/package.jsonhad a hardcoded"version": "0.1.0"that was never updated when new versions were published. This means:VERSIONin pi's internals is always0.1.00.1.0against the latest npm version (e.g.0.57.1)Fix
pkg/package.jsonversion to match the current pi-coding-agent dependency (0.57.1)scripts/sync-pkg-version.cjs— reads the installed@mariozechner/pi-coding-agentversion and writes it intopkg/package.jsonprepublishOnlyso the version is automatically synced on everynpm publishTesting
Affected versions
All published versions of gsd-pi (0.1.x through 0.2.8) show the false update banner when
PI_SKIP_VERSION_CHECKis not set.