qwen-code/packages
Nothing Chan 5f41b166e6
fix(cli): unblock /clear after task cancellation and surface the blocked reason (#5949) (#6499)
/new (alias of /clear) silently did nothing when typed right after
cancelling a request, for two stacked reasons:

- hasBlockingBackgroundWork() gated on the registry's
  hasUnfinalizedTasks(), which counts cancelled-but-not-yet-finalized
  entries. That clause exists for the headless holdback loop (every
  task_started must pair with a task_notification), but /clear and
  session resume abort-and-reset the registry right after the gate —
  suppressing that very notification — so blocking on it only made the
  switch fail in the window between cancel and finalizeCancelled().
  The gate now keys off a new BackgroundTaskRegistry.hasRunningTasks(),
  which counts only entries still actually executing; the headless
  holdback keeps using hasUnfinalizedTasks() unchanged.
- When genuinely blocked, interactive mode showed only a transient
  debug line while non-interactive returned a proper error. Interactive
  now returns the same visible error message, so a blocked /clear no
  longer looks like a no-op.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 14:52:18 +00:00
..
acp-bridge fix(memory): allow forget to remove user managed memory (#6432) 2026-07-08 09:51:36 +00:00
audio-capture chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
channels feat(channels): add dmPolicy config to disable private/DM messages (#6521) 2026-07-08 12:01:10 +00:00
chrome-extension chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
cli fix(cli): unblock /clear after task cancellation and surface the blocked reason (#5949) (#6499) 2026-07-08 14:52:18 +00:00
core fix(cli): unblock /clear after task cancellation and surface the blocked reason (#5949) (#6499) 2026-07-08 14:52:18 +00:00
cua-driver fix(cua-driver): migrate Windows scripts + README rewrite (#6515) 2026-07-08 06:07:11 +00:00
desktop fix(desktop): preserve glued automation history records (#6344) 2026-07-05 23:53:49 +00:00
mobile-mcp chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
sdk-java fix(core): Align MCP OAuth guidance and docs (#5589) 2026-06-24 07:09:53 +08:00
sdk-python doc[sdk-python] Expand Python SDK usage documentation (#3995) 2026-05-12 15:27:00 +08:00
sdk-typescript feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
vscode-ide-companion chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
web-shell feat(web-shell): expose external split controls (#6523) 2026-07-08 12:02:10 +00:00
web-templates chore(release): v0.19.7 (#6484) 2026-07-07 17:25:48 +00:00
webui feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00
zed-extension chore(deps): upgrade ink 6.2.3 → 7.0.2 + bump Node engine to 22 (#3860) 2026-05-11 17:29:50 +08:00