Skip to content

feat: openclaw connect handshake and chat events - #48

Merged
melvincarvalho merged 2 commits into
gh-pagesfrom
issue-45-openclaw-handshake
Jun 11, 2026
Merged

melvincarvalho merged 2 commits into
gh-pagesfrom
issue-45-openclaw-handshake

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

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.

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').
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