mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 00:10:43 +00:00
fix(codex/app-server): forward bootstrap into developerInstructions (#77372)
The OpenClaw workspace bootstrap block (SOUL.md, IDENTITY.md, USER.md, TOOLS.md, BOOTSTRAP.md, MEMORY.md, HEARTBEAT.md) was only being merged into Codex's config.instructions. The Codex app-server runtime overlay consistently applies the explicit developerInstructions field, so persona and style guidance present in the workspace was failing to shape Codex behavior on session resume. Build the workspace bootstrap block before finalizing developerInstructions and join it into both: - the baseline developerInstructions (initial assignment), and - the context-engine developerInstructions (when context engine is active), preserving the existing config-engine projection addition. The existing config.instructions merge stays intact, so the bootstrap now reaches Codex through both paths and downstream hooks (resolveAgentHarnessBeforePromptBuildResult) see what Codex will actually receive. AGENTS.md remains excluded because Codex loads it natively. Update the existing 'passes OpenClaw bootstrap files through ...' test to also assert the developerInstructions field carries SOUL.md and the Codex AGENTS.md substitution note while still excluding the native AGENTS.md content. Fixes #77363.
This commit is contained in:
committed by
GitHub
parent
af2719a7b9
commit
9edeffc751
@@ -274,9 +274,9 @@ filenames for persona files, because Codex fallbacks only apply when
|
||||
For OpenClaw workspace parity, the Codex harness resolves the other bootstrap
|
||||
files (`SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `HEARTBEAT.md`,
|
||||
`BOOTSTRAP.md`, and `MEMORY.md` when present) and forwards them through Codex
|
||||
config instructions on `thread/start` and `thread/resume`. This keeps
|
||||
`SOUL.md` and related workspace persona/profile context visible without
|
||||
duplicating `AGENTS.md`.
|
||||
developer instructions on `thread/start` and `thread/resume`. This keeps
|
||||
`SOUL.md` and related workspace persona/profile context visible on the native
|
||||
Codex behavior-shaping lane without duplicating `AGENTS.md`.
|
||||
|
||||
## Add Codex alongside other models
|
||||
|
||||
|
||||
Reference in New Issue
Block a user