Fix hidden providers still loading in agent-usage#25758
Fix hidden providers still loading in agent-usage#25758Yukaii wants to merge 3 commits intoraycast:mainfrom
Conversation
|
Thank you for your contribution! 🎉 🔔 @natsustan you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="bugfix/agent-usage-amp-not-found"
FORK_URL="https://github.com/Yukaii/raycast-extensions.git"
EXTENSION_NAME="agent-usage"
REPO_NAME="raycast-extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days. |
Greptile SummaryFixed provider hooks to respect visibility preferences, preventing disabled agents from fetching data, spawning processes, or showing configuration errors. The implementation correctly wires each provider hook to its corresponding preference flag and short-circuits when disabled. Loading state and refresh logic now only consider enabled providers. Gemini re-auth toast is now gated behind the Key Changes:
Issue Found:
Confidence Score: 4/5
Important Files Changed
Last reviewed commit: 860d8e0 |
| @@ -1,5 +1,11 @@ | |||
| # Agent Usage Changelog | |||
|
|
|||
| ## [Bug Fixes] - 2026-02-23 | |||
There was a problem hiding this comment.
Use {PR_MERGE_DATE} placeholder instead of hardcoded date
| ## [Bug Fixes] - 2026-02-23 | |
| ## [Bug Fixes] - {PR_MERGE_DATE} |
Context Used: Rule from dashboard - What: Changelog entries must use {PR_MERGE_DATE} placeholder in titles, be placed at the top of th... (source)
|
Hi @Yukaii, thank you so much for the contribution! I really appreciate you taking the time to fix this issue. 🙏 Your approach was solid — sorry for the overlap! Hope to see more contributions from you just like supporting Cluade Code because I cannot Pay to Anthropics 😘. |
|
Awesome, as long as the bug is addressed, I'm happy with that 🤣 |
Description
This fixes
agent-usageproviders still running in the background even when they are disabled in preferences.What was broken
show*preferences only controlled list visibility.What was fixed
agent-usage.tsx:useAmpUsage(showAmp)useCodexUsage(showCodex)useDroidUsage(showDroid)useGeminiUsage(showGemini)useKimiUsage(showKimi)useAntigravityUsage(showAntigravity)useZaiUsage(showZai)enabledand short-circuit when disabled:revalidate()a no-op when disablednot_configurederrors while disabledScreencast
N/A (bugfix only, no UI flow changes beyond loading/error behavior)
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool