[codex] Fix ChatGPT browser adapter extraction#1550
Draft
vtxyer wants to merge 1 commit into
Draft
Conversation
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.
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.
Summary
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 EnglishOpen sidebarlabel. 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.jsopencli chatgpt status -f yaml --window backgroundopencli chatgpt history -f yaml --window background --limit 3opencli chatgpt read -f yaml --window backgroundopencli chatgpt detail 69fea772-227c-8323-b7a1-98777b64edad -f yaml --window background