Skip to content

Fix release.active vs release.current mismatch causing stale status#146

Merged
jonathonbyrdziak merged 1 commit intomasterfrom
fix/release-active-mismatch
Mar 23, 2026
Merged

Fix release.active vs release.current mismatch causing stale status#146
jonathonbyrdziak merged 1 commit intomasterfrom
fix/release-active-mismatch

Conversation

@jonathonbyrdziak
Copy link
Copy Markdown
Contributor

Summary

  • Root cause: setActiveVersion() writes release.active but resolveActiveDir() and ProtocolStatus read release.current — different fields. After deploy, status resolved to the old release directory, breaking crontab checks, watcher PID lookups, and showing the wrong active version.
  • NodeConfig::resolveActiveDir: check release.active first, fall back to release.current
  • ProtocolStatus: same priority fix when reading current release for display
  • ProtocolStart: clear Json cache before running protocol status at end of start
  • ProtocolStatus: only flag the active container as an issue, not old stopped releases (v1.0.0-v1.0.4 showing as issues was noise)

Test plan

  • After protocol start, status should show the correct active release version
  • Crontab should show as "installed" (path now matches)
  • deploy:slave PID should be found (checking correct dir)
  • Old release containers (v1.0.0-v1.0.4) show as stopped but NOT flagged as issues
  • Only the active release container flagged if not running

🤖 Generated with Claude Code

Root cause: setActiveVersion writes release.active but resolveActiveDir
and ProtocolStatus read release.current — different fields. After deploy,
status resolved to the old release dir, breaking crontab checks, watcher
PID lookups, and showing the wrong active version.

- NodeConfig::resolveActiveDir: check release.active first, fall back to release.current
- ProtocolStatus: same priority when reading current release
- ProtocolStart: clear Json cache before running status at end of start
- ProtocolStatus: only flag active container as issue, not old releases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonathonbyrdziak jonathonbyrdziak merged commit 2bd7887 into master Mar 23, 2026
5 of 8 checks passed
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