Skip to content

feat: pin OH_DEPLOYMENT_MODE=self_hosted on OHE deployments#713

Merged
ak684 merged 2 commits into
mainfrom
alona/ohe-deployment-mode
Jun 13, 2026
Merged

feat: pin OH_DEPLOYMENT_MODE=self_hosted on OHE deployments#713
ak684 merged 2 commits into
mainfrom
alona/ohe-deployment-mode

Conversation

@ak684

@ak684 ak684 commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

What

An OHE install is always self-hosted. Set OH_DEPLOYMENT_MODE=self_hosted statically on the OpenHands deployments so deployment_mode is deterministic rather than inferred from the hostname — the host heuristic mislabels self-hosted installs under *.all-hands.dev (e.g. our test VMs) as cloud.

Added to the openhands.env.defaults macro next to OH_APP_MODE, so it propagates to openhands, openhands-integrations, and openhands-mcp via the shared openhands.env helper. No KOTS config field — there's no scenario where an OHE install isn't self-hosted.

Companion to OpenHands/OpenHands#14794, which honors the flag (explicit OH_DEPLOYMENT_MODE precedence in both deployment-mode resolvers) and gates the cloud-only "Need an OpenHands Account?" CTA on it.

Test

helm template charts/openhands renders cleanly; OH_DEPLOYMENT_MODE=self_hosted appears alongside OH_APP_MODE on all three deployments.

An OHE install is always self-hosted; set it statically so deployment_mode
is deterministic instead of inferred from the hostname (which mislabels
self-hosted installs under *.all-hands.dev as cloud). Propagates to all
three deployments via the shared openhands.env helper.
@ak684 ak684 marked this pull request as ready for review June 13, 2026 17:01
@ak684 ak684 requested a review from all-hands-bot June 13, 2026 17:01

all-hands-bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Review complete.

This review was performed through OpenHands Cloud Automation. You can log in and view the conversation here.

@all-hands-bot all-hands-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Good taste — Clean, minimal change that solves a real problem.

The PR correctly:

  • Pins OH_DEPLOYMENT_MODE=self_hosted via the existing openhands.env.defaults macro, ensuring it propagates to all three deployments
  • Includes a clear comment explaining the rationale
  • Bumps the chart version appropriately

No issues found. The PR description provides sufficient test evidence (helm template verification), and the companion OpenHands/OpenHands#14794 handles the flag consumption.

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk Assessment: 🟢 LOW
    No breaking changes. Adds a deterministic environment variable to self-hosted deployments without affecting cloud deployments.

VERDICT:Worth merging

KEY INSIGHT:
Explicitly setting OH_DEPLOYMENT_MODE removes the need for hostname-based inference, eliminating edge cases where *.all-hands.dev test VMs are mislabeled as cloud mode.

This review was generated by an AI agent (OpenHands) on behalf of the user through OpenHands Automation. View conversation

@ak684 ak684 merged commit 82a23e7 into main Jun 13, 2026
25 checks passed
@ak684 ak684 deleted the alona/ohe-deployment-mode branch June 13, 2026 17:10
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