Repository navigation
v0.3.8: per-tab save and guard scoping
EN
Fixed
- Settings tab: a save could be refused because of a different server line's stored numbers, or even by the edited line's own stale stored copy. The save gate now judges the values the save would actually write (the values in front of you), for the active line only. Every tab saves independently again.
- Guard refusals did not say which line, field, or number violated the rule. Refusals now name the line, the effort budget, the cap, and the remaining answer room, mirroring the server-side message.
- Guard-class errors (answer-room refusal, slider squeeze refusal, field validation) lingered on the page after you edited unrelated fields; they now clear as soon as any input changes or you switch lines.
Changed
- Per-tab scoping: the thinking-budget answer-room guard (
budget + 8192 <= cap) is strictly enforced on the live numbers only: the section top level and the active line. This applies to both the settings tab and the server-side section validation (the check follows thedialectfield). Parked (non-active) lines keep full structural validation and may hold a stale combination without blocking anyone else's save; they become subject to the strict check the moment they are selected as the active line. - Saving sends a sparse patch (top level + active line only, deep-merged by the host). A save from one tab can no longer rewrite another line's stored record.
Added
- Red dot on the server-line selector for any parked line whose stored numbers fail the answer-room guard; hover names the offending field and numbers.
Unchanged seams: adapter registration, compaction backend, preset roster, settings schema shape (same keys; only the validation scope and the client save path changed).
DSH compatibility
| DSH host | Plugin |
|---|---|
| 0.2.2-alpha.2 and newer | #v0.3.8 |
| 0.2.1-alpha.1 .. 0.2.1-rc.5 | #v0.3.3 |
| 0.1.7-alpha.1 .. 0.2.0-rc.1 | #v0.3.3 (untested batch) |
| up to 0.1.6-alpha.2 | #v0.2.0 |
Upgrade: re-pin and reinstall, then restart the host (the backend settings validation changed; the settings tab also needs a fresh page load):
npm pkg set 'dependencies.dsh-qwen38-local-qol=github:Yunado/dsh-qwen38-local-qol#v0.3.8'
pnpm install
中文
修复
- 设置页保存可能因为另一条线的存量数字被拒,甚至被正在编辑的线自己的旧存盘副本拒绝。保存门现在只评审这次保存真正会写入的数字(你眼前的这些),且只评活动线。每个 tab 恢复独立保存。
- 护栏拒绝原先不点名。现在拒绝文案点名到线、档位、帽值和剩余正文空间,与服务端消息同信息量。
- 护栏类报错(正文空间拒绝、滑杆挤压拒绝、字段校验)原先改完数字还挂在页上;现在任意编辑或切线即清除。
变更
- 按 tab 切分:thinking 预算正文空间护栏(
预算 + 8192 <= 帽)只对活数字严格执行:节顶层与活动线。设置页与服务端校验同规则(服务端按dialect字段定位活动线)。未活动的线保留完整结构校验,允许带着旧组合存在、不再拦别人的保存;一旦被选为活动线,立即回到严格校验。 - 保存只发稀疏补丁(顶层 + 活动线,宿主深合并)。在一个 tab 上保存不可能再改写另一条线的存盘记录。
新增
- 服务线选择行对存量数字不合护栏的线挂红点;悬停点名违规字段和数字。
接口缝不变:adapter 注册、压缩后端、preset 名册、设置 schema 形状(键不变,仅校验作用域与客户端保存路径变化)。
DSH 兼容性
| DSH 宿主 | 插件 |
|---|---|
| 0.2.2-alpha.2 起 | #v0.3.8 |
| 0.2.1-alpha.1 .. 0.2.1-rc.5 | #v0.3.3 |
| 0.1.7-alpha.1 .. 0.2.0-rc.1 | #v0.3.3(未实测批次) |
| 0.1.6-alpha.2 及更早 | #v0.2.0 |
升级:重钉重装后必须重启宿主(后端设置校验变了;设置页需重新加载):
npm pkg set 'dependencies.dsh-qwen38-local-qol=github:Yunado/dsh-qwen38-local-qol#v0.3.8'
pnpm install