Skip to content

fix(voice): localize Tencent probe failures for zh UI - #670

Merged
jubaoliang merged 4 commits into
developfrom
fix/voice-probe-zh-errors
Sep 14, 2026
Merged

fix(voice): localize Tencent probe failures for zh UI#670
jubaoliang merged 4 commits into
developfrom
fix/voice-probe-zh-errors

Conversation

@jubaoliang

Copy link
Copy Markdown
Collaborator

Summary

  • Settings 语音探测把腾讯云 AuthFailure.SecretIdNotFound 等常见错误按 Accept-Language 译成中文/英文,不再原样甩英文 Message。
  • 探测请求带上 X-TC-Language,未收录的厂商错误也会跟界面语言走。

Test plan

  • uv run pytest tests/unit/test_voice_probe.py tests/unit/test_voice_stt_probe.py tests/unit/i18n tests/integration/test_voice_probe_http.py -q
  • 中文界面:用错误 SecretId 点测试,应看到「SecretId 不存在,请检查密钥是否填写正确。」
  • 英文界面:同一操作应看到英文译文

Made with Cursor

jubaoliang-tencent and others added 4 commits September 13, 2026 16:55
Map known AuthFailure codes (and related probe wrappers) through voice.* i18n, and send X-TC-Language so unmapped vendor messages follow Accept-Language.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Closing an agent while harness-memory list_candidates is still running segfaults (seen in make test-live). Quiesce the maintenance thread on delete/stop, and keep live fixtures memory-off.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jubaoliang
jubaoliang merged commit 981a5ae into develop Sep 14, 2026
3 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.

2 participants