diff --git a/routes.el b/routes.el index 3b5b12d..489da8c 100644 --- a/routes.el +++ b/routes.el @@ -459,7 +459,10 @@ fn handle_request(method: String, path: String, body: String) -> String { return handle_api_inspect_graph(method, path, body) } if str_starts_with(clean, "/api/neuron/list/") { - let node_type: String = str_slice(clean, 16, str_len(clean)) + // Offset 17 = len("/api/neuron/list/"). Was 16, which left a leading "/" on node_type + // ("/BacklogItem"), so engram_scan_nodes_by_type_json matched nothing → list/ + // returned [] for EVERY type (broke backlog/typed-node listing app- and tool-wide). + let node_type: String = str_slice(clean, 17, str_len(clean)) return handle_api_list_typed(node_type, path, body) } if str_starts_with(clean, "/api/neuron/recall") {