This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Repository navigation
fix: let users declare self-hosted OHE as a Cloud backend - #1627
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
✅ Mock-LLM E2E Tests60/60 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
Contributor
✅ Mock-LLM Docker E2E Test Results60/60 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
Contributor
|
🚀 Released in v1.2.0. |
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
HUMAN:
The manual "Add backend" flow inferred a backend's kind from its host via a substring match on all-hands.dev/openhands.dev, so a self-hosted OpenHands Enterprise (OHE) on a custom domain was classified as a "local" agent-server. Agent Canvas then probed /server_info cross-origin — the reported CORS error — and used the wrong auth scheme and transport.
A hostname can't distinguish a custom-domain OHE from a custom-domain local agent-server, so restore an explicit Local/Cloud selector in the manual add column and use it as the source of truth for
kind. Host inference stays the default, now via proper hostname-suffix matching (isOpenHandsCloudHost).Also surface the follow-on failure honestly: an active cloud backend that is persistently unreachable due to CORS/network now routes to the backend recovery screen instead of a misleading "LLM not configured" home page.
AGENT:
Why
We cannot connect Agent Canvas (
localhost:8000) to our self-hosted OpenHands Enterprise (OHE):GET /server_infois blocked by CORS. Root cause is client-side — the manual Add-backend flow inferred the backend'skindfrom the host via a substring match, so a self-hosted OHE on a custom domain was misclassified as alocalagent-server. That made Agent Canvas probe/server_infocross-origin (the reported error) and use the wrong auth/transport. A hostname can't distinguish a custom-domain OHE from a custom-domain local agent-server, so the fix restores an explicit choice.Summary
kind; host inference remains the default and now uses proper hostname-suffix matching instead of a substring test.Issue Number
N/A.
How to Test
Manual (in the app, with DevTools Network open):
/server_infois fired, and the backend is saved withkind: "cloud"(subsequent calls carryAuthorization: Bearer).localhosthost and confirm the/server_infoprobe still runs (unchanged local behaviour).Video/Screenshots
app-2606.mov
Type
🐳 Docker images for this PR
• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas
ghcr.io/openhands/agent-canvasghcr.io/openhands/agent-server:1.33.0-pythonopenhands-automation==1.1.4b49385d7f137f6ce490863f053ca9348d8c45155Pull (multi-arch manifest)
# Multi-arch manifest — Docker automatically pulls the correct architecture docker pull ghcr.io/openhands/agent-canvas:sha-b49385dRun
All tags pushed for this build
About Multi-Architecture Support
sha-b49385d) is a multi-arch manifest supporting both amd64 and arm64sha-b49385d-amd64) are also available if needed