Repository navigation
feat: openclaw connect handshake and chat events - #48
Merged
Merged
Conversation
Tokenless sockets upgrade into a pre-auth state, receive a connect.challenge event, and authenticate with a connect frame (auth.password|token) within 10s; ?token= upgrade auth unchanged. Server emits tick events (openclaw clients treat silence as death), chat.send accepts sessionKey, replies also emit openclaw-shaped chat events (state final/error), chat.history serves agent-micro sessions, and agents/models/sessions/commands list methods respond with usable shapes.
openclaw clients send every credential they hold — a stale stored
token alongside the typed password — so first-field-wins rejected
valid logins. Verified: openclaw tui now connects to the jsclaw
gateway ('gateway connected').
This was referenced Jun 11, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First bite of #45 — the auth handshake plus the minimum method/event surface, verified against a simulated openclaw client sequence (challenge → connect → hello-ok → chat.send {sessionKey} → chat event state:final) running through the live agent. Tests 129/129 (5 new). Full findings and remaining work documented on #45.