mist
af98692e0c
Fix AttributeError on bullet lines in extract_memory_from_chat ( #873 )
...
The fallback memory extractor (used by routes/memory_routes.py when the LLM
extractor fails) matched list items with `r'^[-*•]|\d+\.\s*(.*)'`. Operator
precedence makes that `(^[-*•]) | (\d+\.\s*(.*))`, so the capture group only
exists on the numbered-list branch.
A bullet line ("- foo") matches the first branch, so `group(1)` is None and
`text_match.group(1).strip()` raises AttributeError — crashing extraction for
any assistant message that contains a bullet list (i.e. most of them). Numbered
lists happened to work.
Group both markers — `r'^(?:[-*•]|\d+\.)\s*(.*)'` — so the capture applies to
bullets and numbers alike.
Adds tests/test_memory_bullet_extraction.py (red before, green after).
2026-06-02 11:46:06 +09:00
..
2026-06-02 11:41:33 +09:00
2026-06-01 14:32:41 +09:00
2026-06-02 11:39:40 +09:00
2026-06-01 16:54:11 +09:00
2026-06-01 16:57:28 +09:00
2026-06-01 14:26:10 +09:00
2026-06-01 15:09:47 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:39:01 +09:00
2026-06-02 11:12:13 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:21:27 +09:00
2026-06-01 15:09:47 +09:00
2026-06-01 02:17:43 +00:00
2026-06-01 16:47:48 +09:00
2026-06-01 13:09:21 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 22:22:41 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 15:09:47 +09:00
2026-06-01 10:50:07 +09:00
2026-06-01 23:10:58 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 14:55:33 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:28:52 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 15:09:47 +09:00
2026-06-02 11:11:17 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 22:30:07 +09:00
2026-06-02 11:39:40 +09:00
2026-06-02 11:28:52 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:46:06 +09:00
2026-06-02 05:54:06 +09:00
2026-06-01 10:00:15 +09:00
2026-06-01 22:38:14 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 18:27:17 +09:00
2026-06-02 11:28:52 +09:00
2026-06-01 15:09:47 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 14:32:13 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:30:53 +09:00
2026-06-01 22:26:37 +09:00
2026-06-01 15:09:47 +09:00
2026-05-31 23:58:26 +09:00
2026-06-01 23:11:50 +09:00
2026-06-02 11:34:32 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:43:30 +09:00
2026-06-01 14:31:39 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:45:21 +09:00
2026-06-02 11:33:32 +09:00
2026-06-01 16:57:28 +09:00
2026-06-01 16:57:28 +09:00
2026-06-02 11:33:32 +09:00
2026-05-31 23:58:26 +09:00
2026-06-02 11:42:04 +09:00
2026-06-02 11:28:52 +09:00
2026-06-01 22:26:13 +09:00
2026-05-31 23:58:26 +09:00
2026-05-31 23:58:26 +09:00