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

推荐订阅源

罗磊的独立博客
G
Google Developers Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
有赞技术团队
有赞技术团队
Vercel News
Vercel News
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog RSS Feed
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
博客园_首页
The Cloudflare Blog
B
Blog
C
Check Point Blog
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
U
Unit 42
D
Docker
月光博客
月光博客
aimingoo的专栏
aimingoo的专栏
博客园 - Franky
A
About on SuperTechFans

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
fix codex thread continuity · openclaw/openclaw@8cf1800
VACInc · 2026-05-05 · via Recent Commits to openclaw:main

@@ -146,6 +146,14 @@ function assistantMessage(text: string, timestamp: number) {

146146

};

147147

}

148148149+

function userMessage(text: string, timestamp: number) {

150+

return {

151+

role: "user" as const,

152+

content: [{ type: "text" as const, text }],

153+

timestamp,

154+

};

155+

}

156+149157

function createAppServerHarness(

150158

requestImpl: (method: string, params: unknown) => Promise<unknown>,

151159

options: {

@@ -752,6 +760,34 @@ describe("runCodexAppServerAttempt", () => {

752760

);

753761

});

754762763+

it("projects mirrored history when starting Codex without a native thread binding", async () => {

764+

const sessionFile = path.join(tempDir, "session.jsonl");

765+

const workspaceDir = path.join(tempDir, "workspace");

766+

const sessionManager = SessionManager.open(sessionFile);

767+

sessionManager.appendMessage(userMessage("we are fixing the Opik default project", Date.now()));

768+

sessionManager.appendMessage(assistantMessage("Opik default project context", Date.now() + 1));

769+

const harness = createStartedThreadHarness();

770+

const params = createParams(sessionFile, workspaceDir);

771+

params.prompt = "make the default webpage openclaw";

772+773+

const run = runCodexAppServerAttempt(params);

774+

await harness.waitForMethod("turn/start");

775+

await new Promise<void>((resolve) => setImmediate(resolve));

776+

await harness.completeTurn({ threadId: "thread-1", turnId: "turn-1" });

777+

await run;

778+779+

const turnStart = harness.requests.find((request) => request.method === "turn/start");

780+

const inputText =

781+

(turnStart?.params as { input?: Array<{ text?: string }> } | undefined)?.input?.[0]?.text ??

782+

"";

783+784+

expect(inputText).toContain("OpenClaw assembled context for this turn:");

785+

expect(inputText).toContain("we are fixing the Opik default project");

786+

expect(inputText).toContain("Opik default project context");

787+

expect(inputText).toContain("Current user request:");

788+

expect(inputText).toContain("make the default webpage openclaw");

789+

});

790+755791

it("passes OpenClaw bootstrap files through Codex config instructions", async () => {

756792

const sessionFile = path.join(tempDir, "session.jsonl");

757793

const workspaceDir = path.join(tempDir, "workspace");

@@ -2048,6 +2084,90 @@ describe("runCodexAppServerAttempt", () => {

20482084

expect(request.mock.calls.map(([method]) => method)).toEqual(["thread/start", "thread/resume"]);

20492085

});

205020862087+

it("resumes a bound Codex thread when dynamic tools are reordered", async () => {

2088+

const sessionFile = path.join(tempDir, "session.jsonl");

2089+

const workspaceDir = path.join(tempDir, "workspace");

2090+

const params = createParams(sessionFile, workspaceDir);

2091+

const appServer = createThreadLifecycleAppServerOptions();

2092+

const request = vi.fn(async (method: string) => {

2093+

if (method === "thread/start") {

2094+

return threadStartResult("thread-existing");

2095+

}

2096+

if (method === "thread/resume") {

2097+

return threadStartResult("thread-existing");

2098+

}

2099+

throw new Error(`unexpected method: ${method}`);

2100+

});

2101+2102+

await startOrResumeThread({

2103+

client: { request } as never,

2104+

params,

2105+

cwd: workspaceDir,

2106+

dynamicTools: [createNamedDynamicTool("wiki_status"), createNamedDynamicTool("diffs")],

2107+

appServer,

2108+

});

2109+

const binding = await startOrResumeThread({

2110+

client: { request } as never,

2111+

params,

2112+

cwd: workspaceDir,

2113+

dynamicTools: [createNamedDynamicTool("diffs"), createNamedDynamicTool("wiki_status")],

2114+

appServer,

2115+

});

2116+2117+

expect(binding.threadId).toBe("thread-existing");

2118+

expect(request.mock.calls.map(([method]) => method)).toEqual(["thread/start", "thread/resume"]);

2119+

});

2120+2121+

it("keeps the previous dynamic tool fingerprint for transient no-tool maintenance turns", async () => {

2122+

const sessionFile = path.join(tempDir, "session.jsonl");

2123+

const workspaceDir = path.join(tempDir, "workspace");

2124+

const params = createParams(sessionFile, workspaceDir);

2125+

const appServer = createThreadLifecycleAppServerOptions();

2126+

let nextThread = 1;

2127+

const request = vi.fn(async (method: string) => {

2128+

if (method === "thread/start") {

2129+

return threadStartResult(`thread-${nextThread++}`);

2130+

}

2131+

if (method === "thread/resume") {

2132+

return threadStartResult("thread-1");

2133+

}

2134+

throw new Error(`unexpected method: ${method}`);

2135+

});

2136+2137+

await startOrResumeThread({

2138+

client: { request } as never,

2139+

params,

2140+

cwd: workspaceDir,

2141+

dynamicTools: [createMessageDynamicTool("Send and manage messages.")],

2142+

appServer,

2143+

});

2144+

const fingerprint = (await readCodexAppServerBinding(sessionFile))?.dynamicToolsFingerprint;

2145+

await startOrResumeThread({

2146+

client: { request } as never,

2147+

params,

2148+

cwd: workspaceDir,

2149+

dynamicTools: [],

2150+

appServer,

2151+

});

2152+

await startOrResumeThread({

2153+

client: { request } as never,

2154+

params,

2155+

cwd: workspaceDir,

2156+

dynamicTools: [createMessageDynamicTool("Send and manage messages.")],

2157+

appServer,

2158+

});

2159+2160+

await expect(readCodexAppServerBinding(sessionFile)).resolves.toMatchObject({

2161+

dynamicToolsFingerprint: fingerprint,

2162+

threadId: "thread-1",

2163+

});

2164+

expect(request.mock.calls.map(([method]) => method)).toEqual([

2165+

"thread/start",

2166+

"thread/start",

2167+

"thread/resume",

2168+

]);

2169+

});

2170+20512171

it("preserves the binding when the app-server closes during thread resume", async () => {

20522172

const sessionFile = path.join(tempDir, "session.jsonl");

20532173

const workspaceDir = path.join(tempDir, "workspace");