You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`tests/test_storage_vector.py:114-115` (rc3 / PR #41) asserts both `"vector delete failed"` and `"vector refresh failed"` log messages when a fake vector store raises on both `delete()` and `add_documents()`. The first assertion is internal to `_refresh_vector()`; the second relies on the exception propagating up to `SessionStore.save()`'s outer `try/except`, which logs via the same helper with `operation="refresh"`.
Code-reviewer flagged: a future refactor that moves the `add_documents` catch inside `_refresh_vector` (which is the natural place for it) would silently break the second assertion's intent without changing production behavior.
Summary
`tests/test_storage_vector.py:114-115` (rc3 / PR #41) asserts both `"vector delete failed"` and `"vector refresh failed"` log messages when a fake vector store raises on both `delete()` and `add_documents()`. The first assertion is internal to `_refresh_vector()`; the second relies on the exception propagating up to `SessionStore.save()`'s outer `try/except`, which logs via the same helper with `operation="refresh"`.
Code-reviewer flagged: a future refactor that moves the `add_documents` catch inside `_refresh_vector` (which is the natural place for it) would silently break the second assertion's intent without changing production behavior.
Suggested fix
Either:
(1) is the minimal-touch path.
References