CachedStore not invalidated after sync pull #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After
do_syncperforms avcs.pull(), the git HEAD advances but theCachedStoreSQLite cache is never rebuilt. New tasks pulled from the remote are on disk as TOML files but are invisible to the MCP server until it restarts.The
CachedStoreonly rebuilds inopen()when the stored HEAD hash differs from the current one. The MCP server opens the store once at startup, so subsequent syncs never trigger a rebuild.Fix: add an
invalidate_cache(head_hash)method to theStoretrait (default no-op) and implement it inCachedStoreto conditionally rebuild. Call it indo_syncafter a successful pull.