Skip to content

fix(gemini): match Traditional Chinese 'send' label in composer submit (#1849) - #1967

Merged
jackwener merged 1 commit into
jackwener:mainfrom
LeoLin990405:fix/gemini-traditional-chinese-send
Jun 18, 2026
Merged

jackwener merged 1 commit into
jackwener:mainfrom
LeoLin990405:fix/gemini-traditional-chinese-send

Conversation

@LeoLin990405

Copy link
Copy Markdown
Contributor

What

opencli gemini ask times out on the Traditional Chinese Gemini UI — the adapter cannot find/click the send button.

Root cause

submitComposerScript in clis/gemini/utils.js scores candidate buttons with:

const submitPattern = /send||submit|/i;

This only covers Simplified Chinese 「发送」. On the Traditional Chinese UI the send button is labeled 「傳送訊息」, which matches none of the alternatives, so it scores 0 and the adapter times out. Fixes #1849.

Fix

Add 「傳送」 (a substring of 「傳送訊息」) to submitPattern. One-line change, no behavior change for existing locales.

Test

Added a unit test asserting the generated submit script contains 「傳送」, alongside the existing .click() / 「发起新对话」 assertions in clis/gemini/utils.test.js.

Verification

  • npm run build — ok
  • npx vitest run clis/gemini/utils.test.js — 27 passed
  • npm run check:typed-error-lint — no new violations
  • npm run check:silent-column-drop — no new violations

jackwener#1849)

submitComposerScript scored candidate buttons with /send|发送|submit|提交/i,
which only covers Simplified Chinese 发送. On the Traditional Chinese Gemini
UI the send button is labeled 傳送訊息, matching none of the alternatives, so
it scored 0 and the adapter timed out waiting to click it. Add 傳送 (a
substring of 傳送訊息) to submitPattern, plus a unit test on the generated
submit script.
@jackwener
jackwener merged commit e416f5f into jackwener:main Jun 18, 2026
11 checks passed
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.

[autofix] gemini/ask: Missing Traditional Chinese 'Send message' pattern

2 participants