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

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
L
LangChain Blog
博客园 - Franky
美团技术团队
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
小众软件
小众软件
Y
Y Combinator Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News

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: mark final codex mirror user persistence · openclaw/...
shakkernerd · 2026-05-27 · via Recent Commits to openclaw:main

@@ -3255,9 +3255,11 @@ export async function runCodexAppServerAttempt(

32553255

abort: () => runAbortController.abort("aborted"),

32563256

};

32573257

setActiveEmbeddedRun(params.sessionId, handle, params.sessionKey);

3258+

const notifyUserMessagePersisted = createCodexAppServerUserMessagePersistenceNotifier(params);

32583259

void mirrorPromptAtTurnStartBestEffort({

32593260

params,

32603261

agentId: sessionAgentId,

3262+

notifyUserMessagePersisted,

32613263

sessionKey: sandboxSessionKey,

32623264

threadId: thread.threadId,

32633265

turnId: activeTurnId,

@@ -3372,6 +3374,7 @@ export async function runCodexAppServerAttempt(

33723374

await mirrorTranscriptBestEffort({

33733375

params,

33743376

agentId: sessionAgentId,

3377+

notifyUserMessagePersisted,

33753378

result,

33763379

sessionKey: contextSessionKey,

33773380

threadId: thread.threadId,

@@ -6083,13 +6086,14 @@ function getCodexContextFileBasename(filePath: string): string {

60836086

async function mirrorTranscriptBestEffort(params: {

60846087

params: EmbeddedRunAttemptParams;

60856088

agentId?: string;

6089+

notifyUserMessagePersisted: (message: Extract<AgentMessage, { role: "user" }>) => void;

60866090

result: EmbeddedRunAttemptResult;

60876091

sessionKey?: string;

60886092

threadId: string;

60896093

turnId: string;

60906094

}): Promise<void> {

60916095

try {

6092-

await mirrorCodexAppServerTranscript({

6096+

const mirrorResult = await mirrorCodexAppServerTranscript({

60936097

sessionFile: params.params.sessionFile,

60946098

agentId: params.agentId,

60956099

sessionKey: params.sessionKey,

@@ -6104,27 +6108,38 @@ async function mirrorTranscriptBestEffort(params: {

61046108

idempotencyScope: `codex-app-server:${params.threadId}`,

61056109

config: params.params.config,

61066110

});

6111+

for (const message of mirrorResult.userMessagesPresent) {

6112+

params.notifyUserMessagePersisted(message);

6113+

}

61076114

} catch (error) {

61086115

embeddedAgentLog.warn("failed to mirror codex app-server transcript", { error });

61096116

}

61106117

}

611161186112-

function notifyCodexAppServerUserMessagePersisted(params: {

6113-

message: Extract<AgentMessage, { role: "user" }>;

6114-

runParams: EmbeddedRunAttemptParams;

6115-

}) {

6116-

try {

6117-

params.runParams.onUserMessagePersisted?.(params.message);

6118-

} catch (error) {

6119-

embeddedAgentLog.warn("codex app-server user persistence notification failed", {

6120-

error: formatErrorMessage(error),

6121-

});

6122-

}

6119+

function createCodexAppServerUserMessagePersistenceNotifier(

6120+

runParams: EmbeddedRunAttemptParams,

6121+

): (message: Extract<AgentMessage, { role: "user" }>) => void {

6122+

let notified = false;

6123+

return (message) => {

6124+

if (notified) {

6125+

return;

6126+

}

6127+

notified = true;

6128+

runParams.userTurnTranscriptRecorder?.markRuntimePersisted(message);

6129+

try {

6130+

runParams.onUserMessagePersisted?.(message);

6131+

} catch (error) {

6132+

embeddedAgentLog.warn("codex app-server user persistence notification failed", {

6133+

error: formatErrorMessage(error),

6134+

});

6135+

}

6136+

};

61236137

}

6124613861256139

async function mirrorPromptAtTurnStartBestEffort(params: {

61266140

params: EmbeddedRunAttemptParams;

61276141

agentId?: string;

6142+

notifyUserMessagePersisted: (message: Extract<AgentMessage, { role: "user" }>) => void;

61286143

sessionKey?: string;

61296144

threadId: string;

61306145

turnId: string;

@@ -6147,10 +6162,7 @@ async function mirrorPromptAtTurnStartBestEffort(params: {

61476162

config: params.params.config,

61486163

});

61496164

for (const message of mirrorResult.userMessagesPresent) {

6150-

notifyCodexAppServerUserMessagePersisted({

6151-

runParams: params.params,

6152-

message,

6153-

});

6165+

params.notifyUserMessagePersisted(message);

61546166

}

61556167

})();

61566168

params.params.userTurnTranscriptRecorder?.markRuntimePersistencePending(mirrorPromise);