fix: make persistent chat context and composer UI consistent#4719
Open
ComputelessComputer wants to merge 12 commits intomainfrom
Open
fix: make persistent chat context and composer UI consistent#4719ComputelessComputer wants to merge 12 commits intomainfrom
ComputelessComputer wants to merge 12 commits intomainfrom
Conversation
✅ Deploy Preview for char-cli-web canceled.
|
✅ Deploy Preview for hyprnote canceled.
|
95f9a62 to
feaf434
Compare
25465fb to
414be6b
Compare
- Return early from the context bar when there are no context chips - Keep the add button available only once context is already present
- Hide the context bar entirely when there are no context chips - Render the composer with full rounded corners when it is no longer attached to a context bar
- Extract mention nodes from the chat draft into typed context refs - Show mentioned sessions, people, and organizations in the context bar while typing - Persist mention refs on sent messages and render contact/org context into the chat prompt
- Extract mention nodes from the chat draft into typed context refs - Show mentioned sessions, people, and organizations in the context bar while typing - Persist mention refs on sent messages and render contact/org context into the chat prompt - Flatten mention nodes into plain-text @labels for the visible user message and chat title
- derive plain-text chat content and mention refs from one draft serializer - mark editor-derived mention refs as draft context instead of removable manual context - add regression coverage for mention text serialization and ref extraction
- send the global shortcut to the persistent chat new-session action when the composer has focus - centralize persistent chat session resets in shared chat state so the shortcut and header button stay in sync - add chat state coverage for starting and selecting chat sessions
- persist mention labels on draft context refs so sent messages keep the typed chip text - render user message mentions as inline clickable chips using the composer mention styling - add coverage for mention serialization and user-message tokenization
- move draft serialization and storage helpers into a shared input draft module - initialize pending draft refs from stored draft state instead of syncing them in useEffect - keep chat mention and draft tests passing with the new draft initialization flow
- remove the one-off draft context helper and initialize draft refs inline where they are consumed - simplify draft state initialization by deriving initial content directly from stored draft data - keep the live draft context callback flow intact for context bar updates without effect sync
414be6b to
1ae7bfb
Compare
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.
Uh oh!
There was an error while loading. Please reload this page.