Skip to content

Commit 69c94a6

Browse files
committed
Update Claude chatbot footer selector and generation check
1 parent 8c5c5c9 commit 69c94a6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • apps/browser/src/content-scripts/send-prompt-content-script/chatbots

‎apps/browser/src/content-scripts/send-prompt-content-script/chatbots/claude.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,12 @@ export const claude: Chatbot = {
104104
})
105105
}
106106

107-
const stop_button_selector =
108-
'path[d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm40-112v56a12,12,0,0,1-12,12H100a12,12,0,0,1-12-12V100a12,12,0,0,1,12-12h56A12,12,0,0,1,168,100Z"]'
109107
const footer_selector =
110-
'div[data-test-render-count] > div > div:nth-child(2)'
108+
'div[data-cds="AssistantMessage"] > div:last-child > div'
111109

112110
observe_for_responses({
113111
chatbot_name: 'Claude',
114-
is_generating: () => !!document.querySelector(stop_button_selector),
112+
is_generating: () => false, // Find robust way to determine when stop button is shown
115113
footer_selector,
116114
add_buttons: params.inject_button ? add_buttons : undefined
117115
})

0 commit comments

Comments
 (0)