mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
feat: Add permission options for 'ask_user_question' confirmation
This commit is contained in:
parent
197d26c07a
commit
fbbe21da67
1 changed files with 13 additions and 0 deletions
|
|
@ -1015,6 +1015,19 @@ function toPermissionOptions(
|
|||
kind: 'reject_once',
|
||||
},
|
||||
];
|
||||
case 'ask_user_question':
|
||||
return [
|
||||
{
|
||||
optionId: ToolConfirmationOutcome.ProceedOnce,
|
||||
name: 'Submit',
|
||||
kind: 'allow_once',
|
||||
},
|
||||
{
|
||||
optionId: ToolConfirmationOutcome.Cancel,
|
||||
name: 'Cancel',
|
||||
kind: 'reject_once',
|
||||
},
|
||||
];
|
||||
default: {
|
||||
const unreachable: never = confirmation;
|
||||
throw new Error(`Unexpected: ${unreachable}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue