Repository navigation
Conversation
Collaborator
|
Closing as part of clearing this pre-hygiene queue; see #298 (comment) for the note on the updated review process. Thank you again. |
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.
What & why
The desktop chat component keeps its editing index and draft text when the selected conversation changes. If the destination also has a user message at that index, it opens an editor containing the previous conversation's text. Switching through an empty conversation can also resurrect the old edit when its first message arrives, allowing the wrong prompt to be resent.
Clear the local editing state when
conversation.idchanges. Updates within the same conversation keep the active edit intact.Area
edge0-infer/examples/)How was it tested?
Independent Node 24.15.0 and 26.3.1 validation: each runtime reproduced 2 failures with 1 passing same-conversation control on upstream, then passed all 217 frontend tests and
npm run buildwith the fix.The regressions mount the actual
Chatcomponent with ReactDOM, click its edit/send controls, and rerender it with another conversation. They check direct switching, switching through an empty chat, the resent prompt and message index, and preserving an edit during updates to the same conversation. The component regression harness is retained on the validation branch. It useshappy-dom; because adding an App dependency requires maintainer approval, this PR leaves the upstream dependency set unchanged and contains only the one-line production fix.Local Node 24.22 also passed these three regressions, the frontend suite, and the production build. The independent validation branch contains only this change; no native Tauri integration or model-inference result is claimed.
Checklist
npm testandnpm run buildon both documented Node versions.