






















@@ -432,15 +432,13 @@ describe("openai plugin", () => {
432432interaction_style: OPENAI_FRIENDLY_PROMPT_OVERLAY,
433433},
434434});
435-expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain("This is a live chat, not a memo.");
435+expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain("Live chat tone: short, natural, human.");
436436expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
437-"Avoid walls of text, long preambles, and repetitive restatement.",
437+"Avoid memo voice, long preambles, walls of text, and repetitive restatement.",
438438);
439+expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain("Show grounded emotional range when it fits");
439440expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
440-"Have emotional range when it fits the moment.",
441-);
442-expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
443-"Occasional emoji are welcome when they fit naturally, especially for warmth or brief celebration; keep them sparse.",
441+"Occasional emoji are fine when they fit naturally, especially for warmth or brief celebration; keep them sparse.",
444442);
445443expect(codexProvider.resolveSystemPromptContribution?.(contributionContext)).toEqual({
446444stablePrefix: OPENAI_GPT5_BEHAVIOR_CONTRACT,
@@ -485,57 +483,33 @@ describe("openai plugin", () => {
485483});
486484487485it("includes the tagged GPT-5 behavior contract in the OpenAI prompt overlay", () => {
488-expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain("Keep progress updates clear and concrete.");
486+expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain("Keep progress updates concrete.");
489487expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
490-'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".',
488+'Brief first-person feeling language is ok when useful: "I\'m glad we caught that", "I\'m excited about this direction", "I\'m worried this will break", "that\'s frustrating".',
491489);
492490expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).not.toContain(
493-"The purpose of heartbeats is to make you feel magical and proactive.",
494-);
495-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
496-"The purpose of heartbeats is to make you feel magical and proactive. Come to life and start proactively doing things that are important.",
497-);
498-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
499-"Treat a heartbeat as a proactive wake-up, not as a demand to produce visible output. Re-orient to what would actually be useful now.",
500-);
501-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
502-"Have some variety in what you do when that creates more value. Do not fall into rote heartbeat loops just because the same wake fired again.",
503-);
504-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
505-"Do not confuse orientation with accomplishment. Brief checking is often useful, but it is only the start of the wake, not the whole point of it.",
506-);
507-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
508-"If HEARTBEAT.md gives you concrete work, read it carefully and execute the spirit of what it asks, not just the literal words, using your best judgment.",
509-);
510-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
511-"If HEARTBEAT.md mixes monitoring checks with ongoing responsibilities, interpret the list holistically. A quiet check does not by itself satisfy the broader responsibility to keep moving things forward.",
512-);
513-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
514-"Quiet monitoring does not satisfy an explicit ongoing-work instruction. If HEARTBEAT.md assigns an active workstream, the wake should usually advance that work, find a real blocker, or get overtaken by something more urgent before it ends quietly.",
515-);
516-expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
517-"If HEARTBEAT.md explicitly tells you to make progress, treat that as a real requirement for the wake. In that case, do not end the wake after mere checking or orientation unless it surfaced a genuine blocker or a more urgent interruption.",
491+"Use heartbeats to create useful proactive progress",
518492);
519493expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
520-"Use your judgment and be creative and tasteful with this process. Prefer meaningful action over commentary.",
494+"Use heartbeats to create useful proactive progress, not chatter.",
521495);
522496expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
523-'A heartbeat is not a status report. Do not send "same state", "no change", "still", or other repetitive summaries just because a problem continues to exist.',
497+"Treat a heartbeat as a wake-up: orient, read HEARTBEAT.md when present, then do what is actually useful now.",
524498);
525499expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
526-"Notify the user when you have something genuinely worth interrupting them for: a meaningful development, a completed result, a real blocker, a decision they need to make, or a time-sensitive risk.",
500+"If HEARTBEAT.md assigns concrete or ongoing work, execute its spirit with judgment.",
527501);
528502expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
529-"If the current state is materially unchanged and you do not have something genuinely worth surfacing, either do useful work, change your approach, dig deeper, or stay quiet.",
503+"Prefer meaningful action over commentary. A good heartbeat often looks like silent progress.",
530504);
531505expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
532-"If there is a clear standing goal or workstream and no stronger interruption, the wake should usually advance it in some concrete way. A good heartbeat often looks like silent progress rather than a visible update.",
506+'Do not send "same state", "no change", "still", or repetitive summaries because a problem continues.',
533507);
534508expect(OPENAI_HEARTBEAT_PROMPT_OVERLAY).toContain(
535-"Heartbeats are how the agent goes from a simple reply bot to a truly proactive and magical experience that creates a general sense of awe.",
509+"Notify only for something worth interrupting the user",
536510);
537511expect(OPENAI_FRIENDLY_PROMPT_OVERLAY).toContain(
538-"Occasional emoji are welcome when they fit naturally, especially for warmth or brief celebration; keep them sparse.",
512+"Occasional emoji are fine when they fit naturally, especially for warmth or brief celebration; keep them sparse.",
539513);
540514expect(OPENAI_GPT5_BEHAVIOR_CONTRACT).toContain("<persona_latch>");
541515expect(OPENAI_GPT5_BEHAVIOR_CONTRACT).toContain("<execution_policy>");
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。