feat: opt-in auto-update for openclaw on container boot#307
Open
isaacrowntree wants to merge 1 commit intocloudflare:mainfrom
Open
feat: opt-in auto-update for openclaw on container boot#307isaacrowntree wants to merge 1 commit intocloudflare:mainfrom
isaacrowntree wants to merge 1 commit intocloudflare:mainfrom
Conversation
When OPENCLAW_AUTO_UPDATE=true is set, start-openclaw.sh runs npm install -g openclaw@latest on every cold start. This lets bug fixes and new features land without a full wrangler deploy. The Dockerfile-pinned version serves as a fallback if npm is unreachable during boot. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OPENCLAW_AUTO_UPDATE=trueenv var (no behavior change by default)npm install -g openclaw@latestto pick up bug fixes without a fullwrangler deployChanges
start-openclaw.sh: New self-update section before onboarding, gated byOPENCLAW_AUTO_UPDATEsrc/types.ts: AddOPENCLAW_AUTO_UPDATEtoMoltbotEnvsrc/gateway/env.ts: PassOPENCLAW_AUTO_UPDATEthrough to containerUsage
wrangler secret put OPENCLAW_AUTO_UPDATE # Enter: trueTest plan
OPENCLAW_AUTO_UPDATEset: no change in behavior, skips updateOPENCLAW_AUTO_UPDATE=true: logs version check, updates if newer version available🤖 Generated with Claude Code