dsh-model-select-plus 0.1.0 → 0.1.1
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.
- package/lib/client.cjs +3 -0
- package/package.json +1 -1
- package/src/client.js +4 -0
package/lib/client.cjs
CHANGED
|
@@ -147,6 +147,9 @@ var module = { exports: {} };
|
|
|
147
147
|
setData({ status: "error", groups: [], failures: [], current: null, error: String(err && err.message || err) });
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
|
+
import_react.default.useEffect(() => {
|
|
151
|
+
if (sessionId !== void 0) load();
|
|
152
|
+
}, [sessionId]);
|
|
150
153
|
const openMenu = () => {
|
|
151
154
|
setOpen(true);
|
|
152
155
|
load();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-model-select-plus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A richer model-selection popup for DeepSeek Harness: provider-grouped models with descriptions, inline reasoning-effort chips, search and pinned favorites — replaces the composer's default ModelSelect.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/host.js",
|
package/src/client.js
CHANGED
|
@@ -137,6 +137,10 @@ function ModelSelectLite(props) {
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
+
// Load on mount (and when the session changes) so the trigger shows the
|
|
141
|
+
// current model immediately instead of the "选择模型" placeholder.
|
|
142
|
+
React.useEffect(() => { if (sessionId !== undefined) load(); }, [sessionId]);
|
|
143
|
+
|
|
140
144
|
const openMenu = () => { setOpen(true); load(); };
|
|
141
145
|
const closeMenu = () => { setOpen(false); setQuery(""); };
|
|
142
146
|
|