mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
feat(plan): add "Yes, restore previous mode" option when exiting plan mode (#3008)
Some checks are pending
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
Some checks are pending
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
* feat(plan): add "Yes, restore previous mode" option when exiting plan mode When exiting plan mode, users previously had no way to restore their original approval mode (e.g. YOLO). Add a new default option that restores the pre-plan approval mode, with a dynamic label showing which mode will be restored. Closes #3002 * test: add fallback test for RestorePrevious when no prePlanMode recorded * fix: handle RestorePrevious in telemetry and ACP mode notification - Add RestorePrevious to telemetry decision mapping as ACCEPT - Fix sendCurrentModeUpdateNotification to read actual mode for RestorePrevious instead of defaulting to 'default' * test: add plan confirmation tests for RestorePrevious in permissionUtils
This commit is contained in:
parent
1356c05e3f
commit
9c0bbfba6c
14 changed files with 142 additions and 0 deletions
|
|
@ -302,6 +302,13 @@ export const ToolConfirmationMessage: React.FC<
|
|||
const planProps = confirmationDetails;
|
||||
|
||||
question = planProps.title;
|
||||
options.push({
|
||||
key: 'restore-previous',
|
||||
label: t('Yes, restore previous mode ({{mode}})', {
|
||||
mode: planProps.prePlanMode ?? 'default',
|
||||
}),
|
||||
value: ToolConfirmationOutcome.RestorePrevious,
|
||||
});
|
||||
options.push({
|
||||
key: 'proceed-always',
|
||||
label: t('Yes, and auto-accept edits'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue