Skip to content

fix: update chatgpt turns selectors for v0.3.7#53

Open
NogaUwU wants to merge 2 commits into
masterfrom
fix/auto-update-chatgpt-selectors
Open

fix: update chatgpt turns selectors for v0.3.7#53
NogaUwU wants to merge 2 commits into
masterfrom
fix/auto-update-chatgpt-selectors

Conversation

@NogaUwU

@NogaUwU NogaUwU commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Automated fix for issue #50. Adds .group/conversation-turn to chatgpt turns selectors.

@FuugaMo

FuugaMo commented May 29, 2026

Copy link
Copy Markdown
Owner

@codex Please review this PR. If you find no critical issues, reply with "LGTM". If you find critical issues, describe them clearly.

1 similar comment
@FuugaMo

FuugaMo commented May 29, 2026

Copy link
Copy Markdown
Owner

@codex Please review this PR. If you find no critical issues, reply with "LGTM". If you find critical issues, describe them clearly.

@github-actions

Copy link
Copy Markdown

review
node scripts/review-pr.js

Automated Review

Automated reviewer found issues that need human attention before merge.

Checklist

  • selectors.json touched: yes
  • content.js touched: no
  • sidepanel/viewer touched: no

Findings

  • selectors.json changed without parser changes; confirm runtime already consumes the new entries.

Verdict: needs-human-attention

1 similar comment
@github-actions

Copy link
Copy Markdown

review
node scripts/review-pr.js

Automated Review

Automated reviewer found issues that need human attention before merge.

Checklist

  • selectors.json touched: yes
  • content.js touched: no
  • sidepanel/viewer touched: no

Findings

  • selectors.json changed without parser changes; confirm runtime already consumes the new entries.

Verdict: needs-human-attention

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efbb1c98d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread selectors.json
Comment on lines +11 to +13
"div[class*=\"agent-turn\"]",
"[data-testid*=\"conversation-turn\"]",
".group\\/conversation-turn"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Wire new turn selectors into the runtime parser

These new ChatGPT selectors are only added to selectors.json, but the actual ChatGPT parser still uses hard-coded selectors in content.js: it first queries article[data-testid^="conversation-turn-"], then falls back only to [data-testid='conversation-turn'], [data-message-author-role], and main article (content.js lines 560-574). Since selectorConfig.platforms.chatgpt.turns is only used by diagnostics/probing, pages that now expose turns only via .group\/conversation-turn, agent-turn, or the broader data-testid* selector will still produce no turns, so this patch does not fix the reported runtime breakage.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efbb1c98d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread selectors.json
Comment on lines +11 to +13
"div[class*=\"agent-turn\"]",
"[data-testid*=\"conversation-turn\"]",
".group\\/conversation-turn"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Wire new ChatGPT selectors into the parser

On ChatGPT pages where v0.3.7 only exposes the new agent-turn/group/conversation-turn containers, these additions do not change runtime parsing: readChatGPTTurns() in content.js still queries only article[data-testid^="conversation-turn-"] and the fallback list [data-testid='conversation-turn'], [data-message-author-role], and main article, while selectorConfig is only used by the selector probe/diagnostics. As a result the reported no_turns_detected failure remains even though the probe may show the new selectors matching.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants