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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
小众软件
小众软件
F
Fortinet All Blogs
博客园 - 叶小钗
博客园_首页
D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
U
Unit 42
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
博客园 - Franky
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog

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: keep channel command discovery read-only · openclaw/...
shakkernerd · 2026-04-26 · via Recent Commits to openclaw:main

@@ -1,9 +1,7 @@

11

import { resolveChannelDefaultAccountId } from "../../channels/plugins/helpers.js";

2-

import {

3-

getChannelPlugin,

4-

listChannelPlugins,

5-

normalizeChannelId,

6-

} from "../../channels/plugins/index.js";

2+

import { getChannelPlugin, normalizeChannelId } from "../../channels/plugins/index.js";

3+

import { listReadOnlyChannelPluginsForConfig } from "../../channels/plugins/read-only.js";

4+

import type { ChannelPlugin } from "../../channels/plugins/types.plugin.js";

75

import { commitConfigWithPendingPluginInstalls } from "../../cli/plugins-install-record-commit.js";

86

import { refreshPluginRegistryAfterConfigMutation } from "../../cli/plugins-registry-refresh.js";

97

import { replaceConfigFile, type OpenClawConfig } from "../../config/config.js";

@@ -24,8 +22,12 @@ export type ChannelsRemoveOptions = {

2422

delete?: boolean;

2523

};

262427-

function listAccountIds(cfg: OpenClawConfig, channel: ChatChannel): string[] {

28-

const plugin = getChannelPlugin(channel);

25+

function listAccountIds(

26+

cfg: OpenClawConfig,

27+

channel: ChatChannel,

28+

plugin?: ChannelPlugin,

29+

): string[] {

30+

plugin ??= getChannelPlugin(channel);

2931

if (!plugin) {

3032

return [];

3133

}

@@ -47,23 +49,29 @@ export async function channelsRemoveCommand(

4749

const useWizard = shouldUseWizard(params);

4850

const prompter = useWizard ? createClackPrompter() : null;

4951

const rawChannel = normalizeOptionalString(opts.channel) ?? "";

52+

let lookupChannel = rawChannel;

5053

let channel: ChatChannel | null = normalizeChannelId(rawChannel);

5154

let accountId = normalizeAccountId(opts.account);

5255

const deleteConfig = Boolean(opts.delete);

53565457

if (useWizard && prompter) {

5558

await prompter.intro("Remove channel account");

59+

const readOnlyPlugins = listReadOnlyChannelPluginsForConfig(cfg, {

60+

includeSetupRuntimeFallback: true,

61+

});

5662

const selectedChannel = await prompter.select({

5763

message: "Channel",

58-

options: listChannelPlugins().map((plugin) => ({

64+

options: readOnlyPlugins.map((plugin) => ({

5965

value: plugin.id,

6066

label: plugin.meta.label,

6167

})),

6268

});

6369

channel = selectedChannel;

70+

lookupChannel = selectedChannel;

64716572

accountId = await (async () => {

66-

const ids = listAccountIds(cfg, selectedChannel);

73+

const readOnlyPlugin = readOnlyPlugins.find((plugin) => plugin.id === selectedChannel);

74+

const ids = listAccountIds(cfg, selectedChannel, readOnlyPlugin);

6775

const choice = await prompter.select({

6876

message: "Account",

6977

options: ids.map((id) => ({

@@ -102,16 +110,15 @@ export async function channelsRemoveCommand(

102110

}

103111

}

104112105-

const shouldResolveInstallablePlugin =

106-

!useWizard && rawChannel && (!channel || !getChannelPlugin(channel));

113+

const shouldResolveInstallablePlugin = Boolean(lookupChannel || channel);

107114

const resolvedPluginState = shouldResolveInstallablePlugin

108115

? await (async () => {

109116

const { resolveInstallableChannelPlugin } =

110117

await import("../channel-setup/channel-plugin-resolution.js");

111118

return await resolveInstallableChannelPlugin({

112119

cfg,

113120

runtime,

114-

rawChannel,

121+

rawChannel: lookupChannel,

115122

allowInstall: true,

116123

});

117124

})()