Skip to content

Implement chat interface and toggle#11

Merged
JD-P merged 50 commits intomainfrom
cursor/implement-chat-interface-and-toggle-gemini-3-pro-preview-7f8b
Dec 8, 2025
Merged

Implement chat interface and toggle#11
JD-P merged 50 commits intomainfrom
cursor/implement-chat-interface-and-toggle-gemini-3-pro-preview-7f8b

Conversation

@JD-P
Copy link
Owner

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

Adds a modular chat interface for ChatML and OpenRouter chat completions.

The chat interface renders from and edits the canonical ChatML JSON, allowing for a flexible UI that integrates seamlessly with MiniLoom's diffing system without re-architecting the core loom. This also includes validation for ChatML before API calls.


Open in Cursor Open in Web

Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
@cursor
Copy link

cursor bot commented Dec 3, 2025

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 28 commits December 3, 2025 11:53
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>
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>
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>
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>
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>
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>
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>
cursoragent and others added 21 commits December 4, 2025 13:58
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>
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>
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>
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>
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>
…neration-claude-4.5-opus-high-thinking-ecb3

Fix chat interface and add generation
@JD-P JD-P marked this pull request as ready for review December 8, 2025 23:11
@JD-P JD-P merged commit f2ac65d into main Dec 8, 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

Comments