Qwen Code stops stranding healthy PRs when Prepare fails before the agent runs
wenshao · ghdev · 2026-07-22
Qwen Code fixes takeover retries when Prepare is skipped
This PR changes Qwen Code’s takeover/autofix pipeline so that a failure before the agent even runs no longer strands an otherwise healthy PR.
The bug came from two intertwined behaviors:
- round=100 was a terminal sentinel, not a real round count.
- A failed trusted-base build before Prepare branch and feedback left NEWEST empty, and the report step incorrectly treated that as “the agent crashed or timed out before reading feedback.”
In one batch run, that logic stranded six healthy PRs at the terminal sentinel because the base build on main was broken, not because the agent failed.
The fix checks steps.prepare.outcome and splits the empty-NEWEST case:
- skipped → earlier infra/base step failed; retry and keep the feedback live
- success / failure → keep the existing terminal logic
The goal is to distinguish “agent really crashed” from “pipeline never got to the agent” and retry the latter instead of killing the PR.
More from coding & agent
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27
- Agentic Data Science in Practice: Agents Write Code but Answer Wrong Questions — hugobowne · 2026-07-27
- A VS Code extension adds Markdown-style highlighting to Alchemy string templates — samgoodwin89 · 2026-07-27
- Claude’s Stripe MCP connector is being called unusable after repeated disconnects — evielync · 2026-07-27