Fix chat interface and add generation#12
Merged
JD-P merged 8 commits intoDec 7, 2025
Conversation
This commit introduces several improvements to the chat functionality and user interface. Key changes include: - **Enhanced Chat Rendering:** The chat view now supports system messages and displays them with distinct styling. - **Loading Indicators:** A visual loading indicator is displayed while the AI is generating a response, providing better user feedback. - **Input and Button States:** The chat input and send button are disabled during generation to prevent concurrent requests and improve usability. - **Message Editing and Resubmission:** Users can now edit previous chat messages and choose to resubmit the conversation from that point. - **Improved Markdown and MathJax Rendering:** Enhanced markdown rendering with a whitelist of allowed tags and improved MathJax integration for mathematical expressions. - **Code Block Styling:** Code blocks are now styled for better readability. - **UI Polish:** Minor UI adjustments and bug fixes for a smoother user experience. - **Dependency Updates:** Updated dependencies for marked and highlight.js. - **Code Structure:** Refactored code for better organization and maintainability. Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
|
Cursor Agent can help with this pull request. Just |
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
This commit introduces a system prompt setting for chat completions, allowing users to define a default system message. It also updates MathJax to use SVG output for better rendering of mathematical formulas and adds corresponding CSS for styling. Additionally, scroll behavior in the chat view has been improved to better preserve scroll position during edits and re-renders. Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on January 20. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
a221278
into
cursor/implement-chat-interface-and-toggle-gemini-3-pro-preview-7f8b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable chat functionality by fixing library loading, triggering LLM generation on send, and adding loading indicators.
The previous implementation of the chat interface had several critical issues: markdown and syntax highlighting libraries failed to load due to incorrect paths, the 'Send' button only appended user messages without initiating LLM generation or creating new nodes in the loom tree, and there was no visual feedback during AI processing. This PR resolves these issues, ensures proper rendering, and tightens the Content Security Policy.