Repository navigation
Let standalone operator commands open their own Cloudflare session - #278
Merged
Merged
Conversation
The deployment shares one session for initialization, but commands that run on their own still need connectCloudflareSettings to open and close one from a Wrangler configuration. The shared variant is now createCloudflareSettings.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | e62c14b | Nov 22 2026, 12:08 AM |
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.
#264 changed
connectCloudflareSettingsto take existing platform bindings, so the deployment can share one session. Operator commands that run on their own have no session to pass and relied on the helper opening one from a Wrangler configuration.connectCloudflareSettingsopens a session fromconfigPathagain and returnsclose, as before Initialize Hosted installations within the deployment process #264.createCloudflareSettingstakes existing bindings; Hosted initialization uses it with the shared deployment session.

Confidence Score: 5/5
This PR appears safe to merge; standalone and shared sessions have separate, clear owners.Summary
Restores
connectCloudflareSettingsas an async helper that opens a Wrangler session and returnsclose.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Standalone caller] --> B[connectCloudflareSettings] B --> C[Open Wrangler session] C --> D[createCloudflareSettings] D --> E[Return services and close] E --> F[Caller closes session] G[Hosted deployment] --> H[Open shared Wrangler session] H --> I[Check runtime and initialize installation] I --> D I --> J[Deployment finally closes shared session]Reviews (1) · Last reviewed commit: "Let standalone operator commands open th..." · Reviewed by Greptile