[Bug] NameError in orchestrator error handler crashes Bug Hunter review on agent failure
Bug Description
Ran /code-review ultra 936 against PR stratis-technology/stratOS#936. The remote Bug Hunter review authenticated and started, then crashed after ~24s with 0 findings — and the root cause is in the orchestrator's own error handler, not the reviewed PR. A worker-agent subprocess exited 1, and the handler then threw:
NameError: name 'stderr_lines' is not defined. Did you mean: 'stderr_file'?
at bughunter/orchestrator.py:4536
That undefined-variable bug turned a recoverable agent failure into a fatal crash, aborting the whole run (all 5 agents cancelled, exit 1).
It counted as "Free ultrareview 1 of 3" despite delivering nothing — requesting that credit be refunded. Cloud session: session_01VAa8bsC2U3rehymxdqGybw.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.1.163
- Feedback ID: 0af4c12f-d6fb-4d75-9f1b-2752578a683a
Errors
[{"error":"Error: CreateSession 400: {\"error\":{\"message\":\"GitHub repository access check failed — re-authorize GitHub in settings\",\"reason\":\"github_repo_access_denied\",\"type\":\"invalid_request_error\"},\"request_id\":\"req_011CbkbMvjUjfjx3zMdMzuPv\",\"type\":\"error\"}\n at Wn (/$bunfs/root/src/entrypoints/cli.js:3898:3312)\n at async uKq (/$bunfs/root/src/entrypoints/cli.js:8517:715)\n at async bh3 (/$bunfs/root/src/entrypoints/cli.js:8607:51)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8609:402)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-05T18:33:43.564Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗