Skip to content

Commit 72879e1

Browse files
feat(agent-canvas): add staticServer.lockToCloud chart value
Passes `--lock-to-cloud <url>` to static-server.mjs when set, injecting `window.__AGENT_CANVAS_LOCK_TO_CLOUD__` so the UI locks backend setup to a single OpenHands Cloud host instead of the user-managed "Manage Backends" flow. Empty by default, so existing deployments are unchanged. - charts/agent-canvas: add `staticServer.lockToCloud` value + template - bump agent-canvas chart 0.1.1 -> 0.1.2 - bump openhands parent chart 0.7.64 -> 0.7.65 and its agent-canvas dependency to 0.1.2 This wires the lock-to-cloud mode added in OpenHands/agent-canvas#1389 into the Helm chart so deployments (e.g. canvas.staging.all-hands.dev) can opt in via values. Co-authored-by: openhands <openhands@all-hands.dev>
1 parent d2fdb98 commit 72879e1

5 files changed

Lines changed: 30 additions & 3 deletions

File tree

charts/agent-canvas/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: agent-canvas
33
description: Frontend-only deployment of OpenHands Agent Canvas (UI shell pointing at user-managed backends)
44
type: application
5-
version: 0.1.1
5+
version: 0.1.2
66
appVersion: "0.1.0"

charts/agent-canvas/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,20 @@ agent-canvas:
3030
enabled: true
3131
secretName: agent-canvas-tls
3232
```
33+
34+
### Locking the UI to a single OpenHands Cloud host
35+
36+
Set `staticServer.lockToCloud` to pass `--lock-to-cloud <url>` to
37+
`static-server.mjs`. The UI then locks backend setup to a single
38+
OpenHands Cloud host (skipping the "Manage Backends" flow), e.g. for a
39+
dedicated `canvas.<env>.all-hands.dev` deployment:
40+
41+
```yaml
42+
agent-canvas:
43+
enabled: true
44+
staticServer:
45+
lockToCloud: https://app.all-hands.dev
46+
ingress:
47+
enabled: true
48+
host: canvas.staging.all-hands.dev
49+
```

charts/agent-canvas/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ spec:
4444
{{- if .Values.staticServer.authRequired }}
4545
- --auth-required
4646
{{- end }}
47+
{{- with .Values.staticServer.lockToCloud }}
48+
- --lock-to-cloud
49+
- {{ . | quote }}
50+
{{- end }}
4751
{{- range .Values.staticServer.rejectPrefixes }}
4852
- --reject-prefix
4953
- {{ . | quote }}

charts/agent-canvas/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ ingress:
4343
# normally proxy to a local backend (since this deployment has none).
4444
staticServer:
4545
authRequired: true
46+
# When set, passes `--lock-to-cloud <url>` to static-server.mjs, which
47+
# injects window.__AGENT_CANVAS_LOCK_TO_CLOUD__ so the UI locks backend
48+
# setup to a single OpenHands Cloud host (e.g.
49+
# https://app.all-hands.dev). Leave empty for the standard
50+
# user-managed "Manage Backends" flow.
51+
lockToCloud: ""
4652
rejectPrefixes:
4753
- /api
4854
- /server_info

charts/openhands/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
description: OpenHands is an AI-driven autonomous software engineer
33
name: openhands
44
appVersion: cloud-1.38.0
5-
version: 0.7.65
5+
version: 0.7.66
66
dependencies:
77
- name: keycloak
88
version: 24.7.5
@@ -53,5 +53,5 @@ dependencies:
5353
condition: integrations-hub.enabled
5454
- name: agent-canvas
5555
repository: oci://ghcr.io/openhands/helm-charts
56-
version: 0.1.1
56+
version: 0.1.2
5757
condition: agent-canvas.enabled

0 commit comments

Comments
 (0)