feat(keyboard): unify assistant voice and AI workflows

Merge dictation and AI controls into one assistant surface, preserve safe insertion and clipboard actions, and align settings and tests with the new flow.
This commit is contained in:
Rocky
2026-08-16 12:07:06 +08:00
parent 46f6d818b8
commit fb97ec2937
45 changed files with 1969 additions and 2143 deletions
@@ -77,7 +77,11 @@ public enum AIQuestionPromptComposer {
languageInstruction = "Reply in the language used by the user's latest question."
} else {
let language = TranslationLanguageCatalog.resolve(targetLocaleID)
languageInstruction = "Reply in \(language.promptLanguageName)."
languageInstruction = """
Reply in \(language.promptLanguageName), unless the user's latest
request explicitly asks for another output language or asks to
preserve the source language.
"""
}
return """