


























@@ -20,6 +20,11 @@ import {
2020type ChatChannel,
2121} from "./shared.js";
222223+type ChannelStatusPluginLabel = {
24+id: ChatChannel;
25+meta: { label?: string };
26+};
27+2328export async function formatConfigChannelsStatusLines(
2429cfg: OpenClawConfig,
2530meta: { path?: string; mode?: "local" | "remote" },
@@ -37,14 +42,19 @@ export async function formatConfigChannelsStatusLines(
3742lines.push("");
3843}
394440-const accountLines = (provider: ChatChannel, accounts: Array<Record<string, unknown>>) =>
45+const accountLines = (
46+plugin: ChannelStatusPluginLabel,
47+accounts: Array<Record<string, unknown>>,
48+) =>
4149accounts.map((account) => {
4250const bits: string[] = [];
4351appendEnabledConfiguredLinkedBits(bits, account);
4452appendModeBit(bits, account);
4553appendTokenSourceBits(bits, account);
4654appendBaseUrlBit(bits, account);
47-return buildChannelAccountLine(provider, account, bits);
55+return buildChannelAccountLine(plugin.id, account, bits, {
56+channelLabel: plugin.meta.label ?? plugin.id,
57+});
4858});
49595060const sourceConfig = opts?.sourceConfig ?? cfg;
@@ -79,7 +89,7 @@ export async function formatConfigChannelsStatusLines(
7989);
8090}
8191if (snapshots.length > 0) {
82-lines.push(...accountLines(plugin.id, snapshots));
92+lines.push(...accountLines(plugin, snapshots));
8393}
8494}
8595此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。