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

推荐订阅源

IT之家
IT之家
Last Week in AI
Last Week in AI
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
宝玉的分享
宝玉的分享
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
博客园 - 聂微东
S
SegmentFault 最新的问题
博客园 - 司徒正美
罗磊的独立博客
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
小众软件
小众软件
Jina AI
Jina 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): honor Docker bind write policy (#83849) · ope...
joshavant · 2026-05-19 · via Recent Commits to openclaw:main

@@ -748,7 +748,7 @@ describe("runCodexAppServerAttempt", () => {

748748

);

749749

});

750750751-

it("does not expose sandbox shell tools unless non-Docker sandbox routing is available", async () => {

751+

it("keeps Docker sandbox shell tools hidden when native Code Mode can honor sandbox paths", async () => {

752752

testing.setOpenClawCodingToolsFactoryForTests(() => [

753753

createRuntimeDynamicTool("exec"),

754754

createRuntimeDynamicTool("process"),

@@ -769,11 +769,69 @@ describe("runCodexAppServerAttempt", () => {

769769

effectiveWorkspace: workspaceDir,

770770

sandboxSessionKey,

771771

sandbox: { enabled: true, backendId: "docker" } as never,

772+

nativeToolSurfaceEnabled: true,

772773

runAbortController: new AbortController(),

773774

sessionAgentId: "main",

774775

pluginConfig: {},

775776

onYieldDetected: () => undefined,

776777

});

778+779+

expect(dockerTools.map((tool) => tool.name)).toEqual(["message"]);

780+

});

781+782+

it("exposes Docker sandbox shell tools when native Code Mode cannot honor sandbox paths", async () => {

783+

testing.setOpenClawCodingToolsFactoryForTests(() => [

784+

createRuntimeDynamicTool("exec"),

785+

createRuntimeDynamicTool("process"),

786+

createRuntimeDynamicTool("message"),

787+

]);

788+

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

789+

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

790+

const params = createParams(sessionFile, workspaceDir);

791+

params.disableTools = false;

792+

const sandboxSessionKey = params.sessionKey;

793+

if (!sandboxSessionKey) {

794+

throw new Error("createParams must provide a sessionKey for Codex dynamic tool tests.");

795+

}

796+797+

const tools = await testing.buildDynamicTools({

798+

params,

799+

resolvedWorkspace: workspaceDir,

800+

effectiveWorkspace: workspaceDir,

801+

sandboxSessionKey,

802+

sandbox: {

803+

enabled: true,

804+

backendId: "docker",

805+

docker: { binds: ["/tmp/openclaw-data:/data:rw"] },

806+

} as never,

807+

nativeToolSurfaceEnabled: false,

808+

runAbortController: new AbortController(),

809+

sessionAgentId: "main",

810+

pluginConfig: {},

811+

onYieldDetected: () => undefined,

812+

});

813+814+

expect(tools.map((tool) => tool.name)).toEqual(["message", "sandbox_exec", "sandbox_process"]);

815+

expect(tools.find((tool) => tool.name === "sandbox_exec")?.description).toContain(

816+

"Docker container-path bind layout",

817+

);

818+

});

819+820+

it("does not expose sandbox shell tools when sandbox routing is disabled", async () => {

821+

testing.setOpenClawCodingToolsFactoryForTests(() => [

822+

createRuntimeDynamicTool("exec"),

823+

createRuntimeDynamicTool("process"),

824+

createRuntimeDynamicTool("message"),

825+

]);

826+

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

827+

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

828+

const params = createParams(sessionFile, workspaceDir);

829+

params.disableTools = false;

830+

const sandboxSessionKey = params.sessionKey;

831+

if (!sandboxSessionKey) {

832+

throw new Error("createParams must provide a sessionKey for Codex dynamic tool tests.");

833+

}

834+777835

const disabledSandboxTools = await testing.buildDynamicTools({

778836

params,

779837

resolvedWorkspace: workspaceDir,

@@ -786,7 +844,6 @@ describe("runCodexAppServerAttempt", () => {

786844

onYieldDetected: () => undefined,

787845

});

788846789-

expect(dockerTools.map((tool) => tool.name)).toEqual(["message"]);

790847

expect(disabledSandboxTools.map((tool) => tool.name)).toEqual(["message"]);

791848

});

792849

@@ -1203,6 +1260,41 @@ describe("runCodexAppServerAttempt", () => {

12031260

expect(testing.shouldEnableCodexAppServerNativeToolSurface(params)).toBe(false);

12041261

});

120512621263+

it("disables Codex native tool surfaces when Docker bind targets need container paths", () => {

1264+

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

1265+

const params = createParams(path.join(tempDir, "session.jsonl"), workspaceDir);

1266+

params.disableTools = false;

1267+1268+

expect(

1269+

testing.shouldEnableCodexAppServerNativeToolSurface(params, {

1270+

enabled: true,

1271+

backendId: "docker",

1272+

docker: { binds: ["/tmp/openclaw-data:/data:rw"] },

1273+

} as never),

1274+

).toBe(false);

1275+1276+

expect(

1277+

testing.shouldEnableCodexAppServerNativeToolSurface(params, {

1278+

enabled: true,

1279+

backendId: "docker",

1280+

docker: { binds: ["/tmp/openclaw-data:/tmp/openclaw-data:rw"] },

1281+

} as never),

1282+

).toBe(true);

1283+1284+

expect(

1285+

testing.shouldEnableCodexAppServerNativeToolSurface(params, {

1286+

enabled: true,

1287+

backendId: "docker",

1288+

docker: {

1289+

binds: [

1290+

"/tmp/openclaw-data:/tmp/openclaw-data:rw",

1291+

"/tmp/openclaw-data/secrets:/tmp/openclaw-data/secrets:ro",

1292+

],

1293+

},

1294+

} as never),

1295+

).toBe(false);

1296+

});

1297+12061298

it("forces the message dynamic tool for message-tool-only source replies", () => {

12071299

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

12081300

const params = createParams(path.join(tempDir, "session.jsonl"), workspaceDir);

@@ -8962,13 +9054,19 @@ describe("runCodexAppServerAttempt", () => {

89629054

{

89639055

enabled: true,

89649056

backendId: "docker",

8965-

docker: { network: "bridge" },

9057+

docker: {

9058+

network: "bridge",

9059+

binds: [

9060+

"/tmp/openclaw-writable-data:/data:rw",

9061+

"/tmp/openclaw-readonly-data:/readonly:ro",

9062+

],

9063+

},

89669064

} as never,

89679065

"/tmp/workspace",

89689066

),

89699067

).toEqual({

89709068

type: "workspaceWrite",

8971-

writableRoots: ["/tmp/workspace"],

9069+

writableRoots: ["/tmp/workspace", path.resolve("/tmp/openclaw-writable-data")],

89729070

networkAccess: true,

89739071

excludeTmpdirEnvVar: false,

89749072

excludeSlashTmp: false,