feat: enable OpenClaw Gateway adapter in UI#1901
feat: enable OpenClaw Gateway adapter in UI#1901currentsuspect wants to merge 1 commit intopaperclipai:masterfrom
Conversation
The OpenClaw Gateway adapter was fully implemented (server, UI config fields, build-config, test-environment probe) but missing from the ENABLED_ADAPTER_TYPES set, causing it to render as 'Coming soon' and disabled in the adapter type dropdown. Changes: - Added 'openclaw_gateway' to ENABLED_ADAPTER_TYPES in AgentConfigForm - Fixed tsx compatibility: dev-watch.ts referenced 'tsx/dist/cli.mjs' which is not exported in tsx >= 4.19; changed to 'tsx/cli'
Greptile SummaryThis PR makes two targeted one-line fixes: it enables the already-implemented However, the PR description does not follow the project's contribution guidelines (CONTRIBUTING.md):
Please update the PR description to include both of these items before merging. Confidence Score: 5/5Both code changes are correct and safe to merge; the only outstanding item is updating the PR description to meet contribution guidelines. The two one-line changes are both accurate fixes with no logic errors, no security concerns, and full backing from existing server-side and shared-type implementations. The only feedback is a P2-level PR-description process concern. No files require special attention — both changed files are clean. Important Files Changed
Reviews (1): Last reviewed commit: "feat: enable OpenClaw Gateway adapter in..." | Re-trigger Greptile |
Summary
The OpenClaw Gateway adapter was fully implemented server-side and UI-side but
openclaw_gatewaywas missing from theENABLED_ADAPTER_TYPESset inAgentConfigForm.tsx.This caused the adapter to render as "Coming soon" and disabled in the adapter type dropdown — even though clicking it from the NewAgentDialog navigated to the correct config page.
Changes
ui/src/components/AgentConfigForm.tsx— Added"openclaw_gateway"toENABLED_ADAPTER_TYPESset so the adapter is selectable in the dropdown.server/scripts/dev-watch.ts— Fixedtsxcompatibility: changedrequire.resolve("tsx/dist/cli.mjs")torequire.resolve("tsx/cli"). The subpathtsx/dist/cli.mjsis not exported in tsx ≥ 4.19, causingERR_PACKAGE_PATH_NOT_EXPORTEDonpnpm devwith current dependencies.Testing
ui/src/adapters/openclaw-gateway/config-fields.tsxbuildOpenClawGatewayConfigsets sensible defaults (timeout 120s, waitTimeoutMs 120000, sessionKeyStrategy: issue, role: operator, scopes: [operator.admin])server/src/adapters/registry.ts