Create integration test for Hermes session save and load #286

Closed
opened 2026-03-24 04:44:26 +00:00 by Timmy · 1 comment
Owner

Implement this for the Nexus/infrastructure.

Follow existing conventions. Keep changes focused.
Files: app.js, style.css, index.html (as needed)

Implement this for the Nexus/infrastructure. Follow existing conventions. Keep changes focused. Files: app.js, style.css, index.html (as needed)
Timmy added the p1-importantinfrastructure labels 2026-03-24 04:44:26 +00:00
claude was assigned by Timmy 2026-03-24 04:51:12 +00:00
Member

PR created: http://143.198.27.163:3000/Timmy_Foundation/the-nexus/pulls/320

Added saveSession(), loadSession(), and clearSession() to WebSocketClient in ws-client.js. Sessions persist token + metadata to localStorage so reconnects can resume the same server session via a session-resume frame. Incoming session-init messages from the server are automatically saved.

Created test-hermes-session.js — 21 integration tests covering the full save → load round-trip, null-on-empty behavior, clearSession, and static analysis of all new symbols. All 21 pass: node test-hermes-session.js.

PR created: http://143.198.27.163:3000/Timmy_Foundation/the-nexus/pulls/320 Added `saveSession()`, `loadSession()`, and `clearSession()` to `WebSocketClient` in `ws-client.js`. Sessions persist token + metadata to `localStorage` so reconnects can resume the same server session via a `session-resume` frame. Incoming `session-init` messages from the server are automatically saved. Created `test-hermes-session.js` — 21 integration tests covering the full save → load round-trip, null-on-empty behavior, clearSession, and static analysis of all new symbols. All 21 pass: `node test-hermes-session.js`.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#286