fix(doubao): harden ask response parsing#933
fix(doubao): harden ask response parsing#933Astro-Han wants to merge 1 commit intojackwener:mainfrom
Conversation
|
Reviewed the diff against local Key improvements verified:
One observation: The The test coverage (11 new test cases for |
|
@hiSandog Thanks for the careful review. One quick clarification: the current adapter lives in On the const normalizedPrompt = normalizeWhitespace(promptText);
if (!normalizedPrompt || !normalizedRaw.startsWith(normalizedPrompt)) return false;So that part is still intentional in the current branch. Thanks again for the read-through. |
Description
Harden the Doubao
askflow so homepage and sidebar chrome are no longer misread as assistant output.Related issue:
Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(if new adapter)docs/adapters/index.mdtable (if new adapter)docs/.vitepress/config.mts(if new adapter)README.md/README.zh-CN.mdwhen command discoverability changedCliErrorsubclasses instead of rawErrorScreenshots / Output
Relevant checks run in this worktree:
npm test npm run test:adapter -- clis/doubao/ ./node_modules/.bin/tsc --noEmit npm run buildBuilt-in adapter execution check:
[ { "Role": "User", "Text": "测试一下,只回复OK" }, { "Role": "System", "Text": "No response within 15s. Doubao may still be generating." } ]