Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

v0.0.6: Stop-gate fixes, `jouet test` timeouts exit 124, and the settle experiment removed

Latest

Choose a tag to compare

@jdx jdx released this 23 Nov 22:15
Immutable release. Only release title and notes can be modified.
eb2ebca

v0.0.6 fixes the stop gate blocking more often than it should, makes jouet test report a run that hit a time limit, and removes the opt-in settle experiment. jouet is pre-v1: commands, flags, exit codes and JSON fields may still change incompatibly in any release, and some do here (see Breaking Changes).

Breaking Changes

  • jouet test exits 124 when the command it runs exits 124 (#625). 124 is what timeout exits with at its limit. Before, jouet test exited 1 in this case. A command that a stop signal ends still makes jouet test exit 1, but its JSON exit_code is now 128 plus the signal number (it was 1). See Fixed for the new output.
  • The settle experiment is gone (#630). [experiment] settle_share and JOUET_EXPERIMENT_SETTLE_SHARE are ignored, and an existing setting does not cause an error. In the arm, jouet hook claude user-prompt-submit no longer holds an Auto-fix event for a PR watcher. Three trials did not show it saved agent turns: held events reached their session 11 to 25 minutes late, and some were never delivered. jouet stats drops its settle section. Sessions already recorded with a settle arm still appear as a retired toggle. Files under $XDG_STATE_HOME/jouet/watch/settle-* are no longer used, and you can delete them.
  • jouet wait pr --until needs-agent is now a plain wait (#630). It has the same conditions, digest and exit codes as before. Started in an agent session without --timeout, it now waits up to 2h, the same as outside a session, instead of 24h. It no longer writes a lease. It no longer slows to one poll every 5 minutes while the PR stays settled. The digest no longer has a "held for this wait" section.
  • changed-after-pass never blocks, even with [hooks] gate = "block" (#621). See Fixed below.

If you ran jouet setup claude from a main build between 2026-11-20 and this release, run it again with the same scope (--project or --shared if you used one). That build installed PostToolUse handlers that run jouet watch claude, and that command no longer exists. If you don't rerun setup, each matching git push, gh pr create or stack submit wakes the agent with an "unrecognized subcommand 'watch'" error. jouet setup claude --dry-run shows what would change. If you installed from v0.0.5, you don't need to do anything.

Fixed

  • The stop gate no longer blocks for files changed after a passing test run (#621). The changed-after-pass reason is now recorded only as a would-block in every session, including under gate = "block" and in the experiment's control arm. On the maintainer's ledger, 69 of 73 such blocks were followed by a passing check with no edit in between. Failed test, lint and build runs and the hk reasons still block as before. If a blocking reason comes up at the same stop, the agent sees only that reason, and the ledger records both. The session-start primer no longer says the hooks stop the agent from finishing when no test has passed since its last change.
  • Codex sessions are told about a failed check once per run (#617, @jdx, @Retengart). Before, a Codex stop blocked again at every later stop for a failure the agent had already been told about, even after read-only work or a change of directory. While observing, it recorded a would-block at every stop. Each failure is now raised once per run. A new failed run of the same check raises it again. Fixes #609.
  • A stop is evaluated once when jouet's hooks are installed at two settings levels (#629). An example is a project's committed .claude/settings.json plus a user-scope install. Before, the agent got the same block message twice, and the ledger and jouet stats counted each stop twice. Now a second hook process that gets the same stop payload within 2 seconds exits silently. This also covers Codex. Ledger entries written before this fix stay doubled.
  • jouet test explains a run that timed out (#625). Before, it printed FAIL no failure recognised. Now it says the run timed out and after how long, and lists the tests that passed. If the failure format allows, it also names the test that was still running and prints a next: command that reruns only that test. Two new keys in formats/*.toml enable this: passed patterns and a rerun command with {name}:
    # ~/.config/jouet/formats/e2e.toml
    start = ['^>>> E2E (?<name>\S+)$']
    passed = ['^PASS: (?<name>\S+) \(']
    rerun = "./e2e {name}"
    If jouet itself gets SIGTERM, it forwards the signal to the command and the processes under it. It kills any still running after two seconds, prints its answer, and then exits by the signal. Before, it died without printing anything and could leave the command running. --json adds timed_out, stopped_by, unfinished and output_end. A run that was cut short is not reused ([test] reuse_s) and is not compared at the merge base by --baseline. The built-in runners (cargo, nextest, bats, pytest, go) get the new headline and the end of the output, but don't name the unfinished test.
  • Long-running commands survive a gh token refresh (#628). jouet used to read gh auth token only once per process. If gh replaced its stored token, a long jouet wait pr then failed with GitHub rejected every token (401). Now, when GitHub rejects gh's token, jouet asks gh once more for that request and retries with the new token. It prints jouet: gh auth token was rejected (401); using the token gh has now on stderr.
  • joue sweep reads review threads from the PR's own forge (#624). On a GitLab MR it used to crash with attempt to index nil with 'pullRequest'. Worse, when a GitHub mirror existed at the same path, it listed the mirror's threads under the MR's name. It now lists GitLab discussions and threads from Forgejo/Gitea PRs and Entire trails, the same way jouet pr threads does. Routines can use the new github.threads(pr) primitive to read threads from any supported forge. github.graphql, get and paginate remain GitHub-only. Fixes #623.
  • The drop arm no longer drops a prompt that also carries the desktop app's other notes (#627). These include a session or fork report, a proposal notice and the linked sessions' status. A hook can only block a whole prompt, so jouet now drops an Auto-fix event only when the prompt contains nothing else. The prompt ledger entry records the kinds of notes in notes, never their text. jouet stats reports how many would-drops passed because of notes.

New Contributors

  • @Retengart made their first contribution in #617, by reporting the bug with a reproducer and a candidate fix whose tests were ported into the merged change.

Full Changelog: v0.0.5...v0.0.6