Skip to content

fix(migrate): safer openclaw state access in migrate 197#13686

Merged
DeJeune merged 1 commit intoCherryHQ:mainfrom
alephpiece:fix/migrate-197
Mar 21, 2026
Merged

fix(migrate): safer openclaw state access in migrate 197#13686
DeJeune merged 1 commit intoCherryHQ:mainfrom
alephpiece:fix/migrate-197

Conversation

@alephpiece
Copy link
Copy Markdown
Collaborator

@alephpiece alephpiece commented Mar 21, 2026

What this PR does

Use optional chaining for safer openclaw state access in migration 197.

Before this PR:

Migration from a very old state may fail at step 197 if openclaw does not exist in the state.

image

After this PR:

No failure.

Fixes #

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place:

Breaking changes

If this PR introduces breaking changes, please describe the changes and the impact on users.

Special notes for your reviewer

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note

Use optional chaining for safer `openclaw` state access in migration 197.

@DeJeune DeJeune merged commit 3cd9231 into CherryHQ:main Mar 21, 2026
9 checks passed
@alephpiece alephpiece deleted the fix/migrate-197 branch March 22, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants