The latest release of Claude-mem, version 12.4.8, brings significant improvements and bug fixes that enhance the functionality of the timeline tool and anchor parsing. This update addresses critical issues related to observation-ID dispatch paths and introduces a comprehensive regression suite to ensure reliability.
In this release, the primary focus was on fixing bugs related to the timeline tool's handling of stringified numeric anchors. Specifically, the update coerces these anchors into the correct observation-ID dispatch path, preventing them from incorrectly falling back to ISO-timestamp parsing. This change ensures that HTTP layer interactions, which always send anchors as strings, now function correctly across various platforms, including MCP and HTTP.
Additionally, a new regression test suite has been implemented. This suite includes seven test cases that cover various scenarios, such as JS-number anchors, stringified-number anchors (including those with whitespace), session-ID anchors, ISO-timestamp anchors, and garbage anchors. These tests run against a real in-memory SQLite `SessionStore`, effectively exercising the entire dispatch path to ensure robustness.
Moreover, the release includes refactoring efforts, notably the extraction of the `parseNumericAnchor` helper within the `SearchManager`. This centralization of anchor coercion aims to streamline the handling of timeline anchors across different handlers, promoting cleaner code and better maintainability.
The improvements in version 12.4.8 are crucial for developers and users relying on the timeline tool for accurate data representation. By addressing the bug related to stringified numeric anchors, the update enhances the reliability of data retrieval and processing within the application. The addition of a robust regression suite further ensures that future updates will maintain high standards of functionality and performance.
Overall, these changes not only improve the immediate functionality of the timeline tool but also lay the groundwork for future enhancements, making Claude-mem a more reliable and efficient tool for users.
Official Source: https://github.com/thedotmack/claude-mem/releases/tag/v12.4.8