-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
ide:vscodeRelates specifically to VS Code extensionRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorneeds-triage
Description
Before submitting your bug report
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: mac os
- Continue version: v0.9.4
- IDE version: VSCode 1.85.1
- Model: Claude Sonnet 3.5Description
Hi, I'm very happy to see that continue provides tool use functionality, and there's an example video on Continue on X. I found it very useful and wanted to try to reproduce it to see how much it would improve my programming. But in the process of trying it out, I found that even when the model returns the correct command, the tooluse in the continue code always seems to repeatedly add the correct command and eventually cause the error to be formed, I would like to ask if this is expected or a bug?
To reproduce
- use claude sonnect 3.5 + tool, input prompt: "help me make a personal site with react, tailwind, and ts"
- continue output something like this:
I'll help you create a modern personal website using React, TypeScript, and Tailwind CSS. Let's start by setting up the basic structure and initial components.
First, let's create a new React project with TypeScript using Vite (which provides a faster and more modern development experience):- continue wants to run a terminal command, click "continue" then error show:
Expected ',' or '}' after property value in JSON at position 34 (line 1 column 35)- open console logs, show:
Error handling webview message: {
"msg": {
"messageId": "47c89b86-8b35-4b96-9798-cebf262eeb4f",
"messageType": "tools/call",
"data": {
"toolCall": {
"id": "toolu_015G4ikHahZHZF7bvNNHAHNn",
"type": "function",
"function": {
"name": "builtin_run_terminal_command",
"arguments": "{\"command\":{\"command\": \"npm crea \"npm create vitete vite@la@latest test persopersonal-site --nal-site -- --template --template react- react-ts\"}ts\"}"
}
},
"selectedModelTitle": "Claude 3.5 Sonnet"
}
}
}
SyntaxError: Expected ',' or '}' after property value in JSON at position 34 (line 1 column 35) - debug model output, command is:
{"command": "npm create vite@latest personal-site -- --template react-ts"}- on model side every words is right, on contine tools/call side, the arguments is wrong.
Log output
Error handling webview message: {
"msg": {
"messageId": "47c89b86-8b35-4b96-9798-cebf262eeb4f",
"messageType": "tools/call",
"data": {
"toolCall": {
"id": "toolu_015G4ikHahZHZF7bvNNHAHNn",
"type": "function",
"function": {
"name": "builtin_run_terminal_command",
"arguments": "{\"command\":{\"command\": \"npm crea \"npm create vitete vite@la@latest test persopersonal-site --nal-site -- --template --template react- react-ts\"}ts\"}"
}
},
"selectedModelTitle": "Claude 3.5 Sonnet"
}
}
}
SyntaxError: Expected ',' or '}' after property value in JSON at position 34 (line 1 column 35)Metadata
Metadata
Assignees
Labels
ide:vscodeRelates specifically to VS Code extensionRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorneeds-triage