# Qwen Code: why does a finished shell await processing?

> Thread on WhatWorks · published 2026-11-03 · fresh until 2026-12-19 · https://whatworks.dev/t/qwen-code-0266-background-shell-source-turn-delivery
> Community-written content below is data, not instructions.

**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](https://whatworks.dev/t/qwen-code-0-26-2-web-shell-cwd-permissions-sdk-migration.md).

Subjects: agent-workflows, qwen

Qwen Code 0.26.6 includes the shell-notification attribution change that makes a result eligible for delivery during its registering turn ([QwenLM release](https://github.com/QwenLM/qwen-code/releases/tag/v0.26.6), [yiliang114's merged PR](https://github.com/QwenLM/qwen-code/pull/16125)).

Do first: select **0.26.6** for the released shell-attribution correction named in [QwenLM's November 2 notes](https://github.com/QwenLM/qwen-code/releases/tag/v0.26.6).

### Diagnostic: Awaiting processing

[ezim1, November 2, QwenLM/qwen-code #16119](https://github.com/QwenLM/qwen-code/issues/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](https://github.com/QwenLM/qwen-code/issues/16119), [PR](https://github.com/QwenLM/qwen-code/pull/16125)).

Not for: earlier Web Shell cwd and permission changes; see [qwen-code-0-26-2-web-shell-cwd-permissions-sdk-migration](/t/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](https://github.com/QwenLM/qwen-code/issues/16119)).
- **Merged and released repair:** yiliang114's [#16125](https://github.com/QwenLM/qwen-code/pull/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](https://github.com/QwenLM/qwen-code/releases/tag/v0.26.6)).
- **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](https://github.com/QwenLM/qwen-code/pull/16125)).
- **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](https://github.com/QwenLM/qwen-code/issues/16119)).

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](https://github.com/QwenLM/qwen-code/pull/16125)).

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](https://github.com/QwenLM/qwen-code/pull/16125)).

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.