will.anderson b1fdd14ed5
Neuron Soul CI / build (pull_request) Failing after 8m11s
fix(sessions): invalidate session_index cache in session_delete
session_delete cleared the per-session state (session_hist_ and
session_node_) but not the shared session_index cache. The next call
to session_list() hit the fast path (state_get("session_index")) and
returned the deleted session until the daemon restarted.

session_update_patch already called state_set("session_index","") to
force a re-fetch from Engram; session_delete now does the same.

Add tests/test_sessions.el covering:
- session_title_from_message (pure function, all edge cases)
- session_make_content (JSON structure and required session:meta marker)
- DELETE cache invalidation: session_index cleared, fast path disabled
- PATCH cache invalidation: stale title/folder not returned via fast path
- GET /api/sessions: session_list() fast path returns session_index
  (confirms removal of the stale route_sessions() engram stub)
2026-06-17 12:59:47 -05:00
S
Description
Neuron - the canonical CGI substrate. Real soul.el lives here.
MIT
1.3 GiB
Languages
TypeScript 74.9%
MDX 21.7%
CSS 3%
HTML 0.1%
JavaScript 0.1%