Skip to content

feat: enable OpenClaw Gateway adapter in UI#1901

Open
currentsuspect wants to merge 1 commit intopaperclipai:masterfrom
currentsuspect:feat/enable-openclaw-gateway-adapter
Open

feat: enable OpenClaw Gateway adapter in UI#1901
currentsuspect wants to merge 1 commit intopaperclipai:masterfrom
currentsuspect:feat/enable-openclaw-gateway-adapter

Conversation

@currentsuspect
Copy link
Copy Markdown

Summary

The OpenClaw Gateway adapter was fully implemented server-side and UI-side but openclaw_gateway was missing from the ENABLED_ADAPTER_TYPES set in AgentConfigForm.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

  1. ui/src/components/AgentConfigForm.tsx — Added "openclaw_gateway" to ENABLED_ADAPTER_TYPES set so the adapter is selectable in the dropdown.

  2. server/scripts/dev-watch.ts — Fixed tsx compatibility: changed require.resolve("tsx/dist/cli.mjs") to require.resolve("tsx/cli"). The subpath tsx/dist/cli.mjs is not exported in tsx ≥ 4.19, causing ERR_PACKAGE_PATH_NOT_EXPORTED on pnpm dev with current dependencies.

Testing

  • The adapter's UI config fields (Gateway URL, auth token, session strategy, role, scopes, wait timeout) were verified in ui/src/adapters/openclaw-gateway/config-fields.tsx
  • buildOpenClawGatewayConfig sets sensible defaults (timeout 120s, waitTimeoutMs 120000, sessionKeyStrategy: issue, role: operator, scopes: [operator.admin])
  • The server adapter is already registered in server/src/adapters/registry.ts

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-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 27, 2026

Greptile Summary

This PR makes two targeted one-line fixes: it enables the already-implemented openclaw_gateway adapter in the UI dropdown by adding it to ENABLED_ADAPTER_TYPES, and it corrects the tsx CLI subpath import in the dev-watch script for compatibility with tsx ≥ 4.19. Both changes are correct and complete given the existing server-side registration and UI config field implementation.

However, the PR description does not follow the project's contribution guidelines (CONTRIBUTING.md):

  • Missing "thinking path" — CONTRIBUTING.md requires a top-level thinking path that traces from the project's purpose down to the specific problem being fixed and the benefits of this change.
  • Missing before/after screenshots — This PR enables a new option in a UI dropdown (a visible change), so before/after screenshots are required per CONTRIBUTING.md.

Please update the PR description to include both of these items before merging.

Confidence Score: 5/5

Both 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

Filename Overview
ui/src/components/AgentConfigForm.tsx Adds "openclaw_gateway" to ENABLED_ADAPTER_TYPES so the adapter is selectable in the dropdown; the type already exists in the shared AGENT_ADAPTER_TYPES constant and the server registry, so this single-line addition is the correct and complete fix.
server/scripts/dev-watch.ts Replaces the no-longer-exported tsx/dist/cli.mjs subpath with the stable tsx/cli subpath, which is required for tsx ≥ 4.19 (the pinned version is ^4.19.2).

Reviews (1): Last reviewed commit: "feat: enable OpenClaw Gateway adapter in..." | Re-trigger Greptile

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.

1 participant