@ogulcancelik/pi-minimal-footer 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +7 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -783,7 +783,13 @@ export default function (pi: ExtensionAPI) {
783
783
  * changed while the fetch was in flight. */
784
784
  function fetchUsage(modelProvider: string): void {
785
785
  const provider = detectProvider(modelProvider);
786
- if (!provider) return;
786
+ if (!provider) {
787
+ activeProvider = null;
788
+ latestUsage = null;
789
+ stopRefreshTimer();
790
+ tuiRef?.requestRender();
791
+ return;
792
+ }
787
793
 
788
794
  activeProvider = provider;
789
795
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogulcancelik/pi-minimal-footer",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Minimal footer for pi with context gauge and subscription usage bars",
5
5
  "type": "module",
6
6
  "keywords": [