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

推荐订阅源

G
Google Developers Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
Vercel News
Vercel News
Recent Announcements
Recent Announcements
博客园 - Franky
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
宝玉的分享
宝玉的分享
I
InfoQ
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
V
V2EX
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
T
The Blog of Author Tim Ferriss
量子位

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/app-server): forward bootstrap into developerIn...
lonexreb · 2026-05-06 · via Recent Commits to openclaw:main

@@ -484,8 +484,21 @@ export async function runCodexAppServerAttempt(

484484

(await readMirroredSessionHistoryMessages(params.sessionFile)) ?? historyMessages;

485485

}

486486

const baseDeveloperInstructions = buildDeveloperInstructions(params);

487+

// Build the workspace bootstrap block before finalizing developer

488+

// instructions so persona files (SOUL.md, IDENTITY.md, ...) reach Codex

489+

// through the explicit `developerInstructions` field.

490+

const workspaceBootstrapInstructions = await buildCodexWorkspaceBootstrapInstructions({

491+

params,

492+

resolvedWorkspace,

493+

effectiveWorkspace,

494+

sessionKey: sandboxSessionKey,

495+

sessionAgentId,

496+

});

487497

let promptText = params.prompt;

488-

let developerInstructions = baseDeveloperInstructions;

498+

let developerInstructions = joinPresentSections(

499+

baseDeveloperInstructions,

500+

workspaceBootstrapInstructions,

501+

);

489502

let prePromptMessageCount = historyMessages.length;

490503

if (activeContextEngine) {

491504

try {

@@ -512,6 +525,7 @@ export async function runCodexAppServerAttempt(

512525

promptText = projection.promptText;

513526

developerInstructions = joinPresentSections(

514527

baseDeveloperInstructions,

528+

workspaceBootstrapInstructions,

515529

projection.developerInstructionAddition,

516530

);

517531

prePromptMessageCount = projection.prePromptMessageCount;

@@ -541,13 +555,6 @@ export async function runCodexAppServerAttempt(

541555

messages: historyMessages,

542556

ctx: hookContext,

543557

});

544-

const workspaceBootstrapInstructions = await buildCodexWorkspaceBootstrapInstructions({

545-

params,

546-

resolvedWorkspace,

547-

effectiveWorkspace,

548-

sessionKey: sandboxSessionKey,

549-

sessionAgentId,

550-

});

551558

const trajectoryRecorder = createCodexTrajectoryRecorder({

552559

attempt: params,

553560

cwd: effectiveWorkspace,

@@ -583,10 +590,7 @@ export async function runCodexAppServerAttempt(

583590

: options.nativeHookRelay?.enabled === false

584591

? buildCodexNativeHookRelayDisabledConfig()

585592

: undefined;

586-

const threadConfig = mergeCodexConfigInstructions(

587-

nativeHookRelayConfig,

588-

workspaceBootstrapInstructions,

589-

);

593+

const threadConfig = nativeHookRelayConfig;

590594

({ client, thread } = await withCodexStartupTimeout({

591595

timeoutMs: params.timeoutMs,

592596

timeoutFloorMs: options.startupTimeoutFloorMs,

@@ -1871,20 +1875,6 @@ function renderCodexWorkspaceBootstrapInstructions(

18711875

return lines.join("\n").trim();

18721876

}

187318771874-

function mergeCodexConfigInstructions(

1875-

config: JsonObject | undefined,

1876-

instructions: string | undefined,

1877-

): JsonObject | undefined {

1878-

if (!instructions?.trim()) {

1879-

return config;

1880-

}

1881-

const merged: JsonObject = { ...config };

1882-

const existingInstructions =

1883-

typeof merged.instructions === "string" ? merged.instructions.trim() : undefined;

1884-

merged.instructions = joinPresentSections(existingInstructions, instructions);

1885-

return merged;

1886-

}

1887-18881878

function remapCodexContextFilePath(params: {

18891879

file: EmbeddedContextFile;

18901880

sourceWorkspaceDir: string;