@eddyskywalker/dsh-chatgpt-subscription 0.48.2 → 0.48.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.48.3 - 2026-10-30
|
|
6
|
+
|
|
7
|
+
- **[WorkBuddy] 修复调整本地额度护栏时设置页白屏**
|
|
8
|
+
- 护栏输入框此前在延迟执行的状态更新中读取已被 React 清空的 `event.currentTarget`,连续输入会触发空引用并卸载整个设置组件;现改为在事件回调中同步捕获草稿值,保留积分、账号日 token 与模型日 token 均可安全连续输入。
|
|
9
|
+
- 新增“保留积分”连续输入回归测试,已验证旧代码会复现白屏,修复后输入值与设置页均保持正常。
|
|
10
|
+
|
|
5
11
|
## 0.48.2 - 2026-10-30
|
|
6
12
|
|
|
7
13
|
- **[fix / guards] 修复两个宿主级缓存守卫吞掉 Cordis 瀑布的 `next()`:每一轮都崩成 `Cannot read properties of undefined (reading 'kind')`**
|
package/lib/client.js
CHANGED
|
@@ -19863,10 +19863,13 @@ window.__ModuleLoader__.load({
|
|
|
19863
19863
|
step: 1,
|
|
19864
19864
|
disabled: busy !== null,
|
|
19865
19865
|
value: guardrailDrafts[field] ?? String(status?.guardrails?.[field] ?? 0),
|
|
19866
|
-
onChange: (event) =>
|
|
19867
|
-
|
|
19868
|
-
|
|
19869
|
-
|
|
19866
|
+
onChange: (event) => {
|
|
19867
|
+
const draft = event.currentTarget.value;
|
|
19868
|
+
setGuardrailDrafts((prev) => ({
|
|
19869
|
+
...prev,
|
|
19870
|
+
[field]: draft
|
|
19871
|
+
}));
|
|
19872
|
+
},
|
|
19870
19873
|
onBlur: () => {
|
|
19871
19874
|
const draft = guardrailDrafts[field];
|
|
19872
19875
|
if (draft === void 0) return;
|