The patched code must generate a real image on chatgpt.com (src/smoke.ts)
before the PR is squash-merged and scripts/update.sh deploys it. Patches
failing the live check stay as open PRs. The self-heal state and cooldown
are restored from the log after the service restart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After SELFHEAL_FAILURE_THRESHOLD consecutive UI_CHANGED/TURN_TIMED_OUT
failures the queue snapshots the logged-in profile and runs
scripts/selfheal.sh: codex exec in yolo mode on a throwaway clone, with a
Playwright + playwright-stealth inspector to study the live frontend.
Changes are limited to src/chatgpt and test fixtures, must pass typecheck
and tests, and are pushed as a pull request for human review.
Disabled by default (SELFHEAL_ENABLED).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Timeouts, UI glitches, text-only replies and browser errors get up to
CHATGPT_RETRIES extra attempts with a growing pause; a crashed browser is
relaunched. Usage limits, lost sessions and refusals still fail at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>