-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cody: Running recipies with a huge selection truncates without the user being aware of it #53920
Comments
@philipp-spiess Created a PR for this. The issue was just with the smell code recipe. When we were calculating the |
@deepak2431 You're an absolute hero! |
Thanks a lot :) |
This PR closes #53920. ## Test plan Tested it manually for larger inputs, and it works fine.
I’m going to reopen this for a different change. We should add a user-facing warning somehow when the selection is truncated just so we know what's going on. This is far less critical though than the original issue :) |
@philipp-spiess Got it. I can handle that in the next PR. Just a question, the warning message should be displayed as a VSCode message, or should it be displayed in the webview? |
@deepak2431 Hmm what do you think? I think in the web view it might be less confusing since it opens anyways. |
@philipp-spiess As I can see in the current implementation, any warning/error message is displayed using the VSCode editor context. So, I think that would be good for this too! As in Webview, a new message will appear at the top while the response is generated, so in terms of UX, I don't think it's good behaviour. Just my thoughts! |
@deepak2431 Yeah makes sense I agree! |
This PR closes #53920. ## Test plan Tested it manually for larger inputs, and it works fine.
This PR closes #53920. ## Test plan Tested it manually for larger inputs, and it works fine.
This PR closes #53920 Changes made: 1. Added warning message for each long truncated text 2. Fixed the args of token length for some of the recipes ## Test plan Tested manually for long code snippets.
When you select a lot of code and run a recipe, you cat no answer.
Repro:
cmd/frontend/internal/app/updatecheck/client.go
Expected behavior:
The text was updated successfully, but these errors were encountered: