ReMe/tests
Joshua 0e5a9f5034
fix(reme_light): dedupe default watch paths on case-insensitive filesystems (#234)
* fix(reme_light): dedupe default watch paths on case-insensitive filesystems

On Windows NTFS and macOS HFS+, ``MEMORY.md`` and ``memory.md`` resolve to
the same physical file. ``ReMeLight.__init__`` hardcoded both spellings in
the default ``watch_paths`` list, so the memory markdown file was indexed
twice on those filesystems, wasting embedding calls and producing duplicate
search hits.

Dedupe the default candidate list using ``os.path.normcase`` as the
comparison key. On case-sensitive filesystems normcase is the identity
function, so both spellings continue to be watched there. The original
path strings are preserved, the caller-supplied ``watch_paths`` path is
untouched, and only the built-in fallback is affected.

Fixes #228

* refactor(reme_light): simplify watch path dedup via existence check

Replace the os.path.normcase-based dedup loop with a direct exists()
check that picks one of MEMORY.md / memory.md. On case-insensitive
filesystems both spellings resolve to the same file so exists() returns
true for both, naturally avoiding a duplicate watch — including on
macOS where os.path.normcase is the identity function and the previous
approach silently did nothing.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: jinli.yl <jinli.yl@alibaba-inc.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 15:18:23 +08:00
..
light refactor(truncation): improve file truncation logic (#184) 2026-03-28 18:41:09 +08:00
vector add zvec vector/file store (#218) 2026-05-08 17:12:11 +08:00
demo_memory_search.py refactor(core): replace memory stores with file stores and update architecture 2026-02-26 14:18:12 +08:00
mcp_servers_demo.json refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_agentscope_converter.py feat(core): add memory storage and context checking capabilities 2026-02-08 19:24:53 +08:00
test_base_context.py refactor(memory): rename fs components to fb and reorganize modules 2026-02-26 16:47:04 +08:00
test_base_file_watcher.py fix(file_watcher): reset stop event on restart (#233) 2026-05-14 14:37:17 +08:00
test_cache_handler.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_cache_memory_usage.py feat(memory): implement file watcher with delta and full sync strategies 2026-02-06 01:58:28 +08:00
test_chunking_utils.py refactor(benchmark): remove unused llm config and update test parameters 2026-02-26 18:20:12 +08:00
test_embedding.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_embedding_cache.py feat(memory_store): add pure-python local memory store implementation 2026-02-19 23:58:54 +08:00
test_embedding_sync.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_execute_utils.py feat(core): add async code execution and improve execution utilities 2026-02-14 21:27:04 +08:00
test_file_store.py add zvec vector/file store (#218) 2026-05-08 17:12:11 +08:00
test_fs_tool.py refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
test_horse.py refactor(core): restructure application initialization and component management 2026-02-24 19:45:47 +08:00
test_keyword_search_performance.py refactor(memory): integrate procedural memory into extension module 2026-02-27 14:55:00 +08:00
test_llm.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_llm_sync.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_logo.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_mcp_client.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_mcp_server.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_memory_vector_conversion.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_message.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_reme.py refactor(core): update registry naming and application configuration 2026-02-07 15:05:02 +08:00
test_reme_light_watch_paths.py fix(reme_light): dedupe default watch paths on case-insensitive filesystems (#234) 2026-05-18 15:18:23 +08:00
test_reme_memory_error_handling.py 提供支持向量数据库的profile功能 (#221) 2026-04-28 15:11:45 +08:00
test_timer.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_token_counter.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_tool.py refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
test_tool_call.py refactor(core): restructure project modules and update base classes 2026-01-22 22:07:32 +08:00
test_ts_merge.py feat(memory): add ReadHistoryV2 tool with enhanced history retrieval capabilities 2026-02-02 17:14:16 +08:00
test_vector_store.py feat(vector_store): add Hologres vector store implementation (#226) 2026-05-09 10:30:37 +08:00
test_zvec_vector_store.py add zvec vector/file store (#218) 2026-05-08 17:12:11 +08:00