Skip to content

fix(doubao): use ID selector for send button#1188

Open
wjjsn wants to merge 1 commit intojackwener:mainfrom
wjjsn:main
Open

fix(doubao): use ID selector for send button#1188
wjjsn wants to merge 1 commit intojackwener:mainfrom
wjjsn:main

Conversation

@wjjsn
Copy link
Copy Markdown

@wjjsn wjjsn commented Apr 26, 2026

Summary

  • Fixed Doubao adapter clickSendButtonScript that was failing to find the send button

Problem

The original code searched for the send button by walking up only 2 DOM levels from the textarea, but the actual send button button#flow-end-msg-send is at level 5. This caused opencli doubao ask to fail with "发送失败" (send failed).

Fix

Replaced complex DOM traversal logic with a direct ID selector button#flow-end-msg-send, which is more reliable and simpler.

Verification

Tested with opencli doubao ask "1+1等于几" - returns correct response.

Related Issue

Fixes #1183

The clickSendButtonScript was searching for the send button by walking up
the DOM tree only 2 levels from the textarea, but the actual send button
#flow-end-msg-send is at level 5. This caused message sending to fail.

Fix by directly selecting the button via its ID.
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.

[Bug]: doubao ask cannot be use

1 participant