Igor Lins e Silva
38253b1f5f
fix: percent-encode sqlite read-only URIs so spaced/special-char paths open
...
sqlite3.connect(f"file:{db_path}?mode=ro", uri=True) mis-parses paths
containing spaces or other URI-reserved characters — common in real home
directories (a Windows "First Last" user folder, many macOS paths), and made
worse by Windows backslashes. The database silently fails to open and the
read-only fast paths fall back (or error) on those machines.
Add config.sqlite_read_uri(), which percent-encodes the path via
urllib.request.pathname2url (lazy-imported to keep config import light), and
route every read-only sqlite reader through it:
- mcp_server._tool_status_via_sqlite
- searcher BM25 sqlite fallback
- repair (status / scan / max-seq read paths)
- backends/chroma (5 readers: counts, wing/room tally, id maps, etc.)
All previously used the same naive f-string construction. Surfaced as a
gemini-code-assist review note on #1837 .
2026-06-20 18:56:12 -03:00
..
2026-05-03 17:43:00 +05:00
2026-06-05 21:41:21 -03:00
2026-06-19 09:38:34 -03:00
2026-05-27 19:19:17 +10:00
2026-05-31 10:41:09 +10:00
2026-06-11 13:09:40 +10:00
2026-06-05 21:41:21 -03:00
2026-06-14 13:12:00 -03:00
2026-06-05 14:52:06 -04:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-04-19 10:34:11 +02:00
2026-06-01 17:19:10 -05:00
2026-06-18 23:46:11 -03:00
2026-05-23 12:05:34 -04:00
2026-06-14 15:17:01 -03:00
2026-04-25 00:39:37 -03:00
2026-05-30 12:44:47 -07:00
2026-04-24 11:13:51 +02:00
2026-06-20 18:56:12 -03:00
2026-04-18 12:52:01 -03:00
2026-06-06 00:16:33 -03:00
2026-06-06 17:56:08 +05:00
2026-04-24 01:30:40 -03:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-05-27 14:17:36 +10:00
2026-05-30 11:13:51 +10:00
2026-06-10 15:40:35 +10:00
2026-06-19 11:56:09 -03:00
2026-06-02 21:38:53 -03:00
2026-04-11 16:16:31 -07:00
2026-06-08 02:48:26 -03:00
2026-05-24 13:18:08 -03:00
2026-06-08 10:20:45 -03:00
2026-06-06 04:56:19 -03:00
2026-06-20 18:05:15 -03:00
2026-06-20 17:47:22 -03:00
2026-04-15 00:26:38 -07:00
2026-05-24 13:50:53 -07:00
2026-05-10 12:56:50 +02:00
2026-05-07 12:51:47 -03:00
2026-05-03 21:37:12 +05:00
2026-06-06 17:56:08 +05:00
2026-05-24 13:18:08 -03:00
2026-04-13 17:11:11 -07:00
2026-06-11 19:11:52 +00:00
2026-06-11 19:18:54 +00:00
2026-06-11 19:11:52 +00:00
2026-05-07 09:10:00 -03:00
2026-05-14 19:17:26 -03:00
2026-06-13 06:37:26 +00:00
2026-05-17 23:20:01 -03:00
2026-06-18 23:46:11 -03:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-06-14 12:25:53 -03:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-06-12 07:39:57 +00:00
2026-04-15 00:26:41 -07:00
2026-05-17 23:20:01 -03:00
2026-04-16 16:00:29 +05:00
2026-04-14 13:09:10 -07:00
2026-04-08 21:38:12 +03:00
2026-05-08 14:44:04 +00:00
2026-04-24 23:06:26 -03:00
2026-04-19 11:13:50 +03:00
2026-06-12 15:25:36 +00:00
2026-05-24 13:18:08 -03:00
2026-05-17 23:20:01 -03:00
2026-04-24 23:06:26 -03:00
2026-06-08 08:44:20 -03:00
2026-06-06 17:54:38 +05:00
2026-06-20 18:05:15 -03:00
2026-05-17 23:20:01 -03:00
2026-06-06 03:11:46 -03:00
2026-06-15 10:40:24 -03:00
2026-06-14 14:58:20 -03:00
2026-06-14 12:25:53 -03:00
2026-04-18 13:14:32 -03:00
2026-06-18 12:37:40 -03:00
2026-06-18 13:19:48 -03:00
2026-05-14 06:40:27 -03:00
2026-05-24 13:18:08 -03:00
2026-04-25 11:06:32 -07:00
2026-05-17 23:20:01 -03:00
2026-06-05 21:41:21 -03:00
2026-06-12 21:55:36 +05:00
2026-06-07 16:01:57 +08:00
2026-06-05 21:41:21 -03:00
2026-04-12 22:19:58 -03:00
2026-05-23 12:05:34 -04:00
2026-06-05 14:52:06 -04:00
2026-04-11 16:16:06 -07:00
2026-05-17 23:20:01 -03:00
2026-04-14 10:55:56 -07:00
2026-06-08 02:48:26 -03:00
2026-05-09 20:25:47 -03:00
2026-04-08 21:38:12 +03:00
2026-04-08 21:08:49 +03:00
2026-04-08 21:07:03 +03:00
2026-06-12 21:55:36 +05:00
2026-05-17 23:20:01 -03:00
2026-06-19 11:56:09 -03:00
2026-04-07 08:53:25 +01:00
2026-06-19 11:56:09 -03:00