-
Notifications
You must be signed in to change notification settings - Fork 209
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
Fixup: Improve error handling #1376
Conversation
@toolmantim Would appreciate your 👀 on this UX flow. Right now we treat most errors from Cody as valid fixups, which means we can apply some invalid code sometimes. This changes it so we have an actual error state. This thing I wasn't sure about is: Is this visible enough? We could also show a notification immediately after the error happens, so users don't just miss the error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the pop up on the code lense click!
I found an error that is not being handled:
- Right now recipe level error is not being handled and the task will continue to spin indefinitely:
- Fixup with no updates from Cody is not returning error?
We should probably update the action items for fixup task with errors in the tree view as well?
@toolmantim might have some updates for this but here is the old figma design for fixup for reference: https://www.figma.com/file/9112BsKsJc1BpO2j8XYwLL/%F0%9F%A4%96-Cody-VS-Code-%5BMain%5D?type=design&node-id=2799-13359&mode=design&t=8KXSY8PA3YuFzIoj-0
@abeatrix Thanks for testing, sorry didn't get round to this - fixing now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! |
@umpox I can't think of a better option than putting the error message in the confirm like you've done. The only other option I could think of were a native VS Code notification, but that should trigger as soon as it happens, and you probably still want something on click. I think confirm is fine for now, and we can improve as we go. |
Description
Improves how we handle errors for fixups:
Before
FixupErrorBefore.mov
After
FixupErrorAfter.mov
Test plan
Tested locally