Skip to content

fix(review): stop a reviewer that never ends, and never resume a failed run - #697

Merged
amiddavid merged 2 commits into
mainfrom
fix/review-timeout
Oct 25, 2026
Merged

amiddavid merged 2 commits into
mainfrom
fix/review-timeout

Conversation

@amiddavid

@amiddavid amiddavid commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • A reviewer run in offload-review now has a wall-clock limit. A run that never ends is stopped, and that reviewer falls back to the next backend.
  • A run that started and ended without posting loses its saved session. The next round starts fresh and does not resume a broken session.
  • A failure before the backend starts (worktree lock, prompt) keeps the session.
  • A bad OFFLOAD_REVIEW_TIMEOUT stops the script at startup, before any worktree exists.
  • A reviewer may now save any .review-in-*.txt file in its own folder. Before, one extra file made a round exit 1 although both reviews posted.
  • No token limit is added. The reviewer keeps its full output and thinking budget.

What we found

  1. On refactor(offload): one helper for the role and opening of an appended question #507, round 1, a GLM reviewer never ended.
  2. A later round would have resumed the broken session. integrator-053 found the path: a reviewer that never posted in round 1 has no earlier backend, so the chain starts with glm. backend_has_session is then true, because the failed run's session-id file is still there.
  3. On feat(sweep): ask at the keep-alive ping, hold the answer, recheck, shadow mode #508, round 2, the script exited 1 although both reviews posted. Reviewer 1 had saved the PR body to .review-in-prbody.txt in its own folder. The file check allowed only 3 names.

What changed

  • scripts/offload-review.sh:
    • run_limited runs the backend in its own process group. Past the limit it stops the whole group, first with TERM, then with KILL after 5 s, creates a marker file and returns 124. The marker, not the exit code, says the run was stopped. A backend that exits 124 by itself reads as exit 124. A plain kill of the backend's pid would leave its children running.
    • The limit is OFFLOAD_REVIEW_TIMEOUT, in seconds. The default is 1800 (30 minutes). 0 turns it off.
    • After a timeout, review.log ends with offload-review: stopped after <N>s, and the Tried first: line says timed out.
    • The fallback runs only if the review is not on the PR yet. posted_now already checks that, so a reviewer that posted just before the stop does not get a second review.
    • OFFLOAD_REVIEW_TIMEOUT is checked once at startup. review.log is appended to, not overwritten.
    • After a run that started and posted nothing, forget_session calls the backend's backend_forget_session. A backend without that function gets backend_cleanup instead.
    • The reviewer-folder check now allows any .review-in-*.txt.
  • backends/glm.sh and backends/claude.sh: backend_forget_session removes the saved session id. For claude it also removes the transcript under ~/.claude/projects. For glm, the transcript stays in .glm-cc/ for diagnosis, and --cleanup removes it after the merge. bob has no session-id file, so it uses backend_cleanup.
  • .claude/skills/offload-review/SKILL.md: documents the time limit, the "a failed run is never resumed" rule, and the new optional backend function.

How it was tested

All tests ran on the laptop with a fake gh and test backends. The test files are not committed.

  1. Timeout, end to end through the real script.
    • Setup: a backend that sleeps 600 s and starts a child that also sleeps 600 s, with OFFLOAD_REVIEW_TIMEOUT=4, and a second backend that posts right away.
    • Result: both reviewers were stopped after 4 s and fell back. Both reviews were posted, and the script exited 0.
    • No sleep 600 process was left behind, so the whole process group was stopped.
    • The session file was removed, and review.log ended with the stop line.
  2. A failed run drops its session. A backend that saves a session and exits 7 without posting: the session file was gone afterwards, and the fallback posted.
  3. The next round starts fresh for a reviewer whose session was dropped (resume=0, "round 2 starts fresh").
  4. run_limited on its own:
    • It returns the backend's own exit code (3, 0) when the backend ends in time.
    • 0 means no limit.
    • A backend that reads stdin does not hang: stdin is /dev/null, so a background job is never stopped by SIGTTIN.
  5. Round-1 review fixes, same method:
    • A bad value 30m exits 1 with a message. No worktree is made.
    • A backend that exits 124 by itself reads exit 124, with no stopped after line.
    • With the worktree lock held, round 2 fails before the backend runs. Both saved sessions are kept.
    • A run that started and failed drops the session.
    • The hang test passes again. No process is left.
  6. bash -n passes on all changed scripts.

Not tested: a real GLM run that hits the limit. That needs a model that degenerates on purpose.

Open questions

Technical notes

  • set -m gives the backend its own process group. set +m right after keeps the rest of the script as it was. The INT/TERM trap stops the group if the review script itself is stopped.
  • The 5 s gap between TERM and KILL gives Claude Code time to write its transcript.
  • forget_session runs in a subshell, as the cleanup code does, so one backend's functions never leak into another's.

…ed run

On #507 a GLM reviewer repeated one word up to the 32k output limit, 4
turns in a row, about 21 minutes each. Nothing stopped it, and a later
round would have resumed that same session.

- Each reviewer run now has a wall-clock limit, OFFLOAD_REVIEW_TIMEOUT
  (default 1800 s, 0 = off). Past it, the script stops the run's whole
  process group and falls back to the next backend, unless the review is
  already on the PR. It does not limit tokens.
- A run that ends without posting drops its saved session
  (backend_forget_session, or backend_cleanup), so the next round starts
  fresh.
- Any .review-in-*.txt in a reviewer's own folder is allowed. A reviewer
  that also saved the PR body (.review-in-prbody.txt, #508) made the
  round exit 1 although both reviews posted.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.310 offload-review skill, @amiddavid's session fresh 1 of 2 1 of 2 e373014f3b49 approve

Verdict: approve

Findings

None. The change works as documented. I verified the hard parts by running them (see below).

Non-blocking

  1. scripts/offload-review/backends/claude.sh:3 — the header count is stale. It says "three functions, and two optional ones", but the list below it now has three optional functions (backend_ready, backend_cleanup, backend_forget_session). Same in glm.sh:3 and in SKILL.md "Add a backend" ("one optional one", two listed). Fix: update the counts, or drop them.
  2. scripts/offload-review.sh:338 — a backend that exits 124 by itself reads as a timeout. run_limited returns 124 both for a timeout and for a child that exits 124 on its own. In the second case, attempt appends a false stopped after <N>s line to review.log, and the tried line says timed out. I found no backend that exits 124 today, so the risk is low. Fix: use a marker the backends cannot return (for example 125), or print the elapsed time.
  3. scripts/offload-review.sh:335-336 — OFFLOAD_REVIEW_TIMEOUT is validated inside each attempt. A bad value fails every backend in the chain, one after the other, and each failure also drops that backend's session (forget_session). Fix: validate once at startup, before any reviewer runs.
  4. scripts/offload-review.sh:365 — forget_session also runs when the attempt failed before backend_run started. A failure in ensure_wt or cd (exit 1) drops a good round-1 session, although no review run happened. The result is a fresh round 2, which the later-rounds prompt supports, so no data is lost. It is stricter than the stated rule ("a run that ends without posting").
  5. scripts/offload-review.sh:338 — > review.log truncates the log and drops earlier diagnostics. backend_has_session 2>>review.log (line 279) writes bob's --list-sessions error there first; run_limited ... > review.log then wipes it. This is pre-existing: the old backend_run ... > review.log had the same effect. Fix in a later change: use >>.
  6. No automated test for run_limited or forget_session. The repo has no shell-test harness at all, so this matches current practice. run_limited is subtle shell (process groups, traps), so a regression would be silent. Worth a harness if scripts grow more logic.

What I checked

  • Read the full diff (4 files) and the whole scripts/offload-review.sh, all three backends, SKILL.md, and review-prompt-later-rounds.md.
  • Ran run_limited in isolation (local bash, no Go): a child exit code passes through (7); a timeout returns 124 and kills the whole tree, including a grandchild sleep 30 (no leak); the child gets a process group of its own, apart from the parent's.
  • Ran run_limited inside a nested background subshell, as the real script calls it (run_reviewer & → attempt → run_limited): the reviewer is killed, and an unrelated background job in the main group survives. So kill -- "-$pid" cannot hit the script's own group.
  • Checked trap handling: the INT/TERM trap is cleared on both exit paths; the parent's EXIT trap does not fire in the attempt subshell, so skipdir survives concurrent reviewers.
  • Checked forget_session: argument order of wt_of is correct; it runs cd before the backend's $(pwd -P)-based helpers; the bob fallback to backend_cleanup is guarded; a not-set-up backend (exit 4) keeps its session; a run that posted keeps its session (posted_now runs first, and a gh read failure counts as posted).
  • Checked the widened file rule .review-in-[a-z0-9-]+.txt: it still matches only root-level names, keeps the three documented names, and fixes the #508 false exit 1.
  • Checked the timeout race: a review posted just before the deadline is accepted (posted_now runs before forget_session), and the stray "stopped" message is stderr only.
  • No Go code changes, so no data-dependence update is needed and no Go tests apply.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.310 offload-review skill, @amiddavid's session fresh 2 of 2 1 of 2 e373014f3b blocking

Verdict: blocking

Findings

  1. scripts/offload-review.sh:365 — forget_session drops a saved session even when backend_run never ran.
    • What fails: run_reviewer calls forget_session for any rc != 4 when no review was posted. But attempt also exits 1 on failures that happen before backend_run starts: the OFFLOAD_REVIEW_TIMEOUT validation (line 336), ensure_wt (line 273), the cd (line 275), and the prompt write (line 296-333). In those cases the session is not "the one that failed" — no run happened — yet it is deleted. Worst case: a typo like OFFLOAD_REVIEW_TIMEOUT=30m in round 2. Every backend in the chain fails at validation before running, and each one loses that reviewer's round-1 session (glm: .glm-cc/session-id; claude: .claude-review-session; bob: the whole ~/.bob/tmp/<hash> dir via the backend_cleanup fallback). The script exits 1 with a clear reason, the user fixes the variable and re-runs, and both reviewers start round 2 fresh. The round-1 context is gone, with no message about that loss. The same holds for an ensure_wt failure (worktree lock held over 60 s) in round 2.
    • Proof: trace — attempt (line 336) exit 1 → run_reviewer line 362 rc is 1, not 4 → line 365 forget_session "$r" "$b" → the backend's backend_forget_session/backend_cleanup removes the session. backend_run at line 338 was never reached. This contradicts the commit's own intent: "does not resume a session that may be the one that failed" — here it certainly was not.
    • Fix: validate OFFLOAD_REVIEW_TIMEOUT once at startup, next to the backend-name checks (lines 82-92), so a bad value stops the script before any session is touched. And forget a session only when backend_run actually ran — for example, attempt writes a ran marker into $skipdir after run_limited, and run_reviewer calls forget_session only when that marker exists.

Non-blocking

  • backends/claude.sh:46 — after backend_forget_session, the old session's transcript stays under ~/.claude/projects/<worktree-path>/, and --cleanup never removes it: backend_cleanup deletes only the session that the current .claude-review-session names, which is the new session by then. glm handles this deliberately (transcript kept in .glm-cc/ for diagnosis, removed by --cleanup). For claude the forgotten transcript is neither kept by design nor removed. Small disk and hygiene leak, on the user's own machine.
  • scripts/offload-review.sh:229-240 — a run that finishes on its own in the same second the limit is reached gets rc=124 and the "timed out" label instead of its real exit code. If it posted, posted_now still protects it, so only the log line is wrong. Cosmetic.
  • SKILL.md says "stopped with all its processes". That holds for the process group (verified below, including children started with & inside the run). A process that moves itself into a new process group would escape the kill; no current backend does that.

What I checked

  • The full diff (4 files) and the whole content of each: offload-review.sh, both changed backends, SKILL.md.
  • The code around every change: attempt, run_reviewer, chain_for, posted_now, ensure_wt, the final worktree checks; backends/bob.sh (unchanged, but the backend_cleanup fallback in forget_session runs it); review-prompt.md and review-prompt-later-rounds.md (to check the widened .review-in-* allowlist against the files the prompts actually write).
  • The .review-in-[a-z0-9-]+.txt widening: justified — the commit message names the incident (#508) where a reviewer's own .review-in-prbody.txt made the round exit 1. The three filenames the later-rounds prompt writes all match.
  • run_limited verified by running it on this machine, in the same nesting as the real script (background subshell, || context), under both /opt/homebrew/bin/bash 5.2 and /bin/bash 3.2:
    • set -m in the subshell gives the backgrounded backend_run its own process group on both versions.
    • A group TERM kills the job, its foreground children and its & children — all stay in the group. Nothing of the run survives.
    • Exit codes propagate: success → 0, failure → the real code (7 in the test), fast failure before the limit → the real code, not 124. No zombie is left on either path.
    • The TERM-then-KILL-after-5s order also covers a stopped (SIGSTOP) process.
  • The timeout/fallback/forget flow against the SKILL.md text: posted_now runs before forget_session, so a run that posted but exited non-zero (including 124) keeps its session; a not-set-up backend (rc 4) keeps it too; gh read failure counts as posted. All match the documented behavior.
  • forget_session paths for all three backends: correct worktree (cd before pwd -P-based helpers), guarded rm in each backend.
  • No Go builds or tests were run (not approved). No live claude/bob runs; the run_limited tests used sleep only.

Round-1 review fixes for #697.

- Forget a saved session only when the backend started. A failure before
  it (worktree lock, prompt) keeps the session for the next round.
- Check OFFLOAD_REVIEW_TIMEOUT once at startup, before any worktree exists.
- Mark a stopped run with a file, not exit code 124. A backend that exits
  124 by itself is no longer labelled a timeout.
- Append to review.log, so an earlier diagnostic stays.
- claude: forgetting a session also removes its transcript.
- Fix the function counts in the backend headers and SKILL.md.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 1 replies (commit b455aa7)

Reviewer 2, blocking:

  1. Session dropped when the backend never ran: fixed. attempt writes a ran marker just before the backend starts. run_reviewer forgets the session only when that marker exists. Tested: with the worktree lock held, round 2 failed before the backend ran, and both sessions stayed.
    • OFFLOAD_REVIEW_TIMEOUT is now checked once at startup. 30m exits 1 before any worktree exists.

Reviewer 2, non-blocking:
2. claude transcript leak: fixed. backend_forget_session now calls backend_cleanup.
3. Run that ends at the limit gets the "timed out" label: fixed. The label now comes from a marker file, not exit code 124.
4. A process that leaves its process group escapes the stop: not changed. No backend does that.

Reviewer 1, non-blocking:

  1. Stale function counts: fixed in the three backend headers and in SKILL.md.
  2. Exit 124 by itself reads as a timeout: fixed. Same marker file as item 3 above. Tested with a backend that exits 124.
  3. Timeout value checked in each attempt: fixed. Checked once at startup.
  4. Session dropped before the backend ran: fixed. Same fix as item 1 above.
  5. > review.log truncates earlier diagnostics: fixed. It uses >> now.
  6. No shell-test harness: not changed. The repo has none yet. I tested end to end with a fake gh and test backends.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.310 offload-review skill, @amiddavid's session resumed 1 of 2 2 of 2 b455aa7db069 approve

Verdict: approve

Findings

None. The new commit fixes every round-1 finding, and I found no new defect in it.

Earlier findings, re-checked

Mine (round 1, all non-blocking):

  1. Stale function counts in the headers and SKILL.md — fixed. All four headers now say "the optional ones listed below".
  2. A backend that exits 124 by itself reads as a timeout — fixed. run_limited now creates a marker file on a real stop, and both labels key on that marker, not on exit code 124. I verified it: a child that exits 124 on its own creates no marker and keeps "exit 124" in the tried line; a real timeout creates the marker.
  3. OFFLOAD_REVIEW_TIMEOUT validated in each attempt — fixed. Validated once at startup (scripts/offload-review.sh:96-97), before any worktree or session exists.
  4. Session dropped when the backend never ran — fixed. attempt writes a ran marker just before run_limited (line 342), and run_reviewer forgets the session only when that marker exists (line 375). A failure in ensure_wt, cd, or the prompt write keeps the session.
  5. > review.log truncation — fixed. It appends now (line 345), so the backend_has_session diagnostic stays.
  6. No shell-test harness — not changed. The author states end-to-end tests with a fake gh and test backends. Accepted; the repo has no harness to put one in.

Reviewer 2 (round 1):

  1. Blocking, session dropped before the backend ran — fixed, same ran marker and startup validation as my items 3 and 4.
  2. Claude transcript leak after backend_forget_session — fixed. It now calls backend_cleanup, which removes the transcript under ~/.claude/projects and the id file.
  3. Run ending at the limit mislabeled — fixed, same marker file.
  4. A process that leaves its process group escapes the stop — not changed, acknowledged by the author. No backend does that. Accepted.

Non-blocking

  1. scripts/offload-review.sh:96-97 — a bad OFFLOAD_REVIEW_TIMEOUT now blocks --cleanup. The validation runs before the cleanup branch (line 104). A user with a broken value in the environment cannot clean up the reviewer worktrees until they fix the variable. Cleanup does not run a review, so it does not need the timeout. Fix: move the check after the cleanup branch.
  2. scripts/offload-review/backends/claude.sh:46-48 — the two backends now differ on diagnosis. After a failed run, glm keeps its transcript in the worktree, but claude deletes its transcript under ~/.claude/projects. The comment says why (the id file would name a newer session at --cleanup time). The trade-off is deliberate; note it only.

What I checked

  • Last review: round 1, e373014, 2026-10-25T13:35:03Z
  • New commits read: 1 (b455aa7 fix(review): forget a session only after the backend ran)
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files)
  • New items since my last review: reviewer 2's round-1 review (its blocking finding matches my non-blocking items 3 and 4; I checked the fix), the author's reply comment (I checked each claim against the code), and commit b455aa7 (full diff and the changed code around it).
  • Read the updated scripts/offload-review.sh sections in the file, not only the diff: startup validation, run_limited, attempt, run_reviewer; and all three backend headers plus claude's backend_forget_session.
  • Ran the new run_limited signature in local bash (no Go): a child that exits 124 on its own creates no marker and returns 124; a real timeout kills the run and creates the marker. So the label cannot lie anymore.
  • Checked the marker wiring: ran and stopped markers live in $skipdir, names include reviewer and backend, no collision with the $skipdir/$b reason files for any real backend name; each backend runs at most once per reviewer per round, so no stale marker can mislabel a later attempt.
  • Checked review.log lifetime: ensure_wt's git clean removes it at each attempt, so >> appends only within one attempt — the intended fix.
  • Syntax-checked offload-review.sh and all three backends with bash -n: all pass.
  • No Go code changes, so no data-dependence update and no Go tests apply. Live tests were not approved; I ran no claude, bob, or gh review commands beyond reading the PR.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.310 offload-review skill, @amiddavid's session resumed 2 of 2 2 of 2 b455aa7db069 approve

Verdict: approve

Findings

None. My round-1 finding is fixed correctly, and the new commit adds no defect.

Round-1 findings

  1. forget_session dropped a session even when backend_run never ran — fixed.
    • OFFLOAD_REVIEW_TIMEOUT is now checked once at startup (offload-review.sh:96-97), before any gh call or worktree. Verified live: OFFLOAD_REVIEW_TIMEOUT=30m scripts/offload-review.sh 697 prints the error and exits 1, nothing else runs.
    • attempt writes a ran marker (offload-review.sh:342) immediately before run_limited, and run_reviewer forgets the session only when that marker exists (offload-review.sh:374). So a failure in ensure_wt, cd or the prompt write keeps the session. The marker lives in $skipdir, which is a fresh mktemp -d per script run, so no stale marker can leak into a later round. Names are per reviewer and backend, so the two concurrent reviewers cannot collide.
  2. Non-blocking, claude transcript leak — fixed. backend_forget_session now calls backend_cleanup (backends/claude.sh:49-51), which deletes the transcript under ~/.claude/projects and the sid file. Checked the context: forget_session runs the backend after cd "$wt", so claude_sid_file's pwd -P resolves to the right worktree. A later --cleanup finds no sid file and returns 0 early.
  3. Non-blocking, boundary "timed out" label — fixed. The label now comes from a stopped marker file, not exit code 124. Verified by running the new run_limited under bash 5.2 and bash 3.2: success → rc 0, no marker; a child that exits 124 by itself → rc 124, no marker, no timeout label; a real timeout → rc 124, marker created, whole group killed. This also fixes reviewer 1's item 2.
  4. Non-blocking, "all its processes" wording — not changed, as the author said. No backend puts a process in a new group. Agreed; nothing to do.

Reviewer 1's round-1 items

All six are addressed by the same commit. I checked each in the diff: the header counts in bob.sh, claude.sh, glm.sh and SKILL.md now say "optional ones listed below" (correct); the exit-124 and startup-validation items are the same fixes as mine above; >> review.log (offload-review.sh:345) keeps the backend_has_session diagnostics that 2>>review.log wrote earlier; the no-harness item is acknowledged, not changed, which matches repo practice (no shell-test harness exists). Agree with the author's handling.

The new commit, reviewed as a first review

  • run_limited's new <marker> argument matches its only call site (offload-review.sh:345); the marker is created only on the timeout path, after the group kill and wait, and both consumers (attempt:346, run_reviewer:375) test for the file, not the exit code.
  • The ran marker is written after the last pre-run step that can fail (the prompt write), so every failure that can still occur before backend_run keeps the session.
  • exit "$rc" still returns 124 on a real timeout, so the outer attempt ... || rc=$? plumbing is unchanged and correct.
  • review.log is cleaned by ensure_wt's git clean at the start of each round, so the switch from > to >> cannot grow the log across rounds.
  • The updated doc comments (run_limited, backend_forget_session, SKILL.md, backend headers) match the new behavior.

Non-blocking

None new.

What I checked

  • Last review: round 1, e373014, 2026-10-25T13:36:11Z
  • New commits read: 1 — b455aa7d fix(review): forget a session only after the backend ran
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files)
  • New items since my last review: the fix commit b455aa7d (read as a first review, above), and the author's round-1 replies comment of 2026-10-25T13:47:23Z (each reply checked against the code).
  • Ran the new run_limited under /opt/homebrew/bin/bash 5.2 and /bin/bash 3.2, in the same nesting as the real script: marker created only on a real timeout; a self-exit-124 creates no marker; the group kill still stops the whole run; exit codes propagate.
  • Ran the startup validation live with OFFLOAD_REVIEW_TIMEOUT=30m: exits 1 with the message before any network call or worktree change.
  • Re-read the changed sections of offload-review.sh (validation, run_limited, attempt, run_reviewer, forget_session), all three backend files and SKILL.md at the new head.
  • No Go builds or tests were run (not approved). No live claude/bob runs; the run_limited tests used sleep and exit only.

@amiddavid
amiddavid merged commit a56d814 into main Oct 25, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Oct 25, 2026
amiddavid added a commit that referenced this pull request Oct 25, 2026
fix(review): let --cleanup run with a bad OFFLOAD_REVIEW_TIMEOUT

The OFFLOAD_REVIEW_TIMEOUT check ran before the --cleanup branch. A bad
value made `--cleanup` exit 1, although cleanup runs no reviewer.

Move the check after the --cleanup branch. It still runs before any
reviewer worktree or session is touched.

Follow-up to #697. Listed in #658.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant