Repository navigation
feat(cli): update jazz alongside quartet, and check on every command - #77
Merged
Merged
Conversation
Quartet is half a pair. A bridge whose jazz predates a route it needs fails the same way an old bridge does, and from the outside it is the same undebuggable silence — so the two now move together. `quartet update` hands the second half to `jazz update`, jazz's own installer, rather than picking release assets for somebody else's project. It runs whatever happened to quartet, including "already current", which says nothing about the runtime underneath. No jazz on PATH is not a failure: a machine running only `quartet hub` has no agents on it at all. The quiet auto-update loses its six-hour throttle and its stamp file. A window in which quartet is knowingly allowed to run stale buys nothing, so the check is now first thing on every command. When it does install, jazz follows before the re-exec, so the command about to run does not meet a stale daemon. Unchanged: `--help`, `help` and `--version` stay instant and offline, CI and QUARTET_NO_UPDATE still skip, and a non-TTY stdin still skips so a piped run does not get its binary swapped mid-pipeline. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
What
Two changes to how quartet keeps itself current.
quartet updatenow updates jazz too. Newpackages/cli/src/jazz-update.tsshells out tojazz update— jazz's own installer, rather than reimplementing asset picking and drifting from it. It honours the same--jazz <path>flag the bridge takes, else thejazzon PATH. Jazz runs whatever happened to quartet, including "already on 0.0.7", which says nothing about the runtime underneath. A missing jazz prints· no jazz on PATHand is not a failure: a machine running onlyquartet hubhas no agents on it at all.The quiet auto-update runs on every command. The six-hour throttle and the
~/.quartet/update_checkstamp file are gone. A bridge and a hub that disagree about the protocol fail in ways nobody can debug from the outside, so a window in which quartet is knowingly allowed to run stale buys nothing. When it does install,jazz updateruns before the re-exec, so the command about to run does not meet a stale daemon.What is unchanged
--help,helpand--versionstay instant and offline.CI=trueandQUARTET_NO_UPDATE=1still skip.echo … | quartet ask) does not get its binary swapped mid-pipeline.Cost worth naming
The release check carries a 5s timeout, so every command now carries up to 5s of latency when GitHub is unreachable. It fails silently and continues on the current binary — a dead network still must not stop connect.
Testing
bun run typecheckclean.bun test packages/cli— 7 pass, including a newjazz-update.test.tscovering--jazzresolution (fallback, explicit path, and a--jazzwith the next flag behind it).bun testhas one failure,resolveJazzDaemonToken > reads daemon.token from $JAZZ_HOME/secrets.json, which reproduces on a stashed tree — pre-existing and unrelated.🤖 Generated with Claude Code