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

推荐订阅源

D
Docker
I
InfoQ
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
Y
Y Combinator Blog
博客园_首页
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Engineering at Meta
Engineering at Meta
B
Blog
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
F
Fortinet All Blogs
月光博客
月光博客
GbyAI
GbyAI

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): keep channel add plugin install noninteractive ...
steipete · 2026-04-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -20,6 +20,7 @@ Docs: https://docs.openclaw.ai

2020
2121

### Fixes

2222
23+

- Plugins/CLI: let flag-driven `openclaw channels add` install the selected channel plugin from its default source without opening an interactive prompt, fixing published npm Telegram setup in stdin-closed automation. Thanks @codex.

2324

- Onboarding/setup: keep first-run config reads, plugin compatibility notices, and post-model sanity checks on cold metadata paths unless the user chooses to browse all models, avoiding full plugin/runtime catalog work between prompts. Thanks @shakkernerd.

2425

- Onboarding/auth: run manifest-owned provider auth choices through scoped setup providers so selecting OpenAI Codex browser/device auth no longer loads every provider runtime before OAuth starts. Thanks @shakkernerd.

2526

- Onboarding/auth: keep the post-auth default-model policy lookup on manifest/setup metadata so the next prompt appears without loading broad provider runtime. Thanks @shakkernerd.

Original file line numberDiff line numberDiff line change

@@ -59,6 +59,8 @@ Common non-interactive add surfaces include:

5959

- Tlon fields: `--ship`, `--url`, `--code`, `--group-channels`, `--dm-allowlist`, `--auto-discover-channels`

6060

- `--use-env` for default-account env-backed auth where supported

6161
62+

If a channel plugin needs to be installed during a flag-driven add command, OpenClaw uses the channel's default install source without opening the interactive plugin install prompt.

63+
6264

When you run `openclaw channels add` without flags, the interactive wizard can prompt:

6365
6466

- account ids per selected channel

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

import fs from "node:fs";

2+

import os from "node:os";

3+

import path from "node:path";

14

import { Command } from "commander";

25

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

36

import { captureEnv } from "../test-utils/env.js";

@@ -139,17 +142,19 @@ function parseFirstJsonRuntimeLine<T>() {

139142
140143

describe("daemon-cli coverage", () => {

141144

let envSnapshot: ReturnType<typeof captureEnv>;

145+

let tmpDir: string;

142146
143147

beforeEach(() => {

144148

daemonProgram = createDaemonProgram();

149+

tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-daemon-cli-"));

145150

envSnapshot = captureEnv([

146151

"OPENCLAW_STATE_DIR",

147152

"OPENCLAW_CONFIG_PATH",

148153

"OPENCLAW_GATEWAY_PORT",

149154

"OPENCLAW_PROFILE",

150155

]);

151-

process.env.OPENCLAW_STATE_DIR = "/tmp/openclaw-cli-state";

152-

process.env.OPENCLAW_CONFIG_PATH = "/tmp/openclaw-cli-state/openclaw.json";

156+

process.env.OPENCLAW_STATE_DIR = tmpDir;

157+

process.env.OPENCLAW_CONFIG_PATH = path.join(tmpDir, "openclaw.json");

153158

delete process.env.OPENCLAW_GATEWAY_PORT;

154159

delete process.env.OPENCLAW_PROFILE;

155160

serviceReadCommand.mockResolvedValue(null);

@@ -160,6 +165,7 @@ describe("daemon-cli coverage", () => {

160165
161166

afterEach(() => {

162167

envSnapshot.restore();

168+

fs.rmSync(tmpDir, { recursive: true, force: true });

163169

});

164170
165171

it("probes gateway status by default", async () => {

Original file line numberDiff line numberDiff line change

@@ -430,6 +430,27 @@ describe("ensureChannelSetupPluginInstalled", () => {

430430

);

431431

});

432432
433+

it("uses the bundled default install source without prompting in non-interactive mode", async () => {

434+

const runtime = makeRuntime();

435+

const { prompter, select } = makeSkipInstallPrompter();

436+

const cfg: OpenClawConfig = { update: { channel: "beta" } };

437+

mockBundledChatSource();

438+
439+

const result = await ensureChannelSetupPluginInstalled({

440+

cfg,

441+

entry: baseEntry,

442+

prompter,

443+

runtime,

444+

promptInstall: false,

445+

});

446+
447+

expect(select).not.toHaveBeenCalled();

448+

expect(result.installed).toBe(true);

449+

expect(result.cfg.plugins?.load?.paths).toContain(

450+

bundledPluginRootAt("/opt/openclaw", "bundled-chat"),

451+

);

452+

});

453+
433454

it("does not default to bundled local path when an external catalog overrides the npm spec", async () => {

434455

const runtime = makeRuntime();

435456

const { prompter, select } = makeSkipInstallPrompter();

Original file line numberDiff line numberDiff line change

@@ -41,13 +41,15 @@ export async function ensureChannelSetupPluginInstalled(params: {

4141

prompter: WizardPrompter;

4242

runtime: RuntimeEnv;

4343

workspaceDir?: string;

44+

promptInstall?: boolean;

4445

}): Promise<InstallResult> {

4546

const result = await ensureOnboardingPluginInstalled({

4647

cfg: params.cfg,

4748

entry: toOnboardingPluginInstallEntry(params.entry),

4849

prompter: params.prompter,

4950

runtime: params.runtime,

5051

workspaceDir: params.workspaceDir,

52+

...(params.promptInstall !== undefined ? { promptInstall: params.promptInstall } : {}),

5153

});

5254

return {

5355

cfg: result.cfg,

Original file line numberDiff line numberDiff line change

@@ -501,7 +501,7 @@ describe("channelsAddCommand", () => {

501501

);

502502
503503

expect(ensureChannelSetupPluginInstalled).toHaveBeenCalledWith(

504-

expect.objectContaining({ entry: catalogEntry }),

504+

expect.objectContaining({ entry: catalogEntry, promptInstall: false }),

505505

);

506506

expect(loadChannelSetupPluginRegistrySnapshotForChannel).toHaveBeenCalledTimes(1);

507507

expect(loadChannelSetupPluginRegistrySnapshotForChannel).toHaveBeenCalledWith(

Original file line numberDiff line numberDiff line change

@@ -311,6 +311,7 @@ export async function channelsAddCommand(

311311

prompter,

312312

runtime,

313313

workspaceDir,

314+

promptInstall: false,

314315

});

315316

nextConfig = result.cfg;

316317

if (!result.installed) {

Original file line numberDiff line numberDiff line change

@@ -422,6 +422,7 @@ export async function ensureOnboardingPluginInstalled(params: {

422422

prompter: WizardPrompter;

423423

runtime: RuntimeEnv;

424424

workspaceDir?: string;

425+

promptInstall?: boolean;

425426

}): Promise<OnboardingPluginInstallResult> {

426427

const { entry, prompter, runtime, workspaceDir } = params;

427428

let next = params.cfg;

@@ -442,12 +443,15 @@ export async function ensureOnboardingPluginInstalled(params: {

442443

bundledLocalPath,

443444

hasNpmSpec: Boolean(npmSpec),

444445

});

445-

const choice = await promptInstallChoice({

446-

entry,

447-

localPath,

448-

defaultChoice,

449-

prompter,

450-

});

446+

const choice =

447+

params.promptInstall === false

448+

? defaultChoice

449+

: await promptInstallChoice({

450+

entry,

451+

localPath,

452+

defaultChoice,

453+

prompter,

454+

});

451455
452456

if (choice === "skip") {

453457

return {