Skip to content

search: corpus fingerprint excludes title/body, can serve stale cache #130

Description

@Ariestar

CodeRabbit finding on PR #80 (no-unwrap), src/commands/browse/picker.rs.

search_corpus_fingerprint hashes only record.work_ref.whole() per hydrated record. If searchable content changes without the ref changing (e.g. re-hydration updates a session's search_title, WorkRecord.title, or body records), the cached WorkspaceSearchIndex stays current-looking and search returns stale results.

Suggested direction: fold every indexed/searchable field (metadata, titles, body content) into the fingerprint, not just the refs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions