Skip to content

Autofixing errors whenever there is an error generated #2

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kitenite
Copy link

Description

Instead of fixing errors on clicking Fix button, tries to fix the error whenever there is an error generated

Related Issues

fixes onlook-dev#1617


Important

Automatically fix errors in ErrorManager using autorun to trigger sendFixError() when errors occur.

  • Behavior:
    • Automatically fixes errors when they occur using autorun in ErrorManager.
    • shouldAutoFixErrors checks if errors exist and if the chat is not waiting before triggering sendFixError().
  • Functions:
    • Adds autorun in ErrorManager constructor to automatically call sendFixError().
    • sendFixError() now removes errors from map if fixed.
  • Misc:
    • Removes makeAutoObservable options in ErrorManager constructor.

This description was created by Ellipsis for 04dcb17. You can customize this summary. It will automatically update as commits are pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] Automatically fix errors when they come up in chat
2 participants