Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions selectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
],
"turnRoleAttr": {
"type": "attr",
"names": ["data-message-author-role", "data-turn"]
"names": [
"data-message-author-role",
"data-turn"
]
},
"messageIdAttr": {
"type": "attr",
Expand Down Expand Up @@ -46,15 +49,22 @@
"[class*='HumanTurn']",
"[class*='UserMessage']",
".font-user-message",
"[class*=\"user-message\"]"
"[class*=\"user-message\"]",
"div[data-is-user='true']",
".user-message",
"[class*='user-message']"
Comment on lines +53 to +55

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 Update the Claude parser to consume these selectors

In the Claude DOM case this PR is targeting, where messages are only identifiable via data-is-user or the new message classes, adding entries here does not change runtime turn parsing: selectors.json is loaded for selector probes, but readClaudeTurns() still uses the hard-coded selector lists in getClaudeUserTurns() / getClaudeAssistantCandidates() in content.js, which omit these new selectors. This can make diagnostics show healthy selector hits while the extension still fails to build the Claude turn tree, so the reported issue remains unfixed unless the parser lists are updated as well.

Useful? React with 👍 / 👎.

],
"assistantTurn": [
"[data-testid='assistant-turn']",
"[data-testid='assistant-message']",
".font-claude-response",
".font-claude-response-body",
".standard-markdown",
"[class*='font-claude-message']"
"[class*='font-claude-message']",
"[data-message-author-role='assistant']",
"div[data-is-user='false']",
".assistant-message",
"[class*='assistant-message']"
],
"branchCounter": {
"type": "regex",
Expand Down
Loading