Skip to content

Fix chat interface and add generation#12

Merged
JD-P merged 8 commits into
cursor/implement-chat-interface-and-toggle-gemini-3-pro-preview-7f8bfrom
cursor/fix-chat-interface-and-add-generation-claude-4.5-opus-high-thinking-ecb3
Dec 7, 2025
Merged

Fix chat interface and add generation#12
JD-P merged 8 commits into
cursor/implement-chat-interface-and-toggle-gemini-3-pro-preview-7f8bfrom
cursor/fix-chat-interface-and-add-generation-claude-4.5-opus-high-thinking-ecb3

Conversation

@JD-P

@JD-P JD-P commented Dec 5, 2025

Copy link
Copy Markdown
Owner

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.


Open in Cursor Open in Web

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

cursor Bot commented Dec 5, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 7 commits December 5, 2025 05:30
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>
@JD-P JD-P marked this pull request as ready for review December 7, 2025 08:22
@cursor

cursor Bot commented Dec 7, 2025

Copy link
Copy Markdown

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.

@JD-P JD-P merged commit a221278 into cursor/implement-chat-interface-and-toggle-gemini-3-pro-preview-7f8b Dec 7, 2025
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.

2 participants