Skip to content

[codex] Fix ChatGPT browser adapter extraction#1550

Draft
vtxyer wants to merge 1 commit into
jackwener:mainfrom
vtxyer:codex/fix-chatgpt-browser-adapter
Draft

[codex] Fix ChatGPT browser adapter extraction#1550
vtxyer wants to merge 1 commit into
jackwener:mainfrom
vtxyer:codex/fix-chatgpt-browser-adapter

Conversation

@vtxyer
Copy link
Copy Markdown

@vtxyer vtxyer commented May 14, 2026

Summary

  • support ChatGPT section-based conversation turns and localized message/sidebar labels
  • add snapshot extraction fallbacks for history and message reads
  • recover read/detail when conversations open at the bottom or the current page has no visible turns

Root cause

ChatGPT changed visible conversation markup and localized UI labels, while the adapter only looked for older [data-message-author-role] / article[data-testid*=conversation-turn] nodes and the English Open sidebar label. Some conversations also opened with the scroll container positioned below the rendered turns, leaving no visible messages for the old extractor.

Validation

  • npx vitest run --project adapter clis/chatgpt/utils.test.js clis/chatgpt/image.test.js clis/chatgpt/commands.test.js
  • opencli chatgpt status -f yaml --window background
  • opencli chatgpt history -f yaml --window background --limit 3
  • opencli chatgpt read -f yaml --window background
  • opencli chatgpt detail 69fea772-227c-8323-b7a1-98777b64edad -f yaml --window background

Support ChatGPT's section-based conversation turns and localized sidebar/message labels. Add snapshot and scroll fallbacks so history, read, and detail continue returning visible conversations after recent UI changes.
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