Skip to content

Feature/auto update#120

Open
ImBada wants to merge 1 commit intotechartdev:mainfrom
ImBada:feature/auto-update
Open

Feature/auto update#120
ImBada wants to merge 1 commit intotechartdev:mainfrom
ImBada:feature/auto-update

Conversation

@ImBada
Copy link
Copy Markdown

@ImBada ImBada commented Apr 23, 2026

I believe using this is highly dangerous, so it is best not to add it. I have fixed it for now and will leave it available for those who want it. Please leave it as is.

Summary

  • Add automatic OpenClaw version check and update on add-on startup. Restarting the add-on will automatically update OpenClaw to the latest version if a newer one is available.
  • Add openclaw doctor --fix step before runtime launch to auto-fix legacy config keys that may break after version upgrades.

Background

Previously, updating OpenClaw required manually updating the add-on image. With this change, simply restarting the add-on triggers an automatic update via npm — no rebuild needed.

After a version upgrade, certain config keys may become invalid or renamed. The openclaw doctor --fix step detects and corrects these legacy config issues before the runtime starts, preventing startup failures.

Testing

Verified stability across two consecutive automatic upgrades:

  • 2026.4.2 → 2026.4.5
  • 2026.4.5 → 2026.4.8

Both upgrades completed successfully on restart with no manual intervention. The doctor fix step correctly handled config key migrations in each case.

@techartdev
Copy link
Copy Markdown
Owner

I also think the same. Lets leave it as sample if somebody wants it in his fork.

@ImBada ImBada force-pushed the feature/auto-update branch from 08f1dd5 to dc85b80 Compare April 27, 2026 13:06
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.

2 participants