This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Merged
Conversation
Clean up the processInlineMarkdownWithCitations function by removing all console.log statements used for debugging citation parsing and processing. This reduces console noise and improves performance during runtime without affecting functionality.
- Introduce `ChatParserLatex` component to detect and render inline and block LaTeX expressions using KaTeX, preserving escape characters and supporting streaming. - Update `ChatParser` and `ChatParserMarkdown` to handle LaTeX separately from markdown and citations, ensuring correct parsing and rendering order. - Add KaTeX and react-katex dependencies to package.json and package-lock.json. - Import KaTeX CSS globally for proper styling of math expressions. - Add placeholder components for partial LaTeX rendering during streaming. - Provide test pages (`test-latex/page.tsx` and `test-latex.tsx`) with various LaTe
- Add explicit typing for regex match and matches array to enhance type safety - Fix resetting lastIndex on inline regex instead of block regex to avoid incorrect matching - Ensure inline matches do not overlap with block matches by refining overlap check - Remove obsolete test-latex.tsx file used for LaTeX rendering tests
Deleted the TestLatexPage component which contained various LaTeX rendering test cases using the MessageRenderer component. This cleanup removes unused test code and simplifies the codebase.
- Enhance escape handling in ChatParser to skip LaTeX commands and syntax - Refactor findLatexBlocks with regex for accurate block and inline math detection - Add smart escaping of LaTeX special characters, especially % in ChatParserLatex - Simplify citation preprocessing in ChatParserMarkdown by skipping LaTeX areas - Add detailed debug logs for LaTeX block detection and rendering steps These changes improve robustness and correctness when processing LaTeX content and citations within chat messages, reducing parsing errors and rendering issues.
- Extract parseCitation and related helper functions from ChatParser.tsx into a new ChatParserCite.tsx component for better modularity. - Remove deprecated parseCitation implementation and preprocessJsonString from ChatParser.tsx and import the new parseCitation function. - Maintain existing parsing behavior including balanced brace detection, escape sequence handling, and manual fallback parsing. - Improve code organization and separation of concerns in chat parsing components.
- Introduce processInlineMarkdownWithCitations to handle text containing citations, LaTeX, and markdown in a unified way. - Implement robust citation detection with balanced brace parsing and escape character handling. - Support partial citation placeholders during streaming rendering. - Render citations as interactive SourceButton components when source info is available. - Refactor ChatParserMarkdown to delegate citation processing to the new module, removing duplicated logic. - Clean up debug logs and improve preprocessing of malformed citation JSON.
- Replace single-line input with a textarea that auto-adjusts height - Limit textarea height between 45px and 200px, show scrollbar if exceeded - Hide vertical scrollbar when content fits within max height - Adjust textarea height dynamically on input changes for better UX - Update styles to support scrollable state and consistent line height
- Add URL length check when setting initial_message param to avoid exceeding URL length limits by storing long messages in localStorage with an ID. - Update chat components to retrieve initial messages from localStorage if ID param is present, falling back to direct URL param otherwise. - Automatically execute the initial message after setting it and clean up URL parameters to improve user experience and maintain URL cleanliness.
feat: Add user ID display in user management table feat: Implement chat monitoring section in admin panel feat: Create AdminConfigViewer component for configuration management style: Add styles for AdminConfigViewer component
Changed the textarea transition property to specifically animate height with an ease-in-out timing function for smoother resizing behavior. This improves the visual experience when the chat input area adjusts its size.
Comment out the signup link in the login page to prevent user navigation to the signup route, possibly due to ongoing updates or restrictions on new registrations.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.