Skip to content

The demo usage of Claude Sonnet 3.5 + tool cannot be reproduced. #3474

@moqimoqidea

Description

@moqimoqidea

Before submitting your bug report

Relevant environment info

- OS: mac os
- Continue version: v0.9.4
- IDE version: VSCode 1.85.1
- Model: Claude Sonnet 3.5

Description

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

  1. use claude sonnect 3.5 + tool, input prompt: "help me make a personal site with react, tailwind, and ts"
  2. 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):
  1. 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)
  1. 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) 
  1. debug model output, command is:
{"command": "npm create vite@latest personal-site -- --template react-ts"}
  1. 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 extensionkind:bugIndicates an unexpected problem or unintended behaviorneeds-triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions