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
background.jssendPromptToSpecificTab() replaces the current ChatGPT composer contents before submitting a queued message. If the user has typed an unsent draft while the queue is waiting, that draft can be destroyed. The sender also has no preflight contract for other pending composer state before it injects queued text.
Evidence
sendPromptToSpecificTab() selects a contenteditable input, focuses it, and executes input.textContent = '' before inserting the queued message.
The function does not first verify that the composer is empty.
The function does not preserve/restore the previous composer text if the send attempt later fails.
The current sender contract does not report other pending composer state before submission; it only checks the selected input and send button.
Likely root cause
The queued sender appears to treat the ChatGPT composer as a disposable text buffer owned by the automation. That assumption is unsafe because the user can edit the composer independently while a queue is waiting.
Expected behavior
Queued automation must never destroy or silently inherit unrelated user composer state.
Before injecting a queued prompt, the extension should resolve the canonical ChatGPT composer and run a preflight check. If a non-empty user draft or other unsupported pending composer state is present, preserve it and pause/defer the queued send with an actionable reason rather than clearing or combining with it.
A failed send attempt must leave the user's pre-existing composer state intact.
Acceptance criteria
A non-empty user draft present immediately before a queued send is never cleared or overwritten by the automation.
The sender fails closed or defers when the canonical composer has conflicting pending state instead of submitting a mixed/unknown request.
A send-button/selector/submission failure after preflight does not destroy the user's pre-existing draft.
A clean canonical composer still accepts normal queued messages without requiring manual intervention.
Summary
background.jssendPromptToSpecificTab()replaces the current ChatGPT composer contents before submitting a queued message. If the user has typed an unsent draft while the queue is waiting, that draft can be destroyed. The sender also has no preflight contract for other pending composer state before it injects queued text.Evidence
sendPromptToSpecificTab()selects a contenteditable input, focuses it, and executesinput.textContent = ''before inserting the queued message.Likely root cause
The queued sender appears to treat the ChatGPT composer as a disposable text buffer owned by the automation. That assumption is unsafe because the user can edit the composer independently while a queue is waiting.
Expected behavior
Queued automation must never destroy or silently inherit unrelated user composer state.
Before injecting a queued prompt, the extension should resolve the canonical ChatGPT composer and run a preflight check. If a non-empty user draft or other unsupported pending composer state is present, preserve it and pause/defer the queued send with an actionable reason rather than clearing or combining with it.
A failed send attempt must leave the user's pre-existing composer state intact.
Acceptance criteria
Relevant code
background.jscontent.jsBlocked by