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

推荐订阅源

D
Docker
月光博客
月光博客
B
Blog RSS Feed
C
Check Point Blog
WordPress大学
WordPress大学
T
Tailwind CSS Blog
GbyAI
GbyAI
H
Help Net Security
Y
Y Combinator Blog
I
InfoQ
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
美团技术团队
博客园 - 三生石上(FineUI控件)
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
A
About on SuperTechFans
G
Google Developers Blog
爱范儿
爱范儿
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
人人都是产品经理
人人都是产品经理

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): accept --no-color after subcommands · openclaw/...
ooiuuii · 2026-06-16 · via Recent Commits to openclaw:main

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

1616

isRootVersionInvocation,

1717

normalizeGeneratedHelpCommandArgv,

1818

normalizeRootHelpTargetArgv,

19+

normalizeRootNoColorArgv,

1920

shouldMigrateState,

2021

shouldMigrateStateFromPath,

2122

} from "./argv.js";

@@ -171,6 +172,61 @@ describe("argv helpers", () => {

171172

expect(normalizeRootHelpTargetArgv(argv)).toEqual(expected);

172173

});

173174175+

it.each([

176+

{

177+

name: "subcommand trailing no-color",

178+

argv: ["node", "openclaw", "doctor", "--no-color", "--post-upgrade", "--json"],

179+

expected: ["node", "openclaw", "--no-color", "doctor", "--post-upgrade", "--json"],

180+

},

181+

{

182+

name: "keeps existing root options first",

183+

argv: ["node", "openclaw", "--profile", "work", "doctor", "--no-color", "--lint", "--json"],

184+

expected: [

185+

"node",

186+

"openclaw",

187+

"--profile",

188+

"work",

189+

"--no-color",

190+

"doctor",

191+

"--lint",

192+

"--json",

193+

],

194+

},

195+

{

196+

name: "keeps no-color after possible command option value",

197+

argv: ["node", "openclaw", "doctor", "--lint", "--json", "--no-color"],

198+

expected: ["node", "openclaw", "doctor", "--lint", "--json", "--no-color"],

199+

},

200+

{

201+

name: "flag terminator leaves no-color positional",

202+

argv: ["node", "openclaw", "doctor", "--", "--no-color"],

203+

expected: ["node", "openclaw", "doctor", "--", "--no-color"],

204+

},

205+

{

206+

name: "command option value remains literal",

207+

argv: ["node", "openclaw", "agent", "--message", "--no-color"],

208+

expected: ["node", "openclaw", "agent", "--message", "--no-color"],

209+

},

210+

{

211+

name: "assigned command option value does not block no-color",

212+

argv: ["node", "openclaw", "agent", "--message=hello", "--no-color"],

213+

expected: ["node", "openclaw", "--no-color", "agent", "--message=hello"],

214+

},

215+

])("normalizes root --no-color before command parsing: $name", ({ argv, expected }) => {

216+

expect(normalizeRootNoColorArgv(argv)).toEqual(expected);

217+

});

218+219+

it("allows final command metadata to lift no-color after boolean command flags", () => {

220+

const argv = ["node", "openclaw", "doctor", "--lint", "--json", "--no-color"];

221+222+

expect(

223+

normalizeRootNoColorArgv(argv, {

224+

shouldPreserveNoColor: ({ remainingArgs, noColorIndex }) =>

225+

remainingArgs[noColorIndex - 1] === "--message",

226+

}),

227+

).toEqual(["node", "openclaw", "--no-color", "doctor", "--lint", "--json"]);

228+

});

229+174230

it.each([

175231

{

176232

name: "root help command",