Skip to content

[Feat] Display OpenClaw server version in Gateway settings#159

Merged
samzong merged 1 commit intomainfrom
feat/gateway-openclaw-version
Mar 24, 2026
Merged

[Feat] Display OpenClaw server version in Gateway settings#159
samzong merged 1 commit intomainfrom
feat/gateway-openclaw-version

Conversation

@samzong
Copy link
Copy Markdown
Collaborator

@samzong samzong commented Mar 24, 2026

Summary

Extract the OpenClaw server version from the Gateway WebSocket hello-ok handshake response and display it as a badge in the Settings → Gateways list, next to the gateway type label.

Type of change

  • [Feat] new feature

Why is this needed?

Users managing multiple Gateway connections have no way to see which OpenClaw version each server is running. This information is already sent by the server during handshake but was being discarded.

What changed?

  • gateway-client.ts: extract server.version from hello-ok payload using a typeof guard, store as serverVersion, include in gateway-status IPC event, clear on disconnect
  • ws-handlers.ts: expose serverVersion in ws:gateway-status IPC response
  • clawwork.d.ts: add serverVersion to GatewayStatusEvent and GatewayStatusMap types
  • uiStore.ts: add gatewayVersionMap with no-op-guarded setGatewayVersion setter
  • useGatewayDispatcher.ts: populate version from both init (gatewayStatus()) and push (onGatewayStatus) paths
  • GatewaysSection.tsx: render version badge with --info color next to gateway type label

Architecture impact

  • Owning layer: main (extraction) / preload (types) / renderer (display)
  • Cross-layer impact: yes — version flows main → preload → renderer via existing gateway-status IPC channel
  • Invariants touched from docs/architecture-invariants.md: none
  • Why those invariants remain protected: read-only data addition, no write-path changes

Linked issues

Closes #104

Validation

  • pnpm lint
  • pnpm test
  • pnpm build
  • Manual smoke test
  • Not run

Commands, screenshots, or notes:

pnpm check (lint + architecture + format + typecheck + test) — all green, 88 tests passed

Screenshots or recordings

Version badge appears as a blue (--info) mono badge next to the "OpenClaw" type label on each gateway card, visible only when connected and version is known.

Release note

  • No user-facing change. Release note is NONE.
  • User-facing change. Release note is included below.
Display the connected OpenClaw server version in Settings → Gateways.

Checklist

  • The PR title uses at least one approved prefix: [Feat], [Fix], [UI], [Docs], [Refactor], [Build], or [Chore]
  • The summary explains both what changed and why
  • Validation reflects the commands actually run for this PR
  • Architecture impact is described and references any touched invariants
  • Cross-layer changes are explicitly justified
  • The release note block is accurate

@github-actions
Copy link
Copy Markdown
Contributor

Hi @samzong,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

@samzong samzong force-pushed the feat/gateway-openclaw-version branch from 1d56a94 to e337477 Compare March 24, 2026 05:52
Extract server version from the hello-ok handshake response and
show it as a badge next to the gateway type label in Settings.

Closes #104
@samzong samzong force-pushed the feat/gateway-openclaw-version branch from e337477 to e69ad15 Compare March 24, 2026 06:00
@samzong samzong merged commit ff75114 into main Mar 24, 2026
6 checks passed
@samzong samzong deleted the feat/gateway-openclaw-version branch March 24, 2026 06:20
samzong added a commit that referenced this pull request Mar 24, 2026
)

Extract server version from the hello-ok handshake response and
show it as a badge next to the gateway type label in Settings.

Closes #104

Signed-off-by: samzong <samzong.lu@gmail.com>
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.

new support show openclaw version in gateway config.

1 participant