Skip to content

feat(cli): update jazz alongside quartet, and check on every command - #77

Merged
lvndry merged 1 commit into
mainfrom
feat/update-jazz-alongside-quartet
Sep 14, 2026
Merged

lvndry merged 1 commit into
mainfrom
feat/update-jazz-alongside-quartet

Conversation

@lvndry

@lvndry lvndry commented Sep 14, 2026

Copy link
Copy Markdown
Owner

What

Two changes to how quartet keeps itself current.

quartet update now updates jazz too. New packages/cli/src/jazz-update.ts shells out to jazz 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 the jazz on 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 PATH and is not a failure: a machine running only quartet hub has no agents on it at all.

The quiet auto-update runs on every command. The six-hour throttle and the ~/.quartet/update_check stamp 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 update runs before the re-exec, so the command about to run does not meet a stale daemon.

What is unchanged

  • --help, help and --version stay instant and offline.
  • CI=true and QUARTET_NO_UPDATE=1 still skip.
  • A non-TTY stdin still skips, so a piped run (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 typecheck clean.
  • bun test packages/cli — 7 pass, including a new jazz-update.test.ts covering --jazz resolution (fallback, explicit path, and a --jazz with the next flag behind it).
  • Full bun test has 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

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>
@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
quartet Ready Ready Preview Sep 14, 2026 8:45am UTC

@lvndry
lvndry merged commit 2844402 into main Sep 14, 2026
5 checks passed
@lvndry
lvndry deleted the feat/update-jazz-alongside-quartet branch September 14, 2026 08:46

This branch was successfully deployed

1 active deployment
Preview — 6de58832 Deployed Sep 14, 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