Skip to content

[autofix] doubao/ask: SELECTOR — message reading broken after DOM restructure #1189

@wjjsn

Description

@wjjsn

Summary

OpenCLI autofix repaired this adapter locally, and the retry passed.

Adapter

  • Site: doubao
  • Command: ask
  • OpenCLI version: 1.7.8

Original failure

  • Error code: SELECTOR (symptom: received messages were sidebar/UI noise instead of AI responses)

The getDoubaoVisibleTurns function relied on [data-testid="message-list"] and [data-testid="receive_message"] selectors which no longer exist in Doubao's DOM. When these returned empty, the adapter fell back to getDoubaoTranscriptLines which scraped the entire page including sidebar noise like "请仔细甄别下载电脑版".

Local fix summary

Replaced broken selectors with current Doubao DOM structure:

  • Message list container: [class*="message-list-S2Fv2S"] or .container-PvPoAn
  • User messages: [class*="bg-g-send-msg-bubble"]
  • Assistant messages: [class*="bg-g-receive-msg-bubble"]
  • Role detection now uses bubble class names instead of data-foundation-type attributes
  • Added 请仔细甄别 and 下载电脑版 to stopLines to filter UI noise

Issue filed by OpenCLI autofix after a verified local repair.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions