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

推荐订阅源

L
LangChain Blog
有赞技术团队
有赞技术团队
博客园_首页
IT之家
IT之家
爱范儿
爱范儿
量子位
小众软件
小众软件
Jina AI
Jina AI
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
The Cloudflare Blog
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
雷峰网
雷峰网
V
Visual Studio Blog
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题

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
Isolate Codex app-server state per agent (#74556) · openc...
pashpashpash · 2026-05-01 · via Recent Commits to openclaw:main

@@ -180,7 +180,10 @@ Codex after changing config.

180180

Codex app-server binary by default, so local `codex` commands on `PATH` do

181181

not affect normal harness startup.

182182

- Codex auth available to the app-server process or to OpenClaw's Codex auth

183-

bridge.

183+

bridge. Local app-server launches use an OpenClaw-managed Codex home for each

184+

agent and an isolated child `HOME`, so they do not read your personal

185+

`~/.codex` account, skills, plugins, config, thread state, or native

186+

`$HOME/.agents/skills` by default.

184187185188

The plugin blocks older or unversioned app-server handshakes. That keeps

186189

OpenClaw on the protocol surface it has been tested against.

@@ -511,11 +514,33 @@ For an already-running app-server, use WebSocket transport:

511514

```

512515513516

Stdio app-server launches inherit OpenClaw's process environment by default,

514-

but OpenClaw owns the Codex app-server account bridge. Auth is selected in this

515-

order:

517+

but OpenClaw owns the Codex app-server account bridge and sets both

518+

`CODEX_HOME` and `HOME` to per-agent directories under that agent's OpenClaw

519+

state. Codex's own skill loader reads `$CODEX_HOME/skills` and

520+

`$HOME/.agents/skills`, so both values are isolated for local app-server

521+

launches. That keeps Codex-native skills, plugins, config, accounts, and thread

522+

state scoped to the OpenClaw agent instead of leaking in from the operator's

523+

personal Codex CLI home.

524+525+

OpenClaw plugins and OpenClaw skill snapshots still flow through OpenClaw's own

526+

plugin registry and skill loader. Personal Codex CLI assets do not. If you have

527+

useful Codex CLI skills or plugins that should become part of an OpenClaw agent,

528+

inventory them explicitly:

529+530+

```bash

531+

openclaw migrate codex --dry-run

532+

openclaw migrate apply codex --yes

533+

```

534+535+

The Codex migration provider copies skills into the current OpenClaw agent

536+

workspace. Codex native plugins, hooks, and config files are reported or archived

537+

for manual review instead of being activated automatically, because they can

538+

execute commands, expose MCP servers, or carry credentials.

539+540+

Auth is selected in this order:

516541517542

1. An explicit OpenClaw Codex auth profile for the agent.

518-

2. The app-server's existing account, such as a local Codex CLI ChatGPT sign-in.

543+

2. The app-server's existing account in that agent's Codex home.

519544

3. For local stdio app-server launches only, `CODEX_API_KEY`, then

520545

`OPENAI_API_KEY`, when no app-server account is present and OpenAI auth is

521546

still required.

@@ -553,21 +578,21 @@ If a deployment needs additional environment isolation, add those variables to

553578554579

Supported `appServer` fields:

555580556-

| Field | Default | Meaning |

557-

| ------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |

558-

| `transport` | `"stdio"` | `"stdio"` spawns Codex; `"websocket"` connects to `url`. |

559-

| `command` | managed Codex binary | Executable for stdio transport. Leave unset to use the managed binary; set it only for an explicit override. |

560-

| `args` | `["app-server", "--listen", "stdio://"]` | Arguments for stdio transport. |

561-

| `url` | unset | WebSocket app-server URL. |

562-

| `authToken` | unset | Bearer token for WebSocket transport. |

563-

| `headers` | `{}` | Extra WebSocket headers. |

564-

| `clearEnv` | `[]` | Extra environment variable names removed from the spawned stdio app-server process after OpenClaw builds its inherited environment. |

565-

| `requestTimeoutMs` | `60000` | Timeout for app-server control-plane calls. |

566-

| `mode` | `"yolo"` | Preset for YOLO or guardian-reviewed execution. |

567-

| `approvalPolicy` | `"never"` | Native Codex approval policy sent to thread start/resume/turn. |

568-

| `sandbox` | `"danger-full-access"` | Native Codex sandbox mode sent to thread start/resume. |

569-

| `approvalsReviewer` | `"user"` | Use `"auto_review"` to let Codex review native approval prompts. `guardian_subagent` remains a legacy alias. |

570-

| `serviceTier` | unset | Optional Codex app-server service tier: `"fast"`, `"flex"`, or `null`. Invalid legacy values are ignored. |

581+

| Field | Default | Meaning |

582+

| ------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

583+

| `transport` | `"stdio"` | `"stdio"` spawns Codex; `"websocket"` connects to `url`. |

584+

| `command` | managed Codex binary | Executable for stdio transport. Leave unset to use the managed binary; set it only for an explicit override. |

585+

| `args` | `["app-server", "--listen", "stdio://"]` | Arguments for stdio transport. |

586+

| `url` | unset | WebSocket app-server URL. |

587+

| `authToken` | unset | Bearer token for WebSocket transport. |

588+

| `headers` | `{}` | Extra WebSocket headers. |

589+

| `clearEnv` | `[]` | Extra environment variable names removed from the spawned stdio app-server process after OpenClaw builds its inherited environment. `CODEX_HOME` and `HOME` are reserved for OpenClaw's per-agent Codex isolation on local launches. |

590+

| `requestTimeoutMs` | `60000` | Timeout for app-server control-plane calls. |

591+

| `mode` | `"yolo"` | Preset for YOLO or guardian-reviewed execution. |

592+

| `approvalPolicy` | `"never"` | Native Codex approval policy sent to thread start/resume/turn. |

593+

| `sandbox` | `"danger-full-access"` | Native Codex sandbox mode sent to thread start/resume. |

594+

| `approvalsReviewer` | `"user"` | Use `"auto_review"` to let Codex review native approval prompts. `guardian_subagent` remains a legacy alias. |

595+

| `serviceTier` | unset | Optional Codex app-server service tier: `"fast"`, `"flex"`, or `null`. Invalid legacy values are ignored. |

571596572597

OpenClaw-owned dynamic tool calls are bounded independently from

573598

`appServer.requestTimeoutMs`: each Codex `item/tool/call` request must receive