feat(plan): refactor ToolConfirmationPayload to union type (#17980)

This commit is contained in:
Jerop Kipruto
2026-01-30 14:51:45 -05:00
committed by GitHub
parent 6396ab1ccb
commit 71308caf05
8 changed files with 127 additions and 15 deletions
+1 -1
View File
@@ -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;