Qwen autofix now retries model API errors instead of stranding managed PRs

wenshao · ghdev · 2026-07-20

What this PR fixes

This PR prevents a model API error from stranding a managed PR in the qwen autofix workflow.

Root cause

When the agent subprocess died on a model-side API error — such as 403 access denied, 429 quota, or 5xx — the failure was treated as if the agent had already evaluated the feedback. run-agent.mjs wrote failure.md and handoff.md, which advanced the feedback watermark. The next scan then saw no new work and never retried, leaving the PR stranded.

New behavior

Why it matters

This turns a transient model access or quota failure into a retriable condition instead of silently marooning the PR until a human manually re-arms it.

Original post →

More from coding & agent

coding & agent channel →