Skip to content

fix(chat-swarm-runtime): drive ChatGPT composer through CDP Input - #185

Merged
James3014 merged 1 commit into
mainfrom
issue-117-wave3-cdp-input-repair-v2
Sep 17, 2026
Merged

James3014 merged 1 commit into
mainfrom
issue-117-wave3-cdp-input-repair-v2

Conversation

@James3014

Copy link
Copy Markdown
Owner

Issue #117 Wave 3 live acceptance proved that DOM/execCommand editing can leave ChatGPT's visible contenteditable text populated without updating the internal composer state, so the Send control never becomes enabled. On the same Chrome 152 target, exact-target CDP Input.dispatchKeyEvent + Input.insertText produced the enabled Send control without sending.

This keeps the existing browser/carrier, conversation identity guards, textarea fallback, peer authority, and no-blind-resend semantics. Only contenteditable input moves to the CDP Input domain; the final send remains one guarded click. The Candidate is based directly on main@0890f77e1f061511b2a48d5cab6aec0b18f735a7 and changes only the runtime plus its regression tests. It also corrects two hostile-test assertions that still referenced the superseded const prompt= implementation detail.

git diff --check passes locally. The isolated managed worktree cannot run npm ci because the current MCP session has no paired coordination carrier, so local dependency-based tests were not substituted or bypassed; exact-head Ubuntu/macOS CI must provide Test/Typecheck/Build evidence before merge.

@James3014
James3014 merged commit 30379ad into main Sep 17, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant