This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Repository navigation
Commit fedfc3f
Dashboard: fix jsonc UTF-8/string corruption (cortexkit#5) and guard memory_embeddings reads (cortexkit#3)
cortexkit#5 (jsonc.rs): two corruption bugs in strip_jsonc.
- Byte iteration with `byte as char` mojibakes multi-byte UTF-8 (non-ASCII
paths, emoji, CJK) by splitting code points into Latin-1 bytes. Iterate `char`s.
- The trailing-comma removal ran as a SECOND pass over the comment-stripped
output with no string-state awareness, so a `,}` / `,]` sequence inside a
string value got stripped. Folded it into the single string-aware loop so it
only fires outside strings. +tests for both (string with ',}' / ',]', and
non-ASCII path/emoji/CJK).
cortexkit#3 (db.rs): get_memories and get_memory_stats read memory_embeddings (EXISTS
subquery / COUNT) with no table_exists guard, unlike the classify-column
degradation. A pre-vN / never-initialized DB (the read-only dashboard never
creates tables) would error the whole query. Guard both: report no embeddings
when the table is absent. +regression test.
Dashboard: cargo 178 tests pass, frontend build clean.
Co-authored-by: Alfonso [Magic Context] <[email protected]>1 parent ffcc52a commit fedfc3f
2 files changed
Lines changed: 87 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2350 | 2350 | | |
2351 | 2351 | | |
2352 | 2352 | | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
2353 | 2363 | | |
2354 | 2364 | | |
2355 | 2365 | | |
| |||
2450 | 2460 | | |
2451 | 2461 | | |
2452 | 2462 | | |
2453 | | - | |
| 2463 | + | |
2454 | 2464 | | |
2455 | 2465 | | |
2456 | 2466 | | |
| |||
2470 | 2480 | | |
2471 | 2481 | | |
2472 | 2482 | | |
2473 | | - | |
| 2483 | + | |
2474 | 2484 | | |
2475 | 2485 | | |
2476 | 2486 | | |
| |||
2489 | 2499 | | |
2490 | 2500 | | |
2491 | 2501 | | |
2492 | | - | |
| 2502 | + | |
2493 | 2503 | | |
2494 | 2504 | | |
2495 | 2505 | | |
| |||
2525 | 2535 | | |
2526 | 2536 | | |
2527 | 2537 | | |
2528 | | - | |
| 2538 | + | |
2529 | 2539 | | |
2530 | 2540 | | |
2531 | 2541 | | |
| |||
2573 | 2583 | | |
2574 | 2584 | | |
2575 | 2585 | | |
2576 | | - | |
| 2586 | + | |
2577 | 2587 | | |
2578 | 2588 | | |
2579 | 2589 | | |
| |||
2805 | 2815 | | |
2806 | 2816 | | |
2807 | 2817 | | |
2808 | | - | |
2809 | | - | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
2810 | 2824 | | |
2811 | 2825 | | |
2812 | 2826 | | |
| |||
6702 | 6716 | | |
6703 | 6717 | | |
6704 | 6718 | | |
| 6719 | + | |
| 6720 | + | |
| 6721 | + | |
| 6722 | + | |
| 6723 | + | |
| 6724 | + | |
| 6725 | + | |
| 6726 | + | |
| 6727 | + | |
| 6728 | + | |
| 6729 | + | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
| 6734 | + | |
| 6735 | + | |
| 6736 | + | |
| 6737 | + | |
| 6738 | + | |
| 6739 | + | |
6705 | 6740 | | |
6706 | 6741 | | |
6707 | 6742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | | - | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | | - | |
20 | | - | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | | - | |
40 | | - | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
45 | | - | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | | - | |
53 | | - | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
168 | 190 | | |
169 | 191 | | |
170 | 192 | | |
| |||
0 commit comments