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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网

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
refactor(codex): clarify computer use setup state · openc...
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -1,6 +1,5 @@

11

import { afterEach, describe, expect, it, vi } from "vitest";

22

import {

3-

CodexComputerUseSetupError,

43

ensureCodexComputerUse,

54

installCodexComputerUse,

65

readCodexComputerUseStatus,

@@ -19,6 +18,7 @@ describe("Codex Computer Use setup", () => {

1918

expect.objectContaining({

2019

enabled: false,

2120

ready: false,

21+

reason: "disabled",

2222

message: "Computer Use is disabled.",

2323

}),

2424

);

@@ -36,6 +36,7 @@ describe("Codex Computer Use setup", () => {

3636

expect.objectContaining({

3737

enabled: true,

3838

ready: true,

39+

reason: "ready",

3940

installed: true,

4041

pluginEnabled: true,

4142

mcpServerAvailable: true,

@@ -63,6 +64,7 @@ describe("Codex Computer Use setup", () => {

6364

).resolves.toEqual(

6465

expect.objectContaining({

6566

ready: false,

67+

reason: "plugin_disabled",

6668

installed: true,

6769

pluginEnabled: false,

6870

mcpServerAvailable: false,

@@ -89,6 +91,7 @@ describe("Codex Computer Use setup", () => {

8991

).resolves.toEqual(

9092

expect.objectContaining({

9193

ready: true,

94+

reason: "ready",

9295

message: "Computer Use is ready.",

9396

}),

9497

);

@@ -110,6 +113,7 @@ describe("Codex Computer Use setup", () => {

110113

).resolves.toEqual(

111114

expect.objectContaining({

112115

ready: false,

116+

reason: "marketplace_missing",

113117

message:

114118

"Multiple Codex marketplaces contain computer-use. Configure computerUse.marketplaceName or computerUse.marketplacePath to choose one.",

115119

}),

@@ -132,6 +136,7 @@ describe("Codex Computer Use setup", () => {

132136

).resolves.toEqual(

133137

expect.objectContaining({

134138

ready: true,

139+

reason: "ready",

135140

installed: true,

136141

pluginEnabled: true,

137142

tools: ["list_apps"],

@@ -161,6 +166,7 @@ describe("Codex Computer Use setup", () => {

161166

).resolves.toEqual(

162167

expect.objectContaining({

163168

ready: true,

169+

reason: "ready",

164170

installed: true,

165171

pluginEnabled: true,

166172

message: "Computer Use is ready.",

@@ -180,7 +186,11 @@ describe("Codex Computer Use setup", () => {

180186

pluginConfig: { computerUse: { enabled: true, marketplaceName: "desktop-tools" } },

181187

request,

182188

}),

183-

).rejects.toThrow(CodexComputerUseSetupError);

189+

).rejects.toMatchObject({

190+

status: expect.objectContaining({

191+

reason: "plugin_not_installed",

192+

}),

193+

});

184194

expect(request).not.toHaveBeenCalledWith("plugin/install", expect.anything());

185195

});

186196

@@ -201,6 +211,7 @@ describe("Codex Computer Use setup", () => {

201211

).resolves.toEqual(

202212

expect.objectContaining({

203213

ready: true,

214+

reason: "ready",

204215

message: "Computer Use is ready.",

205216

}),

206217

);

@@ -228,6 +239,7 @@ describe("Codex Computer Use setup", () => {

228239

).resolves.toEqual(

229240

expect.objectContaining({

230241

ready: true,

242+

reason: "ready",

231243

message: "Computer Use is ready.",

232244

}),

233245

);

@@ -255,7 +267,11 @@ describe("Codex Computer Use setup", () => {

255267

},

256268

request,

257269

}),

258-

).rejects.toThrow(CodexComputerUseSetupError);

270+

).rejects.toMatchObject({

271+

status: expect.objectContaining({

272+

reason: "auto_install_blocked",

273+

}),

274+

});

259275

expect(request).not.toHaveBeenCalledWith("marketplace/add", expect.anything());

260276

expect(request).not.toHaveBeenCalledWith("plugin/install", expect.anything());

261277

});

@@ -276,6 +292,7 @@ describe("Codex Computer Use setup", () => {

276292

).resolves.toEqual(

277293

expect.objectContaining({

278294

ready: false,

295+

reason: "marketplace_missing",

279296

message:

280297

"Configured Codex marketplace missing-marketplace was not found or does not contain computer-use. Run /codex computer-use install with a source or path to install from a new marketplace.",

281298

}),

@@ -294,6 +311,7 @@ describe("Codex Computer Use setup", () => {

294311

).rejects.toMatchObject({

295312

status: expect.objectContaining({

296313

ready: false,

314+

reason: "remote_install_unsupported",

297315

installed: false,

298316

pluginEnabled: false,

299317

marketplaceName: "openai-curated",

@@ -320,6 +338,7 @@ describe("Codex Computer Use setup", () => {

320338

await expect(installed).resolves.toEqual(

321339

expect.objectContaining({

322340

ready: true,

341+

reason: "ready",

323342

message: "Computer Use is ready.",

324343

}),

325344

);

@@ -343,6 +362,7 @@ describe("Codex Computer Use setup", () => {

343362

).resolves.toEqual(

344363

expect.objectContaining({

345364

ready: true,

365+

reason: "ready",

346366

marketplaceName: "openai-curated",

347367

}),

348368

);