惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
博客园_首页
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
宝玉的分享
宝玉的分享

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: reuse prompt snapshot generation · openclaw/opencla...
shakkernerd · 2026-05-09 · via Recent Commits to openclaw:main

@@ -1,7 +1,7 @@

11

import fs from "node:fs";

22

import os from "node:os";

33

import path from "node:path";

4-

import { describe, expect, it } from "vitest";

4+

import { beforeAll, describe, expect, it } from "vitest";

55

import {

66

createFormattedPromptSnapshotFiles,

77

deleteStalePromptSnapshotFiles,

@@ -38,10 +38,15 @@ function renderedPromptSection(content: string, heading: string, nextHeading: st

3838

}

39394040

describe("happy path prompt snapshots", () => {

41+

let generatedSnapshots: Awaited<ReturnType<typeof createFormattedPromptSnapshotFiles>>;

42+43+

beforeAll(async () => {

44+

generatedSnapshots = await createFormattedPromptSnapshotFiles();

45+

});

46+4147

it("matches the committed Codex prompt snapshot artifacts", async () => {

42-

const generated = await createFormattedPromptSnapshotFiles();

43-

const expectedPaths = new Set(generated.map((file) => file.path));

44-

for (const file of generated) {

48+

const expectedPaths = new Set(generatedSnapshots.map((file) => file.path));

49+

for (const file of generatedSnapshots) {

4550

expect(fs.readFileSync(file.path, "utf8"), file.path).toBe(file.content);

4651

}

4752

const committed = fs

@@ -74,8 +79,10 @@ describe("happy path prompt snapshots", () => {

7479

});

75807681

it("renders the Codex model-bound prompt layers", async () => {

77-

const generated = await createFormattedPromptSnapshotFiles();

78-

const telegram = requireGeneratedSnapshot(generated, "telegram-direct-codex-message-tool.md");

82+

const telegram = requireGeneratedSnapshot(

83+

generatedSnapshots,

84+

"telegram-direct-codex-message-tool.md",

85+

);

79868087

expect(telegram).toContain("## Reconstructed Model-Bound Prompt Layers");

8188

expect(telegram).toContain("### System: Codex Model Instructions (gpt-5.5, pragmatic)");

@@ -95,10 +102,18 @@ describe("happy path prompt snapshots", () => {

95102

});

9610397104

it("keeps heartbeat guidance in heartbeat collaboration mode only", async () => {

98-

const generated = await createFormattedPromptSnapshotFiles();

99-

const direct = requireGeneratedSnapshot(generated, "telegram-direct-codex-message-tool.md");

100-

const group = requireGeneratedSnapshot(generated, "discord-group-codex-message-tool.md");

101-

const heartbeat = requireGeneratedSnapshot(generated, "telegram-heartbeat-codex-tool.md");

105+

const direct = requireGeneratedSnapshot(

106+

generatedSnapshots,

107+

"telegram-direct-codex-message-tool.md",

108+

);

109+

const group = requireGeneratedSnapshot(

110+

generatedSnapshots,

111+

"discord-group-codex-message-tool.md",

112+

);

113+

const heartbeat = requireGeneratedSnapshot(

114+

generatedSnapshots,

115+

"telegram-heartbeat-codex-tool.md",

116+

);

102117

const heartbeatPhrase = "The purpose of heartbeats is to make you feel magical and proactive.";

103118104119

expect(direct).toContain('"collaborationMode": {');