Skip to content

fix: a box newer than the app is no longer called outdated, nor downgraded - #121

Merged
sean-brydon merged 1 commit into
mainfrom
fix/newer-box-not-outdated
Oct 15, 2026
Merged

sean-brydon merged 1 commit into
mainfrom
fix/newer-box-not-outdated

Conversation

@sean-brydon

Copy link
Copy Markdown
Collaborator

The bug

On a 0.3.11 app with a box on 0.3.22, the app said the box needed upgrading. berth upgrade BOX --check, which the app asks, counted a box as outdated whenever its build hash differed from the daemon the laptop ships, newer or older. Update all, or Update boxes automatically, would then have put the older berthd on the newer box.

The fix

  • The box says its release: /v1/info gains version (v0.3.22, or dev).
  • berth upgrade --check compares releases when both are known: a box on a newer release isn't outdated. --check --json adds newer and version, and the text says to update the app instead.
  • berth upgrade BOX won't downgrade a newer box unless given --force, so Update all can't either.
  • Unplaced builds behave as before: a dev build, or a box too old to report its release, is still compared by build alone.

Limit: this helps only once the app and the box both have it. A box from before this release doesn't report its version, and an already-installed old app keeps its old check.

Checks

🤖 Generated with Claude Code

…ed, nor downgraded by update all

The build check compared build hashes only, so a laptop on 0.3.11 took a
0.3.22 box for outdated, and Update all (or automatic updates) would have
put the older berthd on it. A box now says its release in /v1/info, and
berth upgrade compares releases when both are known: a newer box isn't
outdated, and upgrading it needs --force.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
berth Ready Ready Preview Oct 15, 2026 6:27pm UTC
berth-docs Ready Ready Preview Oct 15, 2026 6:27pm UTC

Request Review

@sean-brydon
sean-brydon merged commit fd98923 into main Oct 15, 2026
8 checks passed
@linear-code

linear-code Bot commented Oct 15, 2026

Copy link
Copy Markdown

ENG-6255

This branch was successfully deployed

2 active deployments
Preview – berth-docs — c6ce6bb4 Deployed Oct 15, 2026 by vercel[bot]
Preview – berth — c6ce6bb4 Deployed Oct 15, 2026 by vercel[bot]
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