Repository navigation
Conversation
Fixes openclaw#21094 Problem: - hasBinary() cached both positive and negative results - After installing binary via brew, cached false result was stale - Dashboard showed Install button even after successful installation Solution: - Only cache positive results (binaries found) - Don't cache negative results - they become stale after installation - Re-checking missing binaries has negligible cost The one-line fix ensures dashboard always reflects actual binary state after skill installations.
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Cache only successful binary probes so fresh skill and Gmail dependency checks recognize executables installed into existing PATH directories. Preserve hit reuse and PATH/PATHEXT invalidation; cover dependency setup, Go/uv prerequisite reuse, and skill/hook eligibility. Related: #21094. Follow-up to the positive-only proposal in #21116. Thanks to @DannyDesert for the original skill-install report. Co-authored-by: Ratul Rahman <[email protected]>
Cache only successful binary probes so fresh skill and Gmail dependency checks recognize executables installed into existing PATH directories. Preserve hit reuse and PATH/PATHEXT invalidation; cover dependency setup, Go/uv prerequisite reuse, and skill/hook eligibility. Related: #21094. Follow-up to the positive-only proposal in #21116. Thanks to @DannyDesert for the original skill-install report. Co-authored-by: Ratul Rahman <[email protected]>
|
The positive-only cache repair has now landed on The follow-up keeps this proposal's core approach, simplifies the cache to a success-only This PR remains closed and unmerged; the link above is the canonical landed repair. No release is being announced here. |
…#131617) Cache only successful binary probes so fresh skill and Gmail dependency checks recognize executables installed into existing PATH directories. Preserve hit reuse and PATH/PATHEXT invalidation; cover dependency setup, Go/uv prerequisite reuse, and skill/hook eligibility. Related: openclaw#21094. Follow-up to the positive-only proposal in openclaw#21116. Thanks to @DannyDesert for the original skill-install report. Co-authored-by: Ratul Rahman <[email protected]>
Fixes #21094
Summary
hasBinary()cached negative results (binary not found), which became stale afterbrew installsucceededhasBinaryCache.set(bin, false)— only positive results are cached nowChange Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
Before: After installing a skill's binary via dashboard, refreshing the page showed "Install" button again (stale cache).
After: Dashboard immediately reflects actual binary state after installation. No restart or cache clear needed.
Impact: Skills dashboard now correctly shows "eligible" status after brew installs.
Security Impact (required)
Repro + Verification
Environment
/opt/homebrew/, Node v22.14.0Steps
wacli,gog,gifgrep)Expected
After successful brew install, dashboard refresh should show skill as eligible/installed.
Actual
Dashboard showed "Install" button again because
hasBinary()returned stale cachedfalse.Evidence
Code change:
Human Verification (required)
Verified scenarios:
pnpm formatpassed on changed file)Edge cases checked:
What I did NOT verify:
Compatibility / Migration
No breaking changes. Existing cached positive results remain valid. Negative results simply aren't cached anymore.
Failure Recovery (if this breaks)
How to disable/revert:
Files to restore:
src/shared/config-eval.ts(line 147)Known bad symptoms:
Risks and Mitigations
Risk: Slight performance overhead from re-checking missing binaries on each
skills.statuscallfs.accessSynccalls across PATH dirs (~microseconds)Risk: None (no other risks identified)
Greptile Summary
Removed caching of negative binary lookup results in
hasBinary(). Previously, when a binary wasn't found, the function cachedfalse, which became stale after successful installation viabrew install. Now only positive results (binary found) are cached, ensuring the skills dashboard immediately reflects actual binary availability after installation.Confidence Score: 5/5
Last reviewed commit: 11642bf
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!