mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
fix: include --acp flag in tool exclusion check
Fixed #1498 The tool exclusion logic only checked --experimental-acp but not --acp, causing edit, write_file, and run_shell_command to be incorrectly excluded when VS Code extension uses --acp flag in ACP mode.
This commit is contained in:
parent
985f65f8fa
commit
cbef5ffd89
1 changed files with 4 additions and 5 deletions
|
|
@ -874,11 +874,10 @@ export async function loadCliConfig(
|
|||
}
|
||||
};
|
||||
|
||||
if (
|
||||
!interactive &&
|
||||
!argv.experimentalAcp &&
|
||||
inputFormat !== InputFormat.STREAM_JSON
|
||||
) {
|
||||
// ACP mode check: must include both --acp (current) and --experimental-acp (deprecated).
|
||||
// Without this check, edit, write_file, run_shell_command would be excluded in ACP mode.
|
||||
const isAcpMode = argv.acp || argv.experimentalAcp;
|
||||
if (!interactive && !isAcpMode && inputFormat !== InputFormat.STREAM_JSON) {
|
||||
switch (approvalMode) {
|
||||
case ApprovalMode.PLAN:
|
||||
case ApprovalMode.DEFAULT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue