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:

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:

The goal is to distinguish “agent really crashed” from “pipeline never got to the agent” and retry the latter instead of killing the PR.

Original post →

More from coding & agent

coding & agent channel →