You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When generating a LaTeX document using the "help me write this" option from the + New Page feature with the AI assistant, KaTeX errors are displayed. While the resulting document usually works fine, seeing these errors is unhelpful and discourages saving the document.
To Reproduce
Steps to reproduce the behavior:
Go to "+ New Page" in CoCalc.
Select the "help me write this" option using the AI assistant to generate LaTeX content.
Observe that KaTeX errors are shown during or after generation.
Expected behavior
Errors should not be shown to the user if the output document is mostly valid. Error messages should be suppressed or only shown when the output is truly unusable.
Additional context
The presence of error messages creates a poor user experience and may discourage users from using or saving the generated documents, even though the output often renders correctly after saving.