dsh-client-auto-continue 0.14.2 → 0.14.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/README.md CHANGED
@@ -98,6 +98,7 @@ DSH plugins install into a **profile** (`dsh web` → `web` profile). The comman
98
98
 
99
99
  | DSH runtime | Plugin version | Configuration entry point |
100
100
  | --- | --- | --- |
101
+ | **0.2.1-rc.2** | **0.14.3 verified** | **Plugins → dsh-client-auto-continue** |
101
102
  | **0.2.1-alpha.1** | **0.14.2 verified** | **Plugins → dsh-client-auto-continue** |
102
103
  | **0.2.0-rc.1** | **0.12.1 or newer** | **Plugins → dsh-client-auto-continue** |
103
104
  | **0.1.7-rc.2** | **0.11.9 or newer** | Same Plugins page |
@@ -324,6 +325,8 @@ When migrating from the legacy settings file to DSH 0.1.7 / 0.2, move these valu
324
325
  | Max backoff (ms) | `300000` | Cap on the adaptive backoff interval |
325
326
  | Browser notifications | `off` | Notify about auto-continue events and successful settings saves; confirm switching notifications on or off |
326
327
 
328
+ Pausing auto-continue stops automatic follow-ups, but leaves the loop guard active. Disable **Loop guard** too if you want to stop automatic interruptions. Invisible-only text does not count as repeated visible output, and fresh tool calls reset the repeated-message streak; repeated tool calls with identical arguments and results are still checked independently.
329
+
327
330
  For a provider-specific error that is safe to resume (confirm first that manually sending "continue" recovers), add a narrow, stable fragment rather than disabling classification globally:
328
331
 
329
332
  ```yaml
@@ -395,3 +398,5 @@ CI typechecks, rebuilds, runs both test suites, verifies committed `lib/` artifa
395
398
  [![MIT](https://img.shields.io/badge/license-MIT-65a30d)](LICENSE)
396
399
 
397
400
  MIT © Hsiang Nianian
401
+
402
+ The rc.2 check also loads the published client settings service and verifies card save/reset, the composer toggle, locale synchronization and a fresh Host read, using snapshots without the removed `mode` field.
package/README.zh.md CHANGED
@@ -98,6 +98,7 @@ DSH 插件安装进 **profile**(`dsh web` 对应 `web` profile)。下面的命
98
98
 
99
99
  | DSH 内核 | 插件版本 | 配置入口 |
100
100
  | --- | --- | --- |
101
+ | **0.2.1-rc.2** | **已验证 0.14.3** | **插件 → dsh-client-auto-continue** |
101
102
  | **0.2.1-alpha.1** | **已验证 0.14.2** | **插件 → dsh-client-auto-continue** |
102
103
  | **0.2.0-rc.1** | **0.12.1 或更新版本** | **插件 → dsh-client-auto-continue** |
103
104
  | **0.1.7-rc.2** | **0.11.9 或更新版本** | 同上,从主侧栏的插件页进入 |
@@ -324,6 +325,8 @@ auto-continue:
324
325
  | 最大退避间隔 (ms) | `300000` | 自适应退避的上限 |
325
326
  | 浏览器通知 | 关 | 自动继续事件和配置保存成功时通知;切换通知开关并保存后确认状态 |
326
327
 
328
+ 暂停自动继续会停止自动续跑,但循环守卫仍独立运行。如需停止自动打断,请同时关闭**循环守卫**。仅含不可见字符的正文不计入可见消息复读;新的工具调用会重置正文重复计数,而同工具、同参数、同结果的工具死循环仍独立检测。
329
+
327
330
  遇到确认可以安全续跑的 provider 专属错误时(先确认手动发送「继续」确实能恢复), 应添加足够具体、稳定的片段, 而不是全局关闭错误分类:
328
331
 
329
332
  ```yaml
@@ -395,3 +398,5 @@ CI 执行类型检查、构建、两组测试、已提交 `lib/` 产物校验及
395
398
  [![MIT](https://img.shields.io/badge/license-MIT-65a30d)](LICENSE)
396
399
 
397
400
  MIT © Hsiang Nianian
401
+
402
+ rc.2 测试还加载已发布的客户端设置服务,使用不再包含 `mode` 的真实快照,验证卡片保存/重置、会话开关、语言同步与重新读取宿主配置。
package/lib/client.js CHANGED
@@ -125,7 +125,7 @@ var zh = {
125
125
  "composer.scope": "控制当前配置下所有会话的自动继续,修改立即保存。",
126
126
  "composer.saving": "正在保存自动继续设置…",
127
127
  "composer.saveFailed": "保存失败,请重试",
128
- "field.pausedHint": "恢复意外中断的会话。关闭并保存后,全局暂停恢复并取消已排队的继续。",
128
+ "field.pausedHint": "恢复意外中断的会话。关闭并保存后,全局暂停恢复并取消已排队的继续。循环守卫独立运行;如需停止自动打断,请同时关闭循环守卫。",
129
129
  "field.continueText": "继续文本",
130
130
  "field.continueTextHint": "中断后自动发送的消息内容。",
131
131
  "default.continueText": LOCALIZED_TEXT_DEFAULTS.zh.continueText,
@@ -257,7 +257,7 @@ var en = {
257
257
  "composer.scope": "Controls auto-continue for all sessions in this profile. Changes save immediately.",
258
258
  "composer.saving": "Saving auto-continue setting…",
259
259
  "composer.saveFailed": "Could not save. Try again.",
260
- "field.pausedHint": "Resume interrupted sessions. Turn off and save to pause recovery globally and cancel queued continuations.",
260
+ "field.pausedHint": "Resume interrupted sessions. Turn off and save to pause recovery globally and cancel queued continuations. The loop guard stays active; turn it off separately to stop automatic interruptions.",
261
261
  "field.continueText": "Continue text",
262
262
  "field.continueTextHint": "Message automatically sent after an interruption.",
263
263
  "default.continueText": LOCALIZED_TEXT_DEFAULTS.en.continueText,
@@ -526,6 +526,9 @@ function startBridge() {
526
526
  }
527
527
 
528
528
  // src/client/settings-form.ts
529
+ function canWriteSettings(snapshot) {
530
+ return snapshot.status === "ready" && snapshot.writable && (snapshot.mode === void 0 || snapshot.mode === "host");
531
+ }
529
532
  function numberField(field, min = 0) {
530
533
  return {
531
534
  field,
@@ -592,7 +595,7 @@ var CardForm = class {
592
595
  const snapshot = this.scope.getSnapshot();
593
596
  return {
594
597
  available: snapshot.status === "ready",
595
- writable: snapshot.writable,
598
+ writable: canWriteSettings(snapshot),
596
599
  dirty: this.plan().length > 0,
597
600
  invalid: this.plan().some((item) => item.run === void 0),
598
601
  saving: this.saving,
@@ -641,7 +644,7 @@ var CardForm = class {
641
644
  const plan = this.plan();
642
645
  const writes = plan.flatMap((item) => item.run === void 0 ? [] : [item.run]);
643
646
  const snapshot = this.scope.getSnapshot();
644
- if (plan.length === 0 || this.saving || writes.length !== plan.length || snapshot.status !== "ready" || !snapshot.writable || snapshot.mode !== "host") return false;
647
+ if (plan.length === 0 || this.saving || writes.length !== plan.length || !canWriteSettings(snapshot)) return false;
645
648
  const edits = plan.map(({ field, staged }) => ({ field, staged }));
646
649
  this.saving = true;
647
650
  this.failed = false;
@@ -998,7 +1001,7 @@ var AutoContinueSettingsCardController = class {
998
1001
  async save() {
999
1002
  const state2 = this.form.shell();
1000
1003
  const snapshot = this.scope.getSnapshot();
1001
- if (this.disposed || !state2.available || !state2.writable || !state2.dirty || state2.invalid || state2.saving || snapshot.mode !== "host") return;
1004
+ if (this.disposed || !state2.available || !state2.writable || !state2.dirty || state2.invalid || state2.saving) return;
1002
1005
  const sequence = ++this.saveSequence;
1003
1006
  const before = snapshot.value?.notify ?? DEFAULT_CONFIG.notify;
1004
1007
  const target = this.form.field("notify").text;
@@ -1020,7 +1023,7 @@ var AutoContinueSettingsCardController = class {
1020
1023
  return {
1021
1024
  visible: snapshot.status === "ready" && (snapshot.value?.showComposerToggle ?? DEFAULT_CONFIG.showComposerToggle),
1022
1025
  enabled: !(snapshot.value?.paused ?? DEFAULT_CONFIG.paused),
1023
- writable: snapshot.status === "ready" && snapshot.writable && snapshot.mode === "host",
1026
+ writable: canWriteSettings(snapshot),
1024
1027
  saving: this.composerSaving,
1025
1028
  failed: this.composerFailed
1026
1029
  };
@@ -1344,7 +1347,7 @@ function mountSettings(ctx, scope) {
1344
1347
  const syncLocale = () => {
1345
1348
  const active = ctx.locale.getLocale().active;
1346
1349
  const snapshot = scope.getSnapshot();
1347
- if (snapshot.status !== "ready" || !snapshot.writable || snapshot.mode !== "host") return;
1350
+ if (!canWriteSettings(snapshot)) return;
1348
1351
  if (mirroredLocale !== active) {
1349
1352
  mirroredLocale = active;
1350
1353
  mirrorAttempts = 0;