chore: add system marker to directives and abort

main
Peter Steinberger 2025-12-05 21:37:11 +00:00
parent fffe1be521
commit fe87160b19
1 changed files with 8 additions and 8 deletions

View File

@ -436,26 +436,26 @@ export async function getReplyFromConfig(
if (hasThinkDirective) { if (hasThinkDirective) {
if (!inlineThink) { if (!inlineThink) {
parts.push( parts.push(
`Unrecognized thinking level "${rawThinkLevel ?? ""}". Valid levels: off, minimal, low, medium, high.`, `⚙️ Unrecognized thinking level "${rawThinkLevel ?? ""}". Valid levels: off, minimal, low, medium, high.`,
); );
} else { } else {
parts.push( parts.push(
inlineThink === "off" inlineThink === "off"
? "Thinking disabled." ? "⚙️ Thinking disabled."
: `Thinking level set to ${inlineThink}.`, : `⚙️ Thinking level set to ${inlineThink}.`,
); );
} }
} }
if (hasVerboseDirective) { if (hasVerboseDirective) {
if (!inlineVerbose) { if (!inlineVerbose) {
parts.push( parts.push(
`Unrecognized verbose level "${rawVerboseLevel ?? ""}". Valid levels: off, on.`, `⚙️ Unrecognized verbose level "${rawVerboseLevel ?? ""}". Valid levels: off, on.`,
); );
} else { } else {
parts.push( parts.push(
inlineVerbose === "off" inlineVerbose === "off"
? "Verbose logging disabled." ? "⚙️ Verbose logging disabled."
: "Verbose logging enabled.", : "⚙️ Verbose logging enabled.",
); );
} }
} }
@ -498,7 +498,7 @@ export async function getReplyFromConfig(
triggerWarelayRestart(); triggerWarelayRestart();
cleanupTyping(); cleanupTyping();
return { return {
text: "Restarting clawdis via launchctl; give me a few seconds to come back online.", text: "⚙️ Restarting clawdis via launchctl; give me a few seconds to come back online.",
}; };
} }
@ -515,7 +515,7 @@ export async function getReplyFromConfig(
ABORT_MEMORY.set(abortKey, true); ABORT_MEMORY.set(abortKey, true);
} }
cleanupTyping(); cleanupTyping();
return { text: "Agent was aborted." }; return { text: "⚙️ Agent was aborted." };
} }
await startTypingLoop(); await startTypingLoop();