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

推荐订阅源

美团技术团队
人人都是产品经理
人人都是产品经理
月光博客
月光博客
V
V2EX
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
博客园 - 聂微东
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志

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(doctor): migrate Feishu account bot names (#86081) · ...
giodl73-repo · 2026-05-25 · via Recent Commits to openclaw:main

@@ -200,6 +200,48 @@ function migrateTelegramRequireMention(raw: Record<string, unknown>, changes: st

200200

raw.channels = channels;

201201

}

202202203+

function hasLegacyFeishuAccountBotName(value: unknown): boolean {

204+

const accounts = getRecord(value);

205+

if (!accounts) {

206+

return false;

207+

}

208+

return Object.values(accounts).some((entry) => {

209+

const account = getRecord(entry);

210+

return Boolean(account && hasOwnKey(account, "botName"));

211+

});

212+

}

213+214+

function migrateFeishuAccountBotName(raw: Record<string, unknown>, changes: string[]): void {

215+

const channels = getRecord(raw.channels);

216+

const feishu = getRecord(channels?.feishu);

217+

const accounts = getRecord(feishu?.accounts);

218+

if (!channels || !feishu || !accounts) {

219+

return;

220+

}

221+222+

for (const [accountId, accountRaw] of Object.entries(accounts)) {

223+

const account = getRecord(accountRaw);

224+

if (!account || !hasOwnKey(account, "botName")) {

225+

continue;

226+

}

227+228+

const legacyPath = `channels.feishu.accounts.${accountId}.botName`;

229+

const currentPath = `channels.feishu.accounts.${accountId}.name`;

230+

if (account.name === undefined) {

231+

account.name = account.botName;

232+

changes.push(`Moved ${legacyPath}${currentPath}.`);

233+

} else {

234+

changes.push(`Removed ${legacyPath} (${currentPath} already set).`);

235+

}

236+

delete account.botName;

237+

accounts[accountId] = account;

238+

}

239+240+

feishu.accounts = accounts;

241+

channels.feishu = feishu;

242+

raw.channels = channels;

243+

}

244+203245

function hasLegacyThreadBindingTtl(value: unknown): boolean {

204246

const threadBindings = getRecord(value);

205247

return Boolean(threadBindings && hasOwnKey(threadBindings, "ttlHours"));

@@ -409,6 +451,15 @@ const GROUP_ROUTING_RULES: LegacyConfigRule[] = [

409451

},

410452

];

411453454+

const FEISHU_ACCOUNT_RULES: LegacyConfigRule[] = [

455+

{

456+

path: ["channels", "feishu", "accounts"],

457+

message:

458+

'channels.feishu.accounts.<id>.botName was renamed to channels.feishu.accounts.<id>.name. Run "openclaw doctor --fix".',

459+

match: (value) => hasLegacyFeishuAccountBotName(value),

460+

},

461+

];

462+412463

export const LEGACY_CONFIG_MIGRATIONS_CHANNELS: LegacyConfigMigrationSpec[] = [

413464

defineLegacyConfigMigration({

414465

id: "legacy-group-routing->channel-groups",

@@ -421,6 +472,14 @@ export const LEGACY_CONFIG_MIGRATIONS_CHANNELS: LegacyConfigMigrationSpec[] = [

421472

migrateTelegramRequireMention(raw, changes);

422473

},

423474

}),

475+

defineLegacyConfigMigration({

476+

id: "feishu.accounts.botName->name",

477+

describe: "Move legacy Feishu account botName config to account name",

478+

legacyRules: FEISHU_ACCOUNT_RULES,

479+

apply: (raw, changes) => {

480+

migrateFeishuAccountBotName(raw, changes);

481+

},

482+

}),

424483

defineLegacyConfigMigration({

425484

id: "thread-bindings.ttlHours->idleHours",

426485

describe: