Skip to content

feat(connection): show shared token chip, auto-fill token, default URL - #485

Merged
shanselman merged 1 commit into
openclaw:masterfrom
ranjeshj:user/ranjeshj/moreinfo
May 21, 2026
Merged

shanselman merged 1 commit into
openclaw:masterfrom
ranjeshj:user/ranjeshj/moreinfo

Conversation

@ranjeshj

Copy link
Copy Markdown
Contributor

Changes

  • Shared token glance chip — When connected via shared token, a clickable 'Shared token' chip appears in the connection page chip strip (alongside Local, 1 client, etc.). Hovering shows 'Tap to copy shared token'; clicking copies the full token to clipboard.
  • PasswordBox → TextBox — DirectTokenBox changed from PasswordBox to TextBox so the shared token is visible when entering it.
  • Default URL — Add Gateway form pre-fills \ws://127.0.0.1:18789.
  • Auto-populate token — When the gateway URL matches a saved gateway with a SharedGatewayToken, the token field auto-fills. On focus-out, the token updates to match the current URL or clears if no match.

Review fixes applied

  • Clear stale token/name fields before auto-fill in OnEnterAddGateway
  • Fingerprint tracks token length (not just presence) so chip rebuilds on token rotation

- Add clickable 'Shared token' glance chip with tooltip; copies token on tap
- Auto-populate shared token in Direct form when URL matches saved gateway
- Pre-fill default URL ws://127.0.0.1:18789 in Add Gateway form
- Change DirectTokenBox from PasswordBox to TextBox for visibility

Co-authored-by: Copilot <[email protected]>
@shanselman
shanselman merged commit ed126f2 into openclaw:master May 21, 2026
18 checks passed
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.

2 participants