Terminal command parsing
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.
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.
#5744 should fix this! 🥳