mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 13:04:49 -07:00
feat(plan): refactor ToolConfirmationPayload to union type (#17980)
This commit is contained in:
@@ -70,7 +70,7 @@ export class ToolModificationHandler {
|
||||
): Promise<ModificationResult | undefined> {
|
||||
if (
|
||||
toolCall.confirmationDetails.type !== 'edit' ||
|
||||
!payload.newContent ||
|
||||
!('newContent' in payload) ||
|
||||
!isModifiableDeclarativeTool(toolCall.tool)
|
||||
) {
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user