Skip to content

webfetch-nudge: scope --skip-context-mode cache invalidation to current project #37

@halindrome

Description

@halindrome

Per QA round 2 (PR #36, finding R2-1): setup.sh currently runs rm -f /tmp/ctx-webfetch-avail-* when --skip-context-mode is passed, which wipes the cache for every project on the host, not just the one being configured.

Other projects re-detect on their next WebFetch call (so state is still correct), but a multi-project workstation sees spurious re-detections after any --skip-context-mode run anywhere.

Fix: compute the current project's hash (md5 of $(pwd -P) / git toplevel, matching the algorithm in hooks/global/webfetch-nudge.sh:28-35) and remove only /tmp/ctx-webfetch-avail-<thishash>.

Context: #36 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions