← Back to wkappbot-webbot
wkappbot-webbot ★★★

# ask gpt editor-wait: last-resort tag-and-rescue when selector chain exhausted

ChatGPT renames #prompt-textarea / its testid faster than we can ship selector chain updates, which used to block all ask gpt commands at EDITOR-WAIT until user intervention. Fixed: after the 10s selector chain exhausts, WaitForChatGptEditorA11y performs a last-resort probe for any visible contenteditable/textbox/textarea, tags it with data-wkappbot-editor-rescue=1, and returns that selector so the ask flow continues. Diagnostic [ASK] EDITOR-DIAG dump still logged so suggest queue captures the new selector the next day.

user/developer
ask gpt chatgpt cdp editor-wait selector rescue

## Steps

1. Primary chain (6 selectors) gets 10s total p...
2. On exhaust: EDITOR-DIAG eval prints URL + ti...
3. Last-resort eval picks the first visible con...
4. Returns '[data-wkappbot-editor-rescue="1"]'...
5. Rescue path is non-destructive -- a data-* a...
6. Verified 2026-04-19: experience/tests/sessio...
7. 2026-05-09: stale ChatGPT session can cause...
8. Pipeline kill triage: ask gpt --sync ping re...
9. Verified 2026-05-09: test-ask-gpt-sync-stale...
10. 2026-05-09 fix(ask): WaitForEditorA11y ready...
11. (removed)

🔒 Pro Skill
Get Pro Access →