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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
宝玉的分享
宝玉的分享
量子位
Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
J
Java Code Geeks
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
S
SegmentFault 最新的问题
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
小众软件
小众软件
The Cloudflare Blog
Y
Y Combinator Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
IT之家
IT之家

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(cli): reject malformed timeout values · openclaw/open...
steipete · 2026-05-28 · via Recent Commits to openclaw:main

@@ -106,6 +106,7 @@ import {

106106

getModelsCommandSecretTargetIds,

107107

getTtsCommandSecretTargetIds,

108108

} from "./command-secret-targets.js";

109+

import { parseTimeoutMsWithFallback } from "./parse-timeout.js";

109110

import { removeCommandByName } from "./program/command-tree.js";

110111

import { collectOption } from "./program/helpers.js";

111112

@@ -1179,6 +1180,13 @@ function parseOptionalPositiveInteger(raw: unknown, label: string): number | und

11791180

return value;

11801181

}

118111821183+

function parseOptionalTimeoutMs(raw: string | number | undefined): number | undefined {

1184+

if (raw === undefined || (typeof raw === "string" && raw.trim() === "")) {

1185+

return undefined;

1186+

}

1187+

return parseTimeoutMsWithFallback(raw, 0, { invalidType: "error" });

1188+

}

1189+11821190

function normalizeImageOutputFormat(

11831191

raw: string | undefined,

11841192

): ImageGenerationOutputFormat | undefined {

@@ -1961,7 +1969,7 @@ export function registerCapabilityCli(program: Command) {

19611969

opts.openaiBackground as string | undefined,

19621970

"--openai-background",

19631971

),

1964-

timeoutMs: parseOptionalFiniteNumber(opts.timeoutMs, "--timeout-ms"),

1972+

timeoutMs: parseOptionalTimeoutMs(opts.timeoutMs),

19651973

output: opts.output as string | undefined,

19661974

});

19671975

emitJsonOrText(defaultRuntime, Boolean(opts.json), result, formatEnvelopeForText);

@@ -2000,7 +2008,7 @@ export function registerCapabilityCli(program: Command) {

20002008

opts.openaiBackground as string | undefined,

20012009

"--openai-background",

20022010

),

2003-

timeoutMs: parseOptionalFiniteNumber(opts.timeoutMs, "--timeout-ms"),

2011+

timeoutMs: parseOptionalTimeoutMs(opts.timeoutMs),

20042012

output: opts.output as string | undefined,

20052013

});

20062014

emitJsonOrText(defaultRuntime, Boolean(opts.json), result, formatEnvelopeForText);

@@ -2022,7 +2030,7 @@ export function registerCapabilityCli(program: Command) {

20222030

files: [String(opts.file)],

20232031

model: opts.model as string | undefined,

20242032

prompt: opts.prompt as string | undefined,

2025-

timeoutMs: parseOptionalFiniteNumber(opts.timeoutMs, "--timeout-ms"),

2033+

timeoutMs: parseOptionalTimeoutMs(opts.timeoutMs),

20262034

});

20272035

emitJsonOrText(defaultRuntime, Boolean(opts.json), result, formatEnvelopeForText);

20282036

});

@@ -2043,7 +2051,7 @@ export function registerCapabilityCli(program: Command) {

20432051

files: opts.file as string[],

20442052

model: opts.model as string | undefined,

20452053

prompt: opts.prompt as string | undefined,

2046-

timeoutMs: parseOptionalFiniteNumber(opts.timeoutMs, "--timeout-ms"),

2054+

timeoutMs: parseOptionalTimeoutMs(opts.timeoutMs),

20472055

});

20482056

emitJsonOrText(defaultRuntime, Boolean(opts.json), result, formatEnvelopeForText);

20492057

});

@@ -2352,7 +2360,7 @@ export function registerCapabilityCli(program: Command) {

23522360

durationSeconds: parseOptionalFiniteNumber(opts.duration, "--duration"),

23532361

audio: opts.audio === true ? true : undefined,

23542362

watermark: opts.watermark === true ? true : undefined,

2355-

timeoutMs: parseOptionalFiniteNumber(opts.timeoutMs, "--timeout-ms"),

2363+

timeoutMs: parseOptionalTimeoutMs(opts.timeoutMs),

23562364

});

23572365

emitJsonOrText(defaultRuntime, Boolean(opts.json), result, formatEnvelopeForText);

23582366

});