73bc2587b876edc14b4ac421080370c2b3c9c5bd
Voice interactions still called OpenRouter directly from the main
process with a leftover pre-redesign system prompt ("coach de
formation vocal"), bypassing Max API's intent router and the new
PERSONALITY_PROMPT entirely - causing Max to misrepresent himself in
spoken conversation. voice-turn now calls routeMessage() (the same
POST /sessions/messages entry point the chat window uses), so voice
and text share one personality and one pipeline.
The leaked-boilerplate/degenerate-text safety checks that used to live
alongside the old direct OpenRouter call move to a focused
speechSafety.ts module, still applied to the reply before it's spoken.
getAssistantReply() and its model-fallback plumbing are deleted - that
logic now lives server-side in Max API's OpenRouterService.
A learn-intent voice command (e.g. saying "apprends-moi React out
loud") now opens the pipeline stepper and syncs session status exactly
like typing it in chat, via a handleRouteMessageResult() helper shared
between voice-turn and sessions:route-message.
Known limitations (unchanged from the text-chat intent router, now
just consistent across both channels): casual chat-intent turns have
no cross-turn memory (no pre-session history storage server-side yet),
and a voice-started session's messages don't appear in the chat
window's own transcript if opened afterwards (per-window state only).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
forge-scaffold
An Electron application with React and TypeScript
Recommended IDE Setup
Project Setup
Le code de l'application vit dans le sous-dossier Max Avatar/ (la racine du depot ne contient
que la documentation et la configuration partagee : CLAUDE.md, docs/, .gitea/, .husky/).
Toutes les commandes ci-dessous s'executent depuis Max Avatar/.
Install
$ cd "Max Avatar"
$ npm install
Development
$ npm run dev
Build
# For windows
$ npm run build:win
# For macOS
$ npm run build:mac
# For Linux
$ npm run build:linux
Languages
TypeScript
95.8%
JavaScript
3.8%
CSS
0.2%
HTML
0.1%