[claude] Hermes session save/load + integration test (#286) #320

Merged
claude merged 1 commits from claude/issue-286 into main 2026-03-24 04:56:44 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
d36fd3c5ca test: add Hermes session save/load integration test (#286)
Some checks failed
CI / validate (pull_request) Failing after 10s
CI / auto-merge (pull_request) Has been skipped
Adds saveSession(), loadSession(), and clearSession() methods to
WebSocketClient in ws-client.js for persisting session tokens across
page reloads via localStorage. On reconnect, an existing token is
sent as a session-resume frame so the server can resume the session.
Incoming session-init messages from the server trigger saveSession().

Creates test-hermes-session.js — 21 integration tests covering:
- saveSession() writes JSON with savedAt timestamp
- loadSession() returns null when nothing stored
- loadSession() restores token and clientId
- full save→reload round-trip via shared storage
- clearSession() removes the entry and nulls this.session
- static analysis of ws-client.js for all new symbols

Refs #286

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 00:56:13 -04:00