fix(conversation): 离屏不丢回复、列表预热 WS 与非阻塞进入聊天

- 后端:文本/转写后 AI 生成改为独立任务,避免断连取消整轮;按需 TTS 等与 WS 改动
- 前端:RealtimeSession 重绑 UI 时恢复流式 buffer;列表 onPressIn/挂载预热、已有会话立即 push
- 同步会话相关类型、i18n、测试与 env/资源等累计改动

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin
2026-05-08 17:28:31 +08:00
parent 5dac3efd52
commit d0c26242db
44 changed files with 1209 additions and 212 deletions

View File

@@ -29,10 +29,15 @@
"readAloudAgain": "Play again",
"readAloudPause": "Pause reading",
"readAloudResume": "Resume reading",
"readAloudRequest": "Read aloud",
"readAloudRequestFailed": "Could not start playback. Check your connection.",
"readAloudNoMessageId": "This message is not ready for on-demand reading yet. Pull to refresh or try again.",
"cannotReadAloud": "Read unavailable",
"readingAloud": "Reading aloud…",
"recordingPermissionDenied": "Microphone permission is required to record",
"recordingStartFailed": "Unable to start recording. Please try again.",
"ttsThisTurn": "Speak",
"ttsThisTurnAccessibility": "When on, assistant replies synthesize speech before text appears.",
"send": "Send",
"startNewSubtitle": "Capture a new memory or share your thoughts with your companion.",
"switchToText": "Switch to text input",

View File

@@ -29,10 +29,15 @@
"readAloudAgain": "再读",
"readAloudPause": "暂停朗读",
"readAloudResume": "继续朗读",
"readAloudRequest": "朗读",
"readAloudRequestFailed": "无法开始朗读,请检查网络或稍后重试。",
"readAloudNoMessageId": "该条尚未可朗读,请下拉刷新或稍后再试。",
"cannotReadAloud": "暂无法朗读",
"readingAloud": "朗读中…",
"recordingPermissionDenied": "需要麦克风权限才能录音",
"recordingStartFailed": "录音初始化失败,请重试",
"ttsThisTurn": "朗读",
"ttsThisTurnAccessibility": "开启后本条消息的助手回复将先合成语音再显示文字",
"send": "发送",
"startNewSubtitle": "记录新回忆,或与岁月知己分享你的想法。",
"switchToText": "切换到文字输入",