The Research Report
Qwen Code Weekly Autofix Pr Gates Attach
What shipped
Qwen Code's weekly update for October 29, 2026 covers three stable releases — v0.26.1, v0.26.2, v0.26.3 — with 357 PRs merged, anchored by three features for keeping agent work alive.
/autofix-pr <PR number> puts a watch on an open pull request, running on your machine and looking every two minutes, only at changes that are new. When a build fails it reads the failed job's log, makes the change, verifies it with the repository's own checks, then commits, pushes, and replies in the PR with what it changed. Review comments get a response to each point, with the ones it cannot fix marked and left for you; when the main branch moves and causes a conflict, it merges others' work in first, then runs the repository's checks again. Every edit happens in its own worktree, so your working directory stays untouched. /autofix-pr status and /autofix-pr resume <PR number> keep a watch alive across sessions: a watch started with auto-execution runs fixes in the background; a normal start still follows your approval settings.
Scheduled tasks gained a gate: an ordinary command you choose, run first each time the task is due, with the contract "stay quiet when nothing happened and print only when something did." If the check finds nothing, the round ends before the model is invoked; if it prints, its output goes to the model along with the work. The post's example: a task checks a build every two minutes, and a gate script that only queries the build result means the eight healthy runs out of ten cost nothing, while the failed run hands the model one line to act on. The gate has a field in the Web Shell scheduled-task form, the task card shows its most recent result, Run now executes the gate first, and the PR watch is built on this same gate.
qwen attach --session <session id> rejoins a background session from another terminal: everything said earlier shows up, and each line typed goes over as a new message. The session id is the string after /session/ in that session's Web Shell address. The post is precise about the limit: what you rejoin is the output stream and one place to type — not the completions, history scrolling, or approval cards of the normal terminal. It builds on last week's qwen daemon commands, which let sessions outlive their terminal.
Web Shell gained a PR watch page listing each project's watch status, how many pushes it has made, and the items waiting on a human decision; for a watch from the current session, the page takes you back into that conversation or starts a stop. Before a watch begins, uncommitted changes or never-pushed commits on the PR branch stop it. The rest of the round: a Recent sessions sidebar section, background agents and scheduled tasks collapsing under their parent conversation, workspaces sortable and creatable from a pasted Git URL, qwen memory import codex --dry-run for importing Codex-built memories, and experimental managed serving via qwen serve --managed --open (Node.js 22+, Java 21, your own computer only).
Why it matters
The gate is the piece worth copying even if you never install Qwen Code. A scheduled agent that fires every two minutes spends most of its runs discovering nothing, and each of those no-op rounds still spends tokens on a model invocation; moving the go/no-go test into a plain shell command whose silence means "nothing to do" turns that cost curve into a cheap deterministic check every round, with the expensive model only when the check speaks. The design composes, too: the PR watch is the same gate with a build-result query attached — the mechanism is general enough to build other watchers on.
/autofix-pr shows the verification-first discipline that separates this from naive "AI fixes your CI" tooling. The agent reads the actual failed job's log, proposes a change, and does not push until the repository's own checks pass on the fix — the same CI that failed the PR is the arbiter of whether the fix is real. The isolation choices are equally concrete: a separate worktree for every edit, and a pre-flight refusal to start on a dirty branch. Those two decisions answer what makes teams distrust this tool class: clobbered working state and unverified pushes.
qwen attach closes the usability gap that background daemons create. A service that survives its terminal is only useful if you can get back to it, and until now that meant opening Web Shell in a browser; the rejoin is now a terminal command, with the honest note that you get the stream and a prompt, not the full interface.
Adoption / Practical steps
- Upgrade with the post's stated path:
npm i @qwen-code/qwen-code@latest -g— the release notes name no pip package, so npm is the only documented channel. - To put a PR on watch:
/autofix-pr <PR number>. Check/autofix-pr status, and use/autofix-pr resume <PR number>to pick the follow-up back up later. Choose auto-execution only if you want fixes pushed without approval; a normal start follows your approval settings. - Clean the branch first: the watch refuses to begin while the PR branch has uncommitted changes or never-pushed commits.
- Add a gate to any recurring task that usually finds nothing: write (or ask Qwen Code to write) a short script that prints only on the condition you care about, attach it in the scheduled-task form, and test with
Run now. - Rejoin long sessions from any terminal with
qwen attach --session <id>, where the id follows/session/in the Web Shell address — over SSH, how you check a job left on a dev machine. - Migrating from Codex:
qwen memory import codex --dry-runpreviews the passages and scope first. - The managed path (
qwen serve --managed --open) is experimental and local-only — no hosted deployment is specified. Managed sessions accept queued interruptions and per-session allow/ask/deny permission rules.
References
- https://qwenlm.github.io/qwen-code-docs/en/blog/updates/weekly-update-2026-10-29 (weekly release notes, read in full)