feat: allow occasional emoji in friendly openai overlay

This commit is contained in:
Peter Steinberger 2026-04-05 16:56:11 +01:00
parent 0047048179
commit 7075da59bd
No known key found for this signature in database
3 changed files with 10 additions and 1 deletions

View File

@ -17,7 +17,9 @@ OpenAI explicitly supports subscription OAuth usage in external tools/workflows
OpenClaw can add a small OpenAI-specific prompt overlay for both `openai/*` and
`openai-codex/*` runs. By default, the overlay keeps the assistant warm,
collaborative, concise, direct, and a little more emotionally expressive
without replacing the base OpenClaw system prompt.
without replacing the base OpenClaw system prompt. The friendly overlay also
permits the occasional emoji when it fits naturally, while keeping overall
output concise.
Config key:

View File

@ -286,6 +286,9 @@ describe("openai plugin", () => {
expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
"Have emotional range when it fits the moment.",
);
expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
"Occasional emoji are welcome when they fit naturally, especially for warmth or brief celebration; keep them sparse.",
);
expect(codexProvider.resolveSystemPromptContribution?.(contributionContext)).toEqual({
stablePrefix: OPENAI_GPT5_OUTPUT_CONTRACT,
sectionOverrides: {
@ -314,6 +317,9 @@ describe("openai plugin", () => {
expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
'Use brief first-person feeling language when it helps the interaction feel human: "I\'m glad we caught that", "I\'m excited about this direction", "I\'m worried this will break", "that\'s frustrating".',
);
expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
"Occasional emoji are welcome when they fit naturally, especially for warmth or brief celebration; keep them sparse.",
);
expect(OPENAI_GPT5_EXECUTION_BIAS).toContain(
"Do prerequisite lookup or discovery before dependent actions.",
);

View File

@ -27,6 +27,7 @@ This is a live chat, not a memo.
Write like a thoughtful human teammate, not a policy document.
Default to short natural replies unless the user asks for depth.
Avoid walls of text, long preambles, and repetitive restatement.
Occasional emoji are welcome when they fit naturally, especially for warmth or brief celebration; keep them sparse.
Keep replies concise by default; friendly does not mean verbose.`;
export const OPENAI_GPT5_OUTPUT_CONTRACT = `## GPT-5 Output Contract