fix(migrate): hide per-item hints in Codex skill/plugin selection pro… · openclaw/openclaw@8da06d4
sjf
·
2026-05-14
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -262,31 +262,21 @@ function humanizeMigrationConflictReason(reason: string | undefined): string {
|
262 | 262 | } |
263 | 263 | |
264 | 264 | export function formatMigrationSkillSelectionHint(item: MigrationItem): string | undefined { |
265 | | -const sourceLabel = readMigrationSkillSourceLabel(item); |
266 | | -if (item.status === "conflict") { |
267 | | -const reason = humanizeMigrationConflictReason(item.reason); |
268 | | -return sourceLabel ? `${sourceLabel} ${reason}` : reason; |
| 265 | +if (item.status !== "conflict") { |
| 266 | +return undefined; |
269 | 267 | } |
270 | | -return sourceLabel ?? undefined; |
| 268 | +const sourceLabel = readMigrationSkillSourceLabel(item); |
| 269 | +const reason = humanizeMigrationConflictReason(item.reason); |
| 270 | +return sourceLabel ? `${sourceLabel} ${reason}` : reason; |
271 | 271 | } |
272 | 272 | |
273 | 273 | export function formatMigrationPluginSelectionHint(item: MigrationItem): string | undefined { |
274 | | -const pluginName = readMigrationPluginName(item); |
275 | | -const configKey = readMigrationPluginConfigKey(item); |
| 274 | +if (item.status !== "conflict") { |
| 275 | +return undefined; |
| 276 | +} |
276 | 277 | const marketplace = readMigrationPluginMarketplaceName(item); |
277 | | -if (item.status === "conflict") { |
278 | | -const reason = humanizeMigrationConflictReason(item.reason); |
279 | | -return marketplace ? `${marketplace} plugin ${reason}` : reason; |
280 | | -} |
281 | | -const parts = [ |
282 | | -marketplace, |
283 | | -configKey && configKey !== pluginName ? `config: ${configKey}` : undefined, |
284 | | -]; |
285 | | -return ( |
286 | | -parts |
287 | | -.filter((value): value is string => typeof value === "string" && value.length > 0) |
288 | | -.join("; ") || undefined |
289 | | -); |
| 278 | +const reason = humanizeMigrationConflictReason(item.reason); |
| 279 | +return marketplace ? `${marketplace} plugin ${reason}` : reason; |
290 | 280 | } |
291 | 281 | |
292 | 282 | export function applyMigrationSelectedSkillItemIds( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。