You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e9bbdec
Browse filesBrowse the repository at this point in the historyBrowse files
- **Session workspace inheritance:** keep OpenClaw bootstrap files, agent instructions, memory guidance, and skills anchored to the configured agent workspace when a session runs from another folder or managed worktree, while preserving that folder as the execution workspace.
72
73
- **Plugin setup diagnostics:** stop treating metadata-only provider setup descriptors as missing runtime registrations while retaining undeclared runtime and CLI drift warnings. Fixes #125506. Thanks @shakkernerd.
73
74
- **Onboarding model browsing:** keep preferred-provider model discovery scoped to the selected provider, preserve route variants, and avoid loading unrelated provider setup surfaces. Fixes #125363. Thanks @shakkernerd.
74
75
- **Codex subagent fan-out:** settle successful terminal yields immediately and preserve requester ownership so completed children reliably resume their parent.
Copy file name to clipboardExpand all lines: docs/concepts/system-prompt.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ Regenerate with `pnpm prompt:snapshots:gen`; verify drift with `pnpm prompt:snap
91
91
92
92
## Workspace bootstrap injection
93
93
94
-
Bootstrap files are resolved from the active workspace and routed to the prompt surface matching their lifetime:
94
+
Bootstrap files are resolved from the configured agent workspace and routed to the prompt surface matching their lifetime. When a session runs from another folder or managed worktree, that folder remains the execution workspace while the agent's bootstrap identity and memory continue to come from its configured workspace.
95
95
96
96
-`AGENTS.md`
97
97
-`SOUL.md`
@@ -100,7 +100,7 @@ Bootstrap files are resolved from the active workspace and routed to the prompt
100
100
-`BOOTSTRAP.md` (only on brand-new workspaces)
101
101
-`MEMORY.md` when present
102
102
103
-
On the native Codex harness, OpenClaw avoids repeating stable workspace files in every user turn. Codex loads `AGENTS.md`, including its `## Tools` section, through native project-doc discovery. `SOUL.md`, `IDENTITY.md`, and `USER.md`are forwarded as turn-scoped collaboration developer instructions so native Codex sub-agents do not inherit them. `MEMORY.md` content is not pasted into every native Codex turn either: when memory tools are available for the workspace, Codex turns get a small workspace-memory note directing the model to `memory_search` or `memory_get`. If tools are disabled, memory search is unavailable, or the active workspace differs from the agent memory workspace, `MEMORY.md` falls back to the normal bounded turn-context path. `BOOTSTRAP.md` keeps the normal turn-context role.
103
+
On the native Codex harness, OpenClaw avoids repeating stable workspace files in every user turn. Codex loads project-local `AGENTS.md`, including its `## Tools` section, through native project-doc discovery. When execution uses another folder, OpenClaw also forwards the configured agent workspace's `AGENTS.md` with `SOUL.md`, `IDENTITY.md`, and `USER.md` as turn-scoped collaboration developer instructions so native Codex sub-agents do not inherit them. `MEMORY.md` content is not pasted into every native Codex turn either: when memory tools are available for the agent workspace, Codex turns get a small workspace-memory note directing the model to `memory_search` or `memory_get`. If tools are disabled or memory search is unavailable, `MEMORY.md` falls back to the normal bounded turn-context path. `BOOTSTRAP.md` keeps the normal turn-context role.
104
104
105
105
Heartbeat monitor scratch is not a bootstrap file. The heartbeat runner appends it only to heartbeat turns; normal turns do not receive it. The default agent's system prompt automatically includes heartbeat guidance while its cadence is enabled, with no independent heartbeat setting to hide that section.
@@ -675,7 +683,7 @@ function renderCodexWorkspaceBootstrapPromptContext(
675
683
returnundefined;
676
684
}
677
685
constlines=[
678
-
"OpenClaw loaded these user-editable workspace files for the current turn. Codex loads AGENTS.md natively. SOUL.md, IDENTITY.md, and USER.md are provided as turn-scoped collaboration instructions so native Codex subagents do not inherit them. Those files are not repeated here.",
686
+
"OpenClaw loaded these user-editable workspace files for the current turn. Codex loads project-local AGENTS.md natively. When execution uses another folder, the agent workspace AGENTS.md is inherited with SOUL.md, IDENTITY.md, and USER.md as turn-scoped collaboration instructions. Those files are not repeated here.",
679
687
"",
680
688
"# Project Context",
681
689
"",
@@ -713,10 +721,16 @@ function selectCodexWorkspacePromptContextFiles(
0 commit comments