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

推荐订阅源

GbyAI
GbyAI
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
小众软件
小众软件
博客园_首页
博客园 - 聂微东
罗磊的独立博客
Recent Announcements
Recent Announcements
U
Unit 42
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
D
DataBreaches.Net
Last Week in AI
Last Week in 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(cli): dedupe onboard auth flags for completion cache ...
steipete · 2026-04-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -53,6 +53,9 @@ Docs: https://docs.openclaw.ai

5353

- Tooling/check:changed: pass parent heavy-check lock markers to lint lanes so

5454

`pnpm check:changed` no longer waits on its own `lint:extensions` child.

5555

Thanks @steipete.

56+

- CLI/completion: dedupe provider auth flags before registering `openclaw onboard`

57+

options, so completion-cache refresh during update no longer fails when stale

58+

core fallback flags overlap plugin manifest flags. Fixes #71667.

5659

- Plugins/Bonjour: stop the gateway from crash-looping on `CIAO PROBING CANCELLED` when the mDNS watchdog cancels a stuck probe. Restores the rejection-handler wiring dropped during the bonjour plugin migration and shares unhandled-rejection state across module instances so plugin-staged copies of `openclaw/plugin-sdk/runtime` register into the same handler set the host consults. Especially affects Docker on macOS, where mDNS probing reliably hits the watchdog. Thanks @troyhitch.

5760

- Google Meet: report pinned Chrome nodes as offline or missing capabilities in

5861

setup/join diagnostics, keep inaccessible nodes out of auto-selection, and

Original file line numberDiff line numberDiff line change

@@ -26,6 +26,11 @@ vi.mock("../../commands/onboard-core-auth-flags.js", () => ({

2626

description: "Mistral API key",

2727

optionKey: "mistralApiKey",

2828

},

29+

{

30+

cliOption: "--openai-api-key <key>",

31+

description: "OpenAI API key (core fallback)",

32+

optionKey: "openaiApiKey",

33+

},

2934

] as Array<{ cliOption: string; description: string; optionKey: string }>,

3035

}));

3136

@@ -156,6 +161,16 @@ describe("registerOnboardCommand", () => {

156161

);

157162

});

158163
164+

it("dedupes provider auth flags before registering command options", async () => {

165+

await runCli(["onboard", "--openai-api-key", "sk-openai-test"]);

166+

expect(setupWizardCommandMock).toHaveBeenCalledWith(

167+

expect.objectContaining({

168+

openaiApiKey: "sk-openai-test", // pragma: allowlist secret

169+

}),

170+

runtime,

171+

);

172+

});

173+
159174

it("forwards --gateway-token-ref-env", async () => {

160175

await runCli(["onboard", "--gateway-token-ref-env", "OPENCLAW_GATEWAY_TOKEN"]);

161176

expect(setupWizardCommandMock).toHaveBeenCalledWith(

Original file line numberDiff line numberDiff line change

@@ -47,10 +47,39 @@ const AUTH_CHOICE_HELP = formatAuthChoiceChoicesForCli({

4747

includeSkip: true,

4848

});

4949
50-

const ONBOARD_AUTH_FLAGS = [

51-

...CORE_ONBOARD_AUTH_FLAGS,

52-

...resolveManifestProviderOnboardAuthFlags(),

53-

] as const;

50+

type OnboardAuthFlag = {

51+

readonly cliOption: string;

52+

readonly description: string;

53+

readonly optionKey: string;

54+

};

55+
56+

function extractCliFlags(cliOption: string): string[] {

57+

return cliOption

58+

.split(/[ ,|]+/)

59+

.filter((part) => part.startsWith("-"))

60+

.map((part) => {

61+

const equalsIndex = part.indexOf("=");

62+

return equalsIndex === -1 ? part : part.slice(0, equalsIndex);

63+

});

64+

}

65+
66+

function resolveOnboardAuthFlags(): OnboardAuthFlag[] {

67+

const seenCliFlags = new Set<string>();

68+

const flags: OnboardAuthFlag[] = [];

69+

for (const flag of [...CORE_ONBOARD_AUTH_FLAGS, ...resolveManifestProviderOnboardAuthFlags()]) {

70+

const cliFlags = extractCliFlags(flag.cliOption);

71+

if (cliFlags.some((cliFlag) => seenCliFlags.has(cliFlag))) {

72+

continue;

73+

}

74+

for (const cliFlag of cliFlags) {

75+

seenCliFlags.add(cliFlag);

76+

}

77+

flags.push(flag);

78+

}

79+

return flags;

80+

}

81+
82+

const ONBOARD_AUTH_FLAGS = resolveOnboardAuthFlags();

5483
5584

function pickOnboardProviderAuthOptionValues(

5685

opts: Record<string, unknown>,