Skip to content

fix(utils): refresh command path cache with ttl#40

Open
FFFergie wants to merge 1 commit into
gupsammy:masterfrom
FFFergie:fix/issue-35-command-cache-ttl
Open

fix(utils): refresh command path cache with ttl#40
FFFergie wants to merge 1 commit into
gupsammy:masterfrom
FFFergie:fix/issue-35-command-cache-ttl

Conversation

@FFFergie

Copy link
Copy Markdown

Summary

  • Replace permanent command path caches with a TTL-based cache for tracked commands (brew, docker, terminal-notifier).
  • Re-resolve cached entries when TTL expires or when an absolute cached path no longer exists.
  • Update notifier command execution sites to use borrowed command paths from the updated resolver.

Why

Issue #35 reports that command paths are cached forever, so Homebrew reinstall/path changes can leave stale paths and break integrations at runtime.

Validation

  • cargo check ❌ blocked by pre-existing unstable let-chain syntax errors on upstream master (src/app.rs, src/process/ports.rs, src/integrations/brew.rs, src/integrations/docker.rs).
  • cargo test ❌ blocked by the same pre-existing baseline errors.

Closes #35

Address gupsammy#35 by replacing permanent OnceLock command caches with a TTL-based cache that re-resolves paths when stale or invalid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command path cache never expires - Homebrew reinstall breaks app

1 participant