Summary

Qwen Code’s latest nightly release adds a core fix that closes the tool_use to tool_result invariant across failure paths, alongside smaller formatting and packaging fixes. The change directly targets a class of agent-execution failures where tool-calling state can become malformed.

What changed

Qwen Code released v0.16.0-nightly.20260522.48b0a8bfc with a core fix for tool-call/result invariants and smaller VS Code and notebook formatting fixes.

Why it matters

Tool-calling invariants are foundational for reliable agent execution, especially in long-running or multi-step workflows. Fixing them at the runtime level reduces a subtle but high-cost category of failures that can derail downstream automation and debugging.

Evidence excerpt

The nightly release notes say Qwen Code fixed the tool_use to tool_result invariant across all failure paths, alongside packaging and formatting fixes.

Sources