Gedanken auf Deutsch: BASE_INSTRUCTION injiziert + Label übersetzt [appimage]
All checks were successful
Build AppImage / build (push) Successful in 6m11s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eddy 2026-04-20 23:58:04 +02:00
parent 100ba9d5d4
commit 600c7943ed

View file

@ -358,11 +358,15 @@ async function sendMessage(message, requestId, model = null, contextOverride = n
sendMonitorEvent('agent', `Orchestrator-Modus: ${effectiveMode}`, { mode: effectiveMode });
}
// Nachricht mit Context und Orchestrator kombinieren
// Basis-Anweisung: Sprache + Verhalten
const BASE_INSTRUCTION = `WICHTIG: Antworte IMMER auf Deutsch. Denke und formuliere deine Gedanken (Thinking) ebenfalls auf Deutsch. Du bist ein technischer Assistent für Eddy (Eduard Wisch). Fasse dich kurz und präzise.`;
// Nachricht mit Context, Basis-Anweisung und Orchestrator kombinieren
let fullPrompt = message;
if (orchestratorPrompt) {
fullPrompt = `${orchestratorPrompt}\n\n---\n\n${message}`;
}
fullPrompt = `${BASE_INSTRUCTION}\n\n---\n\n${fullPrompt}`;
if (useContext) {
fullPrompt = `${useContext}\n\n---\n\n${fullPrompt}`;
}
@ -545,7 +549,7 @@ async function sendMessage(message, requestId, model = null, contextOverride = n
} else if (block.type === 'thinking' && block.thinking) {
// Extended Thinking — als kompaktes Inline-Element (immer sichtbar)
const escaped = block.thinking.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
const inlineThinking = `<div class="thinking-inline"><span class="thinking-label">\u{1F4AD}</span><span class="thinking-text">${escaped}</span></div>\n\n`;
const inlineThinking = `<div class="thinking-inline"><span class="thinking-label">💭 Gedanken</span><span class="thinking-text">${escaped}</span></div>\n\n`;
fullText += inlineThinking;
sendEvent('text', { text: inlineThinking });
} else if (block.type === 'tool_use') {