We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1beba3 commit c8fa284Copy full SHA for c8fa284
packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts
@@ -273,8 +273,8 @@ export class Messenger {
273
toolUse.input = JSON.parse(toolUseInput)
274
} catch (error: any) {
275
getLogger().error(`JSON parse error for toolUseInput: ${toolUseInput}`)
276
- // set toolUse.input to the raw value
277
- toolUse.input = toolUseInput
+ // set toolUse.input to be empty valid json object
+ toolUse.input = {}
278
error.message = `Tool input has invalid JSON format: ${error.message}`
279
// throw it out to allow the error to be handled in the catch block
280
throw error
0 commit comments