mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
* 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> |
||
|---|---|---|
| .. | ||
| light | ||
| vector | ||
| demo_memory_search.py | ||
| mcp_servers_demo.json | ||
| test_agentscope_converter.py | ||
| test_base_context.py | ||
| test_base_file_watcher.py | ||
| test_cache_handler.py | ||
| test_cache_memory_usage.py | ||
| test_chunking_utils.py | ||
| test_embedding.py | ||
| test_embedding_cache.py | ||
| test_embedding_sync.py | ||
| test_execute_utils.py | ||
| test_file_store.py | ||
| test_fs_tool.py | ||
| test_horse.py | ||
| test_keyword_search_performance.py | ||
| test_llm.py | ||
| test_llm_sync.py | ||
| test_logo.py | ||
| test_mcp_client.py | ||
| test_mcp_server.py | ||
| test_memory_vector_conversion.py | ||
| test_message.py | ||
| test_reme.py | ||
| test_reme_light_watch_paths.py | ||
| test_reme_memory_error_handling.py | ||
| test_timer.py | ||
| test_token_counter.py | ||
| test_tool.py | ||
| test_tool_call.py | ||
| test_ts_merge.py | ||
| test_vector_store.py | ||
| test_zvec_vector_store.py | ||