fix(doubao): refresh history and detail extraction#1375
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Doubao CLI adapter’s DOM-scraping scripts so history and detail can continue working with Doubao’s current sidebar and conversation detail markup.
Changes:
- Broadened sidebar selectors in
getConversationListScript()to handle current conversation anchors and dedupe results. - Broadened detail selectors in
getConversationDetailScript()to handle current message containers/bubbles. - Added/extended unit tests to assert the updated selector coverage, and exported the scripts via
__test__for testing.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| clis/doubao/utils.js | Updates the in-page evaluation scripts for conversation list + detail extraction, and exports the new scripts for tests. |
| clis/doubao/utils.test.js | Adds tests asserting the updated DOM selectors are present in the generated scripts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ec5f3e3 to
02dd1ce
Compare
|
Updated this PR to the latest Doubao adapter fix. The new head replaces the old DOM-only patch with the recent_conv API-backed history path, refreshed detail extraction, and pc_pin_query_type pagination handling. Local verification: npm test -- clis/doubao/history.test.js clis/doubao/detail.test.js clis/doubao/utils.test.js (29 tests passing). |
|
Added a generic |
|
Follow-up update in c43244d: fixed a live-smoke issue where stale route data / generic DOM images could be mistaken for media from the requested Doubao conversation. The extractor now scopes route data to the target conversation and only traverses matched message lists; DOM image fallback excludes avatars, bot icons, intro art, placeholders, and small generic images.\n\nAdditional local validation:\n- PR branch: |
c43244d to
0c431d2
Compare
Generated on: cmcc-i5
Generated on: cmcc-i5
Generated on: cmcc-i5
Generated on: cmcc-i5
Generated on: cmcc-i5
0c431d2 to
cb78a6b
Compare
Generated on: cmcc-i5
|
Refreshed this PR onto current What changed in the refresh:
Local checks:
Live smoke on the logged-in account:
The previous Ubuntu CI failure ( |
Generated on: cmcc-i5
|
CI follow-up: the manifest drift was fixed in lmmsoft@6e63f8b. All PR-relevant build/test/doc checks are now green on Ubuntu, macOS, Windows, Node, and Bun. The only remaining red check is the repository-wide security audit for |
Generated on: cmcc-i5
Generated on: cmcc-i5
Generated on: cmcc-i5
Summary
#flow_chat_sidebar,conversation_*anchors, and/chat/<id>links).flow-markdown-bodycontentVerification
PATH=/Users/lmm333/.nvm/versions/node/v24.13.0/bin:$PATH npm exec vitest run --project adapter clis/doubao/utils.test.js clis/doubao/history.test.js clis/doubao/detail.test.jsPATH=/Users/lmm333/.nvm/versions/node/v24.13.0/bin:$PATH npm run typecheckopencli doubao history --limit 5returns real conversations andopencli doubao detail <conversation_id>returns user/assistant messages