Qwen Code adds a lease-based fence for concurrent ACP session writers

doudouOUC · ghdev · 2026-07-19

What this PR does

This PR fixes an ACP/session race in Qwen Code by fencing concurrent writers.

Core idea

Behavior changes

Why it matters

The incident described in the PR created sibling branches because one process wrote tool results while another reloaded the same persisted session from a stale tail. This fix rejects a second cooperating writer before model work begins, preserving transcript consistency.

Original post →

More from coding & agent

coding & agent channel →