qwen-code/packages/sdk-java
Shaojin Wen a8cea7b7ab
fix(sdk-java): accept ERROR terminal in teardown E2E to fix flaky race (#8354)
The teardown test DELETEs the session while a prompt is pending on a
permission request. There is a race between the daemon delivering a
cancelled terminal and the session being destroyed. Under CI load the
session can be destroyed first, producing an ERROR terminal instead of
COMPLETE/cancelled.

Accept both outcomes, matching the pattern already used by
cancelledPromptReceivesReliableTerminal for the same race.
2026-08-02 03:34:47 +00:00
..
client fix(sdk-java): correct TIMEOUT_30_MINUTES to 30 minutes (#7188) 2026-07-18 22:36:22 +00:00
qwencode fix(sdk-java): accept ERROR terminal in teardown E2E to fix flaky race (#8354) 2026-08-02 03:34:47 +00:00