continue
continue copied to clipboard
[CON-223] Cmd/Ctrl + Shift + Backspace doesn't stop streaming of diff
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS:Mac
- Continue:0.9.91
- IDE:VS Code
Description
When the diff view is briefly going away it is because I am using the cmd+shift+backspace shortcut to cancel the generation, but after a second it comes back because streaming was not successfully cancelled.
https://github.com/continuedev/continue/assets/33237525/8fd80572-8fe9-4330-a563-2d7d59239d94
This is the function that gets called and is responsible for cancelling, so this is the starting point to debug.
To reproduce
- Highlight code
- Type '/edit fix this' or something similar
- when it starts generating, press cmd/ctrl+shift+backspace
- it will briefly go away but streaming continues and the diff view will return
Log output
No response
Continuing discussion from Discord:
I was concerned that _streamSlashCommand wasn't behaving correctly because the generating function ideStreamRequest wasn't yielding anything.
After looking into it further, this seems to be the intention - ideStreamRequest and up is intended for streaming into the chat, not the diff.
This is so parameters like 'recap' can be set to stream into the chat, without disrupting the diff.