fix(ui): support legacy prompts and publication confirmation

This commit is contained in:
john
2026-07-14 15:05:37 +08:00
parent 77f1ea8350
commit f2d0c99f6c
5 changed files with 105 additions and 1 deletions
+12
View File
@@ -49,6 +49,18 @@ assertIncludes(conversationDisplay, 'deriveAssistantFacingText', 'conversation-d
const chatSkills = read('chat-skills.mjs');
assertIncludes(chatSkills, 'stripKnownChatSkillPrompt', 'chat-skills.mjs');
assertIncludes(chatSkills, "legacyEndMarker = '并说明后台入口与口令。'", 'chat-skills.mjs');
const chatPanel = read('src/components/ChatPanel.tsx');
assertIncludes(chatPanel, "import { VoiceInputButton } from './VoiceInputButton'", 'ChatPanel.tsx');
assertIncludes(chatPanel, '<VoiceInputButton', 'ChatPanel.tsx');
assertIncludes(chatPanel, 'onLiveTranscript={handleVoiceLiveTranscript}', 'ChatPanel.tsx');
assertIncludes(chatPanel, 'onTranscript={handleVoiceTranscript}', 'ChatPanel.tsx');
assertIncludes(chatPanel, 'setInput(mergeVoiceText(text))', 'ChatPanel.tsx voice transcript wiring');
const voiceInputButton = read('src/components/VoiceInputButton.tsx');
assertIncludes(voiceInputButton, 'useVoiceSession({', 'VoiceInputButton.tsx');
assertIncludes(voiceInputButton, 'onTranscript?.(transcript)', 'VoiceInputButton.tsx');
const server = read('server.mjs');
assertIncludes(server, 'canUseSnapshotCache', 'server.mjs');