Repository navigation
v0.0.6: Stop-gate fixes, `jouet test` timeouts exit 124, and the settle experiment removed
Latestv0.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 testexits124when the command it runs exits124(#625).124is whattimeoutexits with at its limit. Before,jouet testexited1in this case. A command that a stop signal ends still makesjouet testexit1, but its JSONexit_codeis now128plus the signal number (it was1). See Fixed for the new output.- The settle experiment is gone (#630).
[experiment] settle_shareandJOUET_EXPERIMENT_SETTLE_SHAREare ignored, and an existing setting does not cause an error. In the arm,jouet hook claude user-prompt-submitno 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 statsdrops its settle section. Sessions already recorded with asettlearm 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-agentis 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-passnever 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-passreason is now recorded only as awould-blockin every session, including undergate = "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-blockat 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.jsonplus a user-scope install. Before, the agent got the same block message twice, and the ledger andjouet statscounted 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 testexplains a run that timed out (#625). Before, it printedFAIL 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 anext:command that reruns only that test. Two new keys informats/*.tomlenable this:passedpatterns and areruncommand with{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.# ~/.config/jouet/formats/e2e.toml start = ['^>>> E2E (?<name>\S+)$'] passed = ['^PASS: (?<name>\S+) \('] rerun = "./e2e {name}"
--jsonaddstimed_out,stopped_by,unfinishedandoutput_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 tokenonly once per process. If gh replaced its stored token, a longjouet wait prthen failed withGitHub 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 printsjouet: gh auth token was rejected (401); using the token gh has nowon stderr. joue sweepreads review threads from the PR's own forge (#624). On a GitLab MR it used to crash withattempt 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 wayjouet pr threadsdoes. Routines can use the newgithub.threads(pr)primitive to read threads from any supported forge.github.graphql,getandpaginateremain 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
promptledger entry records the kinds of notes innotes, never their text.jouet statsreports 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