continue icon indicating copy to clipboard operation
continue copied to clipboard

Terminal command parsing

Open chezsmithy opened this issue 8 months ago • 1 comments

Validations

  • [x] I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • [x] I'm not able to find an open issue that requests the same enhancement

Problem

The current terminal command parsing for the send to terminal button assumes the command is on the first line. Some suggested terminal commands span multiple lines and are more complex.

Also sometimes there are multiple terminal commands in a single response.

Solution

Improve the parsing logic to find the entire terminal command.

Improve the system message to always split the suggested commands into separate blocks if possible.

chezsmithy avatar Apr 27 '25 16:04 chezsmithy

Improve the system message to always split the suggested commands into separate blocks if possible.

This feels like the root solution, I'm not sure how feasible it is to handle it just with parsing.

I know in a comment on another issue of yours I mentioned we might not want to touch the system prompt for terminal related outputs, but given that this particular problem affects both Agent and Chat mode, it might make sense to move these instructions into the system message.

Patrick-Erichsen avatar Apr 28 '25 03:04 Patrick-Erichsen

#5744 should fix this! 🥳

chezsmithy avatar May 23 '25 07:05 chezsmithy