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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
Engineering at Meta
Engineering at Meta
有赞技术团队
有赞技术团队
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
Y
Y Combinator Blog
B
Blog
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
I
InfoQ
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
H
Help Net Security

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(lobster): surface workflow path errors · openclaw/ope...
openclaw-clo · 2026-06-14 · via Recent Commits to openclaw:main

@@ -134,6 +134,46 @@ describe("createEmbeddedLobsterRunner", () => {

134134

});

135135

});

136136137+

it.each([

138+

"exec --json=true cat data.json",

139+

"exec --json=true cat config.yaml",

140+

"exec --json=true cat flow.lobster",

141+

"exec --json=true cat /tmp/missing.json",

142+

"http.fetch https://example.test/workflows/flow.lobster",

143+

"exec --json=true echo nested/path",

144+

])("keeps inline pipeline with file-like args as a pipeline: %s", async (pipeline) => {

145+

const runtime = {

146+

runToolRequest: vi.fn().mockResolvedValue({

147+

ok: true,

148+

protocolVersion: 1,

149+

status: "ok",

150+

output: [],

151+

requiresApproval: null,

152+

}),

153+

resumeToolRequest: vi.fn(),

154+

};

155+156+

const runner = createEmbeddedLobsterRunner({

157+

loadRuntime: vi.fn().mockResolvedValue(runtime),

158+

});

159+160+

await runner.run({

161+

action: "run",

162+

pipeline,

163+

cwd: process.cwd(),

164+

timeoutMs: 2000,

165+

maxStdoutBytes: 4096,

166+

});

167+168+

expect(runtime.runToolRequest).toHaveBeenCalledOnce();

169+

const request = requireRecord(

170+

requireFirstCallParam(runtime.runToolRequest.mock.calls, "inline run tool request"),

171+

"inline run tool request",

172+

);

173+

expect(request.pipeline).toBe(pipeline);

174+

expect(request.filePath).toBeUndefined();

175+

});

176+137177

it("detects workflow files and parses argsJson", async () => {

138178

const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-lobster-runner-"));

139179

const workflowPath = path.join(tempDir, "workflow.lobster");

@@ -177,6 +217,80 @@ describe("createEmbeddedLobsterRunner", () => {

177217

}

178218

});

179219220+

it("detects existing workflow file paths that contain spaces", async () => {

221+

const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-lobster-runner-"));

222+

const workflowPath = path.join(tempDir, "daily inbox.lobster");

223+

await fs.writeFile(workflowPath, "steps: []\n", "utf8");

224+225+

try {

226+

const runtime = {

227+

runToolRequest: vi.fn().mockResolvedValue({

228+

ok: true,

229+

protocolVersion: 1,

230+

status: "ok",

231+

output: [],

232+

requiresApproval: null,

233+

}),

234+

resumeToolRequest: vi.fn(),

235+

};

236+237+

const runner = createEmbeddedLobsterRunner({

238+

loadRuntime: vi.fn().mockResolvedValue(runtime),

239+

});

240+241+

await runner.run({

242+

action: "run",

243+

pipeline: "daily inbox.lobster",

244+

cwd: tempDir,

245+

timeoutMs: 2000,

246+

maxStdoutBytes: 4096,

247+

});

248+249+

expect(runtime.runToolRequest).toHaveBeenCalledOnce();

250+

const request = requireRecord(

251+

requireFirstCallParam(runtime.runToolRequest.mock.calls, "workflow file with spaces"),

252+

"workflow file with spaces",

253+

);

254+

expect(request.filePath).toBe(workflowPath);

255+

expect(request.pipeline).toBeUndefined();

256+

} finally {

257+

await fs.rm(tempDir, { recursive: true, force: true });

258+

}

259+

});

260+261+

it.each([

262+

["missing.lobster", "missing.lobster"],

263+

["nested/missing.yaml", path.join("nested", "missing.yaml")],

264+

])("surfaces missing workflow path errors for %s", async (pipeline, expectedRelativePath) => {

265+

const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-lobster-runner-"));

266+267+

try {

268+

const runtime = {

269+

runToolRequest: vi.fn(),

270+

resumeToolRequest: vi.fn(),

271+

};

272+

const runner = createEmbeddedLobsterRunner({

273+

loadRuntime: vi.fn().mockResolvedValue(runtime),

274+

});

275+276+

await expect(

277+

runner.run({

278+

action: "run",

279+

pipeline,

280+

cwd: tempDir,

281+

timeoutMs: 2000,

282+

maxStdoutBytes: 4096,

283+

}),

284+

).rejects.toMatchObject({

285+

code: "ENOENT",

286+

path: path.join(tempDir, expectedRelativePath),

287+

});

288+

expect(runtime.runToolRequest).not.toHaveBeenCalled();

289+

} finally {

290+

await fs.rm(tempDir, { recursive: true, force: true });

291+

}

292+

});

293+180294

it("returns a parse error when workflow args are invalid JSON", async () => {

181295

const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-lobster-runner-"));

182296

const workflowPath = path.join(tempDir, "workflow.lobster");