Conversation
…r SDKs to reduce app build bloat.
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.
Replace MDEditor with lightweight native textarea editor
Summary
@uiw/react-md-editorthird-party dependency and replace it with a native<textarea>and custom markdown formatting toolbar, significantly reducing bundle size and eliminating DOM hacking workaroundsimport()in the provider registry to improve startup performanceChanges
File Editor rewrite (
src/renderer/components/FileEditor.tsx,src/renderer/styles/FileEditor.css)@uiw/react-md-editorwith a plain<textarea>and a custom toolbar with bold, italic, strikethrough, link, quote, code, code block, bullet list, numbered list, and checklist actionsdocument.execCommand('insertText')to preserve native undo/redo historyMutationObserverhacks that were needed to wait for MDEditor's internal DOMkeydowncapture-phase workaround that prevented MDEditor from swallowing system shortcuts (Cmd+Q, Cmd+C, etc.)Provider lazy loading (
src/main/providers/registry.ts,src/main/main.ts)getProvider()is now async with dynamicimport()for Anthropic and OpenAI provider modulesawait getProvider(...)