fix(canvas): fix permanently-disabled Deploy button when runtime has no required env vars (closes #1022) #1038

Merged
devops-engineer merged 1 commits from fix/1022-missing-keys-modal-allSaved into staging 2026-05-14 16:19:24 +00:00

1 Commits

Author SHA1 Message Date
53ac6444c7 fix(canvas): fix permanently-disabled Deploy button when runtime has no required env vars (closes #1022)
Some checks failed
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 10s
E2E API Smoke Test / detect-changes (pull_request) Successful in 27s
CI / Detect changes (pull_request) Successful in 31s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 30s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 18s
gate-check-v3 / gate-check (pull_request) Successful in 16s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 38s
qa-review / approved (pull_request) Successful in 18s
sop-checklist / na-declarations (pull_request) N/A: qa-review, security-review
security-review / approved (pull_request) Successful in 16s
sop-checklist / all-items-acked (pull_request) Successful in 16s
Harness Replays / Harness Replays (pull_request) Successful in 7s
sop-tier-check / tier-check (pull_request) Successful in 15s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 7s
CI / Python Lint & Test (pull_request) Successful in 6s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m23s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 9s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m39s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m59s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m55s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Failing after 1m40s
lint-mask-pr-atomicity / lint-mask-pr-atomicity (pull_request) Successful in 2m3s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 2m9s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 1m32s
CI / Platform (Go) (pull_request) Failing after 4m30s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Failing after 4m23s
CI / Canvas (Next.js) (pull_request) Successful in 9m35s
CI / Canvas Deploy Reminder (pull_request) Successful in 1s
CI / all-required (pull_request) Successful in 0s
audit-force-merge / audit (pull_request) Successful in 21s
When a runtime declares no required_env (e.g. Openclaw), the MissingKeysModal
Deploy button was permanently disabled because:

  allSaved = entries.length > 0 && entries.every(...)

With entries=[], JavaScript evaluates this as false (due to short-circuit on
entries.length), making the button disabled forever.

Fix: remove the length guard. [].every(fn) is vacuously true per the JS spec,
so "nothing required" correctly means "all requirements satisfied".

Affected components:
- ProviderPickerModal (line 347)
- AllKeysModal (line 619)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 15:19:23 +00:00