Skip to content

Run button only executes comments, ignores actual commands in code blocks #5724

Closed
@saimadib

Description

@saimadib

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue version: 
- IDE version: VSCode 1.100.2
- Model: Claude 3.7 Sonnet
- config:
  

  
  OR link to assistant in Continue hub:

Description

When using Continue, the run button in code blocks only processes comments (lines starting with #) but fails to execute the actual commands.

I have recorded a video demonstrating this issue. The video shows that when clicking on the run button, only the comment is processed while the actual command is ignored.

https://drive.google.com/file/d/1KNHq5AOpi9S2MVea1OsGWzjxjo1Jfm57/view?usp=sharing

To reproduce

  1. Open Continue in VS Code/JetBrains IDE
  2. Ask the assistant to help set up the project locally
  3. The assistant responds with a code block containing installation commands
  4. Click the "Run" button on the code block containing:
# From the root of the repository
npm run install-all-dependencies
  1. Observe that only the comment is executed, not the actual command

Log output

Metadata

Metadata

Assignees

Labels

ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions