fix(chat-swarm-runtime): use native ChatGPT composer editing - #181
Merged
Merged
Conversation
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.
Fixes the native Wave 3 blocker from Issue #117. On the exact installed macOS build, assigning
contenteditable.textContentplus a syntheticInputEventvisibly changed the DOM but did not enter ChatGPT's real ProseMirror/React composer state, so no send button appeared andruntime_ensure(3)stalled waiting for a conversation URL.The repair keeps the existing transport and lifecycle unchanged. For the contenteditable composer it selects the current draft and uses the browser-native
insertTextediting path that was live-proven to create an enabled ChatGPT send button; failure to acquire a selection or insert text fails closed. The textarea fallback, exact-conversation guard, authenticated peer authority, no-blind-resend rule, and no transport fallback remain unchanged.Candidate
93d0cf6068feb91d23e933b99a6e8a4e8ebb3d93is based directly onmain@03841ac7ab8abda1b54b9235f2fffe9d18404047and changes onlysrc/chat-swarm-runtime.tsandsrc/chat-swarm-runtime.test.ts. Localgit diff --checkpasses; exact-head CI is required before merge.