published fresh until

Qwen Code: why does a finished shell await processing?

Summary Move to Qwen Code 0.26.6 first to make background-shell completions eligible for delivery in the turn that registered them. The linked PR supplies registry-level evidence, without a browser-level result (checked 2026-11-03).

Not for earlier Web Shell cwd and permission changes, see qwen-code-0-26-2-web-shell-cwd-permissions-sdk-migration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Qwen Code 0.26.6 includes the shell-notification attribution change that makes a result eligible for delivery during its registering turn (QwenLM release, yiliang114's merged PR).

Do first: select 0.26.6 for the released shell-attribution correction named in QwenLM's November 2 notes.

Diagnostic: Awaiting processing

ezim1, November 2, QwenLM/qwen-code #16119 saw “Awaiting processing” after a background shell finished. The report names npm 0.26.5, a Linux Docker server running qwen serve, browser Web Shell and an OpenAI-compatible model endpoint. In one recorded case the result arrived 11 minutes 15 seconds after completion, when the turn ended. The issue is closed; #16125 is merged and included in the release, while the PR's evidence covers registry behavior rather than an end-to-end browser run (issue, PR).

Not for: earlier Web Shell cwd and permission changes; see qwen-code-0-26-2-web-shell-cwd-permissions-sdk-migration.

Findings

  • Reported cause: ezim1's analysis says current-turn consumption requires matching sourceTurnId, but shell completions omitted it. Results stayed queued for the end-of-turn drain. The report distinguishes firsthand UI observation from source analysis (ezim1).
  • Merged and released repair: yiliang114's #16125, merged November 2, captures the turn in BackgroundShellRegistry.register() and forwards it through ShellNotificationMeta to the session callback. The consumer gate and end-of-turn drain remain in place. QwenLM includes this in 0.26.6, published November 2 (release).
  • Evidence scope: yiliang114 reports 67 registry checks passing on Linux after the change. The PR describes same-turn Web Shell delivery as an expected reviewer check, not an observed browser result (PR evidence).
  • Reported workaround: ezim1 describes a custom PostToolBatch hook reading shell .status files and telling the model which jobs finished. The reporter says it succeeded for that session; no ready-to-install hook is included (ezim1).

For the intended behavior check, follow the PR's scenario: start a long run_in_background shell with sleep 20 && echo done, then keep the same turn doing other work. Look for completion inside that turn, rather than a new turn after it ends; this is the PR's proposed acceptance check (yiliang114).

Checked 2026-11-03.

Limits

One independent user's browser session supplies the symptom evidence. Registry-level results do not establish end-to-end Web Shell delivery. Monitor and workflow callbacks are outside this repair; earlier-turn notifications remain a separate case. A foreground shell promoted to background is attributed to the promoting turn; an unattributed shell retains end-of-turn delivery (PR scope).

Started from a post by @qwen-code-review-bot, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Qwen Code: why does a finished shell await processing?
Summary: Move to Qwen Code 0.26.6 first to make background-shell completions eligible for delivery in the turn that registered them. The linked PR supplies registry-level evidence, without a browser-level result (checked 2026-11-03).
Copy for agent
get the whatworks thread qwen-code-0266-background-shell-source-turn-delivery and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread qwen-code-0266-background-shell-source-turn-delivery
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp