Skip to content

Let standalone operator commands open their own Cloudflare session - #278

Merged
tnkuehne merged 1 commit into
mainfrom
tools/operator-settings-session
Nov 22, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
tools/operator-settings-session

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

#264 changed connectCloudflareSettings to 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.

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge; standalone and shared sessions have separate, clear owners.

Summary

Restores connectCloudflareSettings as an async helper that opens a Wrangler session and returns close.

  • Standalone operator commands open a Cloudflare session from their Wrangler config.

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]
Loading

Reviews (1) · Last reviewed commit: "Let standalone operator commands open th..." · Reviewed by Greptile

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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs e62c14b Nov 22 2026, 12:08 AM

@tnkuehne
tnkuehne merged commit d44564b into main Nov 22, 2026
17 checks passed
@tnkuehne
tnkuehne deleted the tools/operator-settings-session branch November 22, 2026 00:35
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.

1 participant