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

推荐订阅源

雷峰网
雷峰网
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
博客园_首页
J
Java Code Geeks
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
量子位
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
N
Netflix TechBlog - Medium
Hugging Face - Blog
Hugging Face - Blog
B
Blog
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI

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): remap dot-prefixed bootstrap context · opencl...
vincentkoc · 2026-05-14 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -16,7 +16,7 @@ Docs: https://docs.openclaw.ai

1616

- iOS: restore first-use Contacts, Calendar, and Reminders permission prompts and add Privacy & Access status/actions in Settings. Thanks @BunsDev.

1717

- Canvas: return not found for malformed percent-encoded Canvas/A2UI/document asset paths and keep decoded parent traversal blocked before path normalization.

1818

- Telegram: allow trusted local Bot API media files whose filenames start with dots instead of falling back to remote download.

19-

- Agents: remap injected context files under dot-dot-prefixed workspace directories when a run switches to an effective sandbox workspace.

19+

- Agents/Codex app-server: remap injected context files under dot-dot-prefixed workspace directories when a run switches to an effective sandbox workspace.

2020

- Agents: allow dot-dot-prefixed filenames such as `..note.txt` through sandbox FS bridge, remote sandbox reads, and apply_patch summaries without mistaking the name for parent traversal.

2121

- CLI/migrate: hide per-item source/plugin hints on non-conflicting Codex skill and plugin selection prompts, keeping the hint text reserved for rows that actually need attention. Thanks @sjf.

2222

- Codex harness: treat high-confidence app-server OAuth refresh invalidation as a terminal auth-profile failure, stopping repeated raw token-refresh errors without turning entitlement or usage-limit payloads into re-auth prompts.

Original file line numberDiff line numberDiff line change

@@ -2371,6 +2371,35 @@ describe("runCodexAppServerAttempt", () => {

23712371

expect(config?.instructions).toBeUndefined();

23722372

});

23732373
2374+

it("remaps Codex bootstrap files under dot-prefixed workspace directories", () => {

2375+

expect(

2376+

__testing.remapCodexContextFilePath({

2377+

file: {

2378+

path: "/real/workspace/..context/SOUL.md",

2379+

content: "Soul voice goes here.",

2380+

},

2381+

sourceWorkspaceDir: "/real/workspace",

2382+

targetWorkspaceDir: "/sandbox/workspace",

2383+

}),

2384+

).toEqual({

2385+

path: "/sandbox/workspace/..context/SOUL.md",

2386+

content: "Soul voice goes here.",

2387+

});

2388+

expect(

2389+

__testing.remapCodexContextFilePath({

2390+

file: {

2391+

path: "/outside/SOUL.md",

2392+

content: "outside",

2393+

},

2394+

sourceWorkspaceDir: "/real/workspace",

2395+

targetWorkspaceDir: "/sandbox/workspace",

2396+

}),

2397+

).toEqual({

2398+

path: "/outside/SOUL.md",

2399+

content: "outside",

2400+

});

2401+

});

2402+
23742403

it("keeps lightweight cron Codex turns out of OpenClaw bootstrap context", async () => {

23752404

const sessionFile = path.join(tempDir, "session.jsonl");

23762405

const workspaceDir = path.join(tempDir, "workspace");

Original file line numberDiff line numberDiff line change

@@ -3050,7 +3050,8 @@ function remapCodexContextFilePath(params: {

30503050

const relativePath = path.relative(params.sourceWorkspaceDir, params.file.path);

30513051

if (

30523052

!relativePath ||

3053-

relativePath.startsWith("..") ||

3053+

relativePath === ".." ||

3054+

relativePath.startsWith(`..${path.sep}`) ||

30543055

path.isAbsolute(relativePath) ||

30553056

params.sourceWorkspaceDir === params.targetWorkspaceDir

30563057

) {

@@ -3214,6 +3215,7 @@ export const __testing = {

32143215

filterCodexDynamicToolsForAllowlist,

32153216

filterToolsForVisionInputs,

32163217

handleDynamicToolCallWithTimeout,

3218+

remapCodexContextFilePath,

32173219

resolveDynamicToolCallTimeoutMs,

32183220

restrictCodexAppServerSandboxForOpenClawSandbox,

32193221

resolveOpenClawCodingToolsSessionKeys,