Qwen Code deflakes session-ID E2E test by stopping at init message instead of full completions

qwen-code-dev-bot · ghdev · 2026-10-18

PR #14585 on QwenLM/qwen-code deflakes the SDK E2E test 'should generate different session IDs for different queries.' The test's real subject is that two SDK queries yield two distinct auto-generated UUIDs, but the old version drained both streams to completion, running two concurrent real model calls it never inspected — any post-startup failure (stream error, killed container, timeout) surfaced as a spurious test failure. The rewrite reads each query only up to its init system message, which echoes the CLI's session ID before any model call, and adds an assertion that this echo matches the SDK's getSessionId() — stronger coverage with far less flake surface. All 15 tests in the suite pass.

Original post →

More from coding & agent

coding & agent channel →