In this article
Exercise cooperative and stuck work separately on the selected loop; a bounded cancelled run must reject late state writes and avoid launching new tools.
The November 15 Qwen Code v0.27.4 release includes cancellation events and a ten-second settlement cap for the event-bus agent loop. This is part of an experimental execution path, not a blanket deadline for all work in every surface. The important acceptance case is late activity from a tool or model that ignores cancellation.
Record which loop the surface uses
Inspect the experiment settings and effective surface configuration before timing cancellation. Keep the procedural path as a separate control. A result from one kernel cannot establish identical behavior in another path, especially when settlement caps differ. Use a harmless deterministic tool so the test records cancellation behavior rather than provider variability, and preserve the execution-mode settings alongside the observed lifecycle events.
Completed batch results have an identity
Cancel a batch after one harmless tool result has completed but before another finishes. Inspect which results remain available and how the run is marked. The implementation preserves completed results where the ordinary cancellation path permits it. A UI should not call those partial observations a completed task. Track each tool identity so preserving useful evidence cannot be confused with running the unfinished tool again during cleanup.
Late completion must not revive the run
Use a synthetic tool that ignores abort until after the settlement boundary, then returns a distinctive value and proposes another action. Assert no late state mutation, callback delivery or new tool launch. Observe the original operation separately: stopping the run’s authority does not prove an external process immediately stopped. The fixture should make that distinction visible without executing any real consequential action.
Repeated cancellation needs cleanup evidence
Repeat short runs on a long-lived session signal and inspect whether listeners or timers accumulate. Then start a fresh prompt on the same chat and verify normal progress. This proposed application trial checks lifecycle cleanup and continuity around the shipped change. Report the tested loop, retained outputs and late-event handling; avoid presenting the ten-second cap as a universal guarantee for provider compute, shell-process termination or every legacy execution path.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.