Skip to content

fix(doubao): update selectors for frontend changes (2026-05)#56

Open
WenhuaXia wants to merge 1 commit into
nashsu:mainfrom
WenhuaXia:fix/doubao-selectors
Open

fix(doubao): update selectors for frontend changes (2026-05)#56
WenhuaXia wants to merge 1 commit into
nashsu:mainfrom
WenhuaXia:fix/doubao-selectors

Conversation

@WenhuaXia
Copy link
Copy Markdown

Problem

Doubao frontend removed all data-testid attributes, breaking read, send, and ask adapters.

Fix

  • read: [data-plugin-identifier*="block_type:10000"] for messages, user/assistant via justify-end
  • send: textarea.semi-input-textarea for input, walk up DOM to find SVG send button
  • ask: same + poll response via block_type:10000

Testing

All 3 adapters verified working locally with autocli v0.3.8.

Doubao frontend removed all data-testid attributes (chat_input_input,
receive_message, message_text_content) and changed message list container
class from item-kD... to hash classes.

Changes:
- read: use [data-plugin-identifier*="block_type:10000"] for messages,
  distinguish user/assistant via justify-end class
- send: use textarea.semi-input-textarea for input, walk up DOM tree to
  find SVG send button
- ask: same input/button fixes + poll response via block_type:10000
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.

2 participants