mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
Merge pull request #2690 from LaZzyMan/fix/acp-permission-flow
fix(acp): align permission flow across clients
This commit is contained in:
commit
f6c273d0a0
33 changed files with 2092 additions and 1101 deletions
|
|
@ -78,6 +78,12 @@ export const ToolConfirmationMessage: React.FC<
|
|||
}, [config]);
|
||||
|
||||
const handleConfirm = async (outcome: ToolConfirmationOutcome) => {
|
||||
// Call onConfirm before resolving the IDE diff so that the CLI outcome
|
||||
// (e.g. ProceedAlways) is processed first. resolveDiffFromCli would
|
||||
// otherwise trigger the scheduler's ideConfirmation .then() handler
|
||||
// with ProceedOnce, racing with the intended CLI outcome.
|
||||
onConfirm(outcome);
|
||||
|
||||
if (confirmationDetails.type === 'edit') {
|
||||
if (config.getIdeMode() && isDiffingEnabled) {
|
||||
const cliOutcome =
|
||||
|
|
@ -88,7 +94,6 @@ export const ToolConfirmationMessage: React.FC<
|
|||
);
|
||||
}
|
||||
}
|
||||
onConfirm(outcome);
|
||||
};
|
||||
|
||||
const isTrustedFolder = config.isTrustedFolder();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue