fix(release): repin the local-sync LaunchAgent too, not just the dashboard#80
Merged
Conversation
…board scripts/release.sh only repinned + reloaded the dashboard agent (com.pitimon.tokentracker.dashboard). The 5-minute local-sync agent (com.pitimon.tokentracker.local-sync) pins the package version independently, so a release left it on an OLDER version — and its next `sync --auto` tick re-parses the logs with the old CLI. During the issue #75 rebuild this silently UNDID the migration: the dashboard was on 0.39.39 but local-sync was still pinned to 0.39.20, so after the migration reset the Codex cursors the stale agent re-parsed from offset 0 with the buggy parser and re-inflated the corrected data. Cost hours to diagnose. Now release.sh repins + reloads BOTH agents to the same version. The local-sync agent is optional (skipped if not installed); it has no server, so a successful plist repin + reload is the check (no HTTP verify). Backup + restore-on-failure mirror the dashboard path. Overridable via TOKENTRACKER_SYNC_LABEL. Co-authored-by: itarun.p <itarun.p@somapait.com>
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.
Why
scripts/release.shrepinned + reloaded only the dashboard agent. The 5-minute local-sync agent (com.pitimon.tokentracker.local-sync) pins the version independently, so a release left it stale — and its nextsync --autotick re-parses logs with the OLD CLI.During the #75 rebuild this silently undid the migration: dashboard was on 0.39.39 but local-sync was still
@0.39.20, so after the migration reset the Codex cursors the stale agent re-parsed from offset 0 with the buggy parser and re-inflated the corrected data (hours to diagnose).What
TOKENTRACKER_SYNC_LABEL(defaultcom.pitimon.tokentracker.local-sync).Test plan
bash -n scripts/release.sh— syntax OKnpm run ci:localgreen (release.sh is not gated by ci:local — deploy script)Refs #75