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

推荐订阅源

V
Visual Studio Blog
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
The Cloudflare Blog
D
DataBreaches.Net
J
Java Code Geeks
G
Google Developers Blog
L
LangChain Blog
N
Netflix TechBlog - Medium
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
小众软件
小众软件
量子位
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
博客园_首页
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
腾讯CDC

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): beta blocker - keep context engine on canonic...
neeravmakwan · 2026-05-21 · via Recent Commits to openclaw:main

@@ -808,6 +808,7 @@ export async function runCodexAppServerAttempt(

808808

await fs.mkdir(resolvedWorkspace, { recursive: true });

809809

const sandboxSessionKey =

810810

params.sandboxSessionKey?.trim() || params.sessionKey?.trim() || params.sessionId;

811+

const contextSessionKey = params.sessionKey?.trim() || sandboxSessionKey;

811812

const sandbox = await resolveSandboxContext({

812813

config: params.config,

813814

sessionKey: sandboxSessionKey,

@@ -882,7 +883,7 @@ export async function runCodexAppServerAttempt(

882883

});

883884

const runtimeParams = {

884885

...params,

885-

sessionKey: sandboxSessionKey,

886+

sessionKey: contextSessionKey,

886887

...(startupAuthProfileId ? { authProfileId: startupAuthProfileId } : {}),

887888

};

888889

let activeSessionId = params.sessionId;

@@ -1000,7 +1001,7 @@ export async function runCodexAppServerAttempt(

10001001

hadSessionFile,

10011002

contextEngine: activeContextEngine,

10021003

sessionId: activeSessionId,

1003-

sessionKey: sandboxSessionKey,

1004+

sessionKey: contextSessionKey,

10041005

sessionFile: activeSessionFile,

10051006

runtimeContext: buildActiveContextEngineRuntimeContext(),

10061007

runMaintenance: runHarnessContextEngineMaintenance,

@@ -1014,7 +1015,7 @@ export async function runCodexAppServerAttempt(

10141015

params,

10151016

resolvedWorkspace,

10161017

effectiveWorkspace,

1017-

sessionKey: sandboxSessionKey,

1018+

sessionKey: contextSessionKey,

10181019

sessionAgentId,

10191020

});

10201021

const baseDeveloperInstructions = joinPresentSections(

@@ -1047,7 +1048,7 @@ export async function runCodexAppServerAttempt(

10471048

const assembled = await assembleHarnessContextEngine({

10481049

contextEngine: activeContextEngine,

10491050

sessionId: activeSessionId,

1050-

sessionKey: sandboxSessionKey,

1051+

sessionKey: contextSessionKey,

10511052

messages: historyMessages,

10521053

tokenBudget: params.contextTokenBudget,

10531054

availableTools: new Set(toolBridge.specs.map((tool) => tool.name).filter(isNonEmptyString)),

@@ -1087,7 +1088,7 @@ export async function runCodexAppServerAttempt(

10871088

: { project: true, reason: "per-turn-projection" };

10881089

embeddedAgentLog.info("codex app-server context-engine projection decision", {

10891090

sessionId: params.sessionId,

1090-

sessionKey: sandboxSessionKey,

1091+

sessionKey: contextSessionKey,

10911092

engineId: activeContextEngine.info.id,

10921093

mode: contextEngineProjection?.mode ?? assembled.contextProjection?.mode ?? "per_turn",

10931094

epoch: contextEngineProjection?.epoch,

@@ -1148,7 +1149,7 @@ export async function runCodexAppServerAttempt(

11481149

};

11491150

const systemPromptReport = buildCodexSystemPromptReport({

11501151

attempt: params,

1151-

sessionKey: sandboxSessionKey,

1152+

sessionKey: contextSessionKey,

11521153

workspaceDir: effectiveWorkspace,

11531154

developerInstructions: promptBuild.developerInstructions,

11541155

workspaceBootstrapContext,

@@ -2254,7 +2255,7 @@ export async function runCodexAppServerAttempt(

22542255

"codex app-server context-engine turn overflowed; forcing context-engine compaction",

22552256

{

22562257

sessionId: activeSessionId,

2257-

sessionKey: sandboxSessionKey,

2258+

sessionKey: contextSessionKey,

22582259

threadId: thread.threadId,

22592260

engineId: activeContextEngine.info.id,

22602261

tokenBudget: params.contextTokenBudget,

@@ -2273,7 +2274,7 @@ export async function runCodexAppServerAttempt(

22732274

activeContextEngine,

22742275

{

22752276

sessionId: activeSessionId,

2276-

sessionKey: sandboxSessionKey,

2277+

sessionKey: contextSessionKey,

22772278

sessionFile: activeSessionFile,

22782279

tokenBudget: params.contextTokenBudget,

22792280

force: true,

@@ -2291,7 +2292,7 @@ export async function runCodexAppServerAttempt(

22912292

);

22922293

embeddedAgentLog.info("codex app-server context-engine forced compaction result", {

22932294

sessionId: activeSessionId,

2294-

sessionKey: sandboxSessionKey,

2295+

sessionKey: contextSessionKey,

22952296

engineId: activeContextEngine.info.id,

22962297

ok: compactResult.ok,

22972298

compacted: compactResult.compacted,

@@ -2307,7 +2308,7 @@ export async function runCodexAppServerAttempt(

23072308

await runHarnessContextEngineMaintenance({

23082309

contextEngine: activeContextEngine,

23092310

sessionId: activeSessionId,

2310-

sessionKey: sandboxSessionKey,

2311+

sessionKey: contextSessionKey,

23112312

sessionFile: activeSessionFile,

23122313

reason: "compaction",

23132314

runtimeContext: maintenanceRuntimeContext,

@@ -2317,7 +2318,7 @@ export async function runCodexAppServerAttempt(

23172318

} catch (compactErr) {

23182319

embeddedAgentLog.warn("codex app-server context-engine forced compaction failed", {

23192320

sessionId: params.sessionId,

2320-

sessionKey: sandboxSessionKey,

2321+

sessionKey: contextSessionKey,

23212322

engineId: activeContextEngine.info.id,

23222323

error: formatErrorMessage(compactErr),

23232324

});

@@ -2682,7 +2683,7 @@ export async function runCodexAppServerAttempt(

26822683

params,

26832684

agentId: sessionAgentId,

26842685

result,

2685-

sessionKey: sandboxSessionKey,

2686+

sessionKey: contextSessionKey,

26862687

threadId: thread.threadId,

26872688

turnId: activeTurnId,

26882689

});

@@ -2715,7 +2716,7 @@ export async function runCodexAppServerAttempt(

27152716

aborted: finalAborted,

27162717

yieldAborted: Boolean(result.yieldDetected),

27172718

sessionIdUsed: activeSessionId,

2718-

sessionKey: sandboxSessionKey,

2719+

sessionKey: contextSessionKey,

27192720

sessionFile: activeSessionFile,

27202721

messagesSnapshot: finalMessages,

27212722

prePromptMessageCount,