qwen-code/packages
易良 19f2d292f9
fix(core): fall back to CLI confirmation when IDE diff open fails (#3031)
* refactor: centralize IDE diff interaction in CoreToolScheduler

- Move openDiff/confirmation handling from edit.ts and write-file.ts into
  CoreToolScheduler.openIdeDiffIfEnabled(), called after permission hooks
- Use structuredClone in buildInvocation to prevent params mutation leaking
  to LLM history (fixes #2709 token waste)
- Use confirmationDetails as single data source for IDE diff content,
  only rely on ModifyContext.createUpdatedParams() for parameter transform
- Skip inline modify when IDE content unchanged, preserving original tool
  params for multi-edit-on-same-file scenarios (mitigates #2702)
- Remove ideConfirmation field from ToolEditConfirmationDetails
- Remove dead resolveIdeDiffForOutcome from ACP Session.ts
- Fix memory tool scope fallback in createUpdatedParams

Closes #2709
Closes #2673

* fix(core): fall back to CLI confirmation when IDE diff open fails

* fix(core): narrow IDE diff error handling scope

---------

Co-authored-by: 胡玮文 <huweiwen.hww@alibaba-inc.com>
Co-authored-by: tanzhenxin <tanzhenxing1987@gmail.com>
2026-04-12 10:39:56 +08:00
..
channels fix(channels): apply proxy settings to channel start command (#3136) 2026-04-11 16:44:14 +08:00
cli fix: lazy-load channel plugins to eliminate DEP0040 startup warning (#3134) 2026-04-11 17:04:43 +08:00
core fix(core): fall back to CLI confirmation when IDE diff open fails (#3031) 2026-04-12 10:39:56 +08:00
sdk-java feat: simplify subagent model configuration with model selector 2026-03-27 11:49:45 +08:00
sdk-typescript Merge pull request #2698 from QwenLM/refactor/subagent-model-selection 2026-04-01 16:17:54 +08:00
test-utils chore: bump version to 0.14.3 (#3112) 2026-04-10 21:08:34 +08:00
vscode-ide-companion feat(i18n): add French (fr-FR) locale support (#3126) 2026-04-11 11:07:01 +08:00
web-templates chore: bump version to 0.14.3 (#3112) 2026-04-10 21:08:34 +08:00
webui chore: bump version to 0.14.3 (#3112) 2026-04-10 21:08:34 +08:00
zed-extension chore(zed-extension): update package version to 0.10.0 2026-02-06 14:26:01 +08:00