openclaw - 💡(How to fix) Fix [Bug]: auto state migration skips detected channel legacy plans

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

A local code audit found that auto legacy-state migration detects channel legacy plans but can return early without applying them when no other legacy session/agent-dir migrations are present.

Root Cause

A local code audit found that auto legacy-state migration detects channel legacy plans but can return early without applying them when no other legacy session/agent-dir migrations are present.

Fix Action

Fix / Workaround

Detected channel legacy plans should participate in the auto-migration decision and be applied, with warnings/changes merged into the returned result.

RAW_BUFFERClick to expand / collapse

Summary

A local code audit found that auto legacy-state migration detects channel legacy plans but can return early without applying them when no other legacy session/agent-dir migrations are present.

Affected area

  • src/infra/state-migrations.ts
  • autoMigrateLegacyState
  • migrateChannelLegacyStatePlans

Repro

Create a state dir with only a channel legacy migration plan and no legacy sessions/agent-dir migration. Call autoMigrateLegacyState. The result reports no changes and the channel target file is not created.

Expected

Detected channel legacy plans should participate in the auto-migration decision and be applied, with warnings/changes merged into the returned result.

Suggested fix

Include channelPlans in the early-return decision and call migrateChannelLegacyStatePlans from autoMigrateLegacyState.

Source: local code audit.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: auto state migration skips detected channel legacy plans