You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: migrate Composer from textarea to Lexical for inline mention chips #55
The composer currently uses a plain <textarea> with a transparent CSS overlay (TextOverlay) behind it for token highlighting. This approach can render colored backgrounds for @file and /command tokens but cannot render inline icons or interactive chips — the textarea only renders plain text.
T3 Code uses Lexical (a rich text editor framework by Meta) which allows rendering custom DecoratorNode / TextNode subclasses as real DOM elements inline. Their ComposerMentionNode renders file mentions as chips with:
VSCode file-type icons (loaded from jsDelivr CDN via vscode-icons manifest)
Basename label (e.g., just `index.ts` not the full path)
Description
The composer currently uses a plain
<textarea>with a transparent CSS overlay (TextOverlay) behind it for token highlighting. This approach can render colored backgrounds for@fileand/commandtokens but cannot render inline icons or interactive chips — the textarea only renders plain text.T3 Code uses Lexical (a rich text editor framework by Meta) which allows rendering custom
DecoratorNode/TextNodesubclasses as real DOM elements inline. TheirComposerMentionNoderenders file mentions as chips with:vscode-iconsmanifest)What needs to change
Remove
Add
Modify
Reference implementation
Current state (what we have now)
🤖 Generated with Claude Code