pi-model-sort 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/model-sort.ts +4 -0
  2. package/package.json +1 -1
package/model-sort.ts CHANGED
@@ -168,6 +168,10 @@ function patchFilterModels(getLastUsed: () => Record<string, number>): void {
168
168
  this.selectedIndex = newIndex;
169
169
  }
170
170
  }
171
+
172
+ // Re-render — the original filterModels already called updateList() before
173
+ // we re-sorted, so the UI is stale until the next input event.
174
+ (this.updateList as () => void)();
171
175
  };
172
176
  }
173
177
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-model-sort",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Sort models in pi's /model selector by last usage — most recently used models appear first",
5
5
  "type": "module",
6
6
  "author": "Tom X Nguyen",