dsh-client-auto-continue 0.13.0 → 0.14.0

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
@@ -47,11 +47,11 @@ Automatic recovery for [DeepSeek Harness](https://github.com/deepseek-ai/deepsee
47
47
  - **Idempotency guard** — before resuming, the plugin inspects the last tool call: if its result is unconfirmed (the turn died mid-tool, e.g. a `git push` that may have gone through), the resume message tells the model to check state first and not to rerun; if the tool is confirmed done, it says so and asks not to repeat it; a failed tool gets no guard (retrying it is the point). Both guard texts are configurable (`{tool}` / `{result}` placeholders)
48
48
  - **Silent turn resume** — recover an observed model step or reasoning-only response that completes without visible output. A no-op turn with no model activity is left alone. Text, tool calls, images and extension blocks count as visible, including streamed output. Unobserved turns are not guessed to be silent. Explicit `no-visible-output` markers also recover after restart. Disabling **Resume silent turns** cancels queued silent sends; silent turns never reset the retry cap, even while the option is off.
49
49
  - **Autonomous loop** — off by default (`resumeCompletedTurns`). When enabled, normally completed turns continue after the grace period, without the recovery cooldown or attempt cap. Reasoning-only turns and explicit `no-visible-output` endings still consume the recovery budget and obey backoff. Global pause, session pause, manual Stop and disabling the option stop the loop. Its prompt is separate from the loop guard’s prompt (`continueTextLoop`, default `Continue`).
50
- - **Pause** — a global **Pause auto-continue** toggle in the settings card stops automatic sends from live events and startup scanning; per-session pauses (e.g. via a notification button) suspend only one session until they expire. **Resume now** requests one send even when both pauses are active. It leaves the pauses in place, so later automatic recovery and autonomous-loop sends remain paused
50
+ - **Pause** — turning off **Auto-continue** in **General** and saving stops automatic sends from live events and startup scanning; per-session pauses (e.g. via a notification button) suspend only one session until they expire. **Resume now** requests one send even when both pauses are active. It leaves the pauses in place, so later automatic recovery and autonomous-loop sends remain paused
51
51
  - **Notification buttons** — notifications carry **Resume now** (send immediately, ignoring cooldown, the consecutive cap and any pause) and **Pause this session 1h** actions
52
52
  - **Loop guard** — watches **running** turns too. Four signals trip the guard, which cancels the turn and restarts it with a configurable loop text ("stop repeating, try another way"): the model repeating the **exact same message** several times (any length — e.g. "Let me test variants of the regex…" ×7), repeated near-duplicate paragraphs **inside one streamed assistant message**, many short messages inside a short time window with no tool call in between (the "Let me read…" spin), or the same tool called repeatedly with the **same arguments and the same results** (a changed argument or result counts as progress). The cancel carries an internal marker so it is never confused with a user stop — the restart only happens for guard-initiated cancels. Thresholds, the time window and the loop text are configurable
53
53
  - **Stats panel** — the settings card shows today's auto-continue count, recoveries, failures, permanent skips, give-ups and loop breaks, broken down by error code, with a one-click reset
54
- - **Browser notifications** — optional alerts when auto-continue fires, gives up, or hits a permanent error; the browser asks for permission on first use, and nothing is shown again after a denial
54
+ - **Browser notifications** — optional alerts for auto-continue events and successful settings saves. Saving a change to the notification switch confirms its new state, including one final confirmation when turning it off. The browser may ask for permission when you enable it; a denial is explained in the settings page and does not prevent saving.
55
55
 
56
56
  It watches the live event streams and reacts to:
57
57
 
@@ -91,8 +91,8 @@ DSH plugins install into a **profile** (`dsh web` → `web` profile). The comman
91
91
 
92
92
  | DSH runtime | Plugin version | Configuration entry point |
93
93
  | --- | --- | --- |
94
- | **0.2.1-alpha.1** | **0.13.0 verified** | **Plugins → dsh-client-auto-continue → Auto continue** |
95
- | **0.2.0-rc.1** | **0.12.1 or newer** | **Plugins → dsh-client-auto-continue → Auto continue** |
94
+ | **0.2.1-alpha.1** | **0.14.0 verified** | **Plugins → dsh-client-auto-continue** |
95
+ | **0.2.0-rc.1** | **0.12.1 or newer** | **Plugins → dsh-client-auto-continue** |
96
96
  | **0.1.7-rc.2** | **0.11.9 or newer** | Same Plugins page |
97
97
  | Older hosts with the legacy settings API | Legacy UI retained | **Settings → Plugins → Plugin configuration** |
98
98
 
@@ -100,7 +100,7 @@ DSH 0.1.0-rc.6 and earlier are unsupported. Automated runtime checks cover **0.1
100
100
 
101
101
  **Plugins 0.11.9 and 0.12.0 are rejected by DSH 0.2.0-rc.1’s version check.** Upgrade the plugin to 0.12.1 or newer; its existing configuration-form integration works on this runtime. See [#50](https://github.com/HsiangNianian/dsh-auto-continue/issues/50).
102
102
 
103
- On current DSH, **Settings → Built-in plugins** is a component inventory, not the configuration editor. Use the main **Plugins** page. The screenshots below use **DSH 0.2.1-alpha.1 + plugin 0.13.0**. If you previously installed with a symlink or hand-written loader entry, see [Migrating an older installation](#migrating-an-older-installation).
103
+ On current DSH, **Settings → Built-in plugins** is a component inventory, not the configuration editor. Use the main **Plugins** page. The screenshots below show plugin **0.14.0** on **DSH 0.2.1-alpha.1**. If you previously installed with a symlink or hand-written loader entry, see [Migrating an older installation](#migrating-an-older-installation).
104
104
 
105
105
  ### From npm (recommended)
106
106
 
@@ -159,7 +159,7 @@ A manual loader entry can start the engine without registering a bundle in the *
159
159
  ```
160
160
 
161
161
  Merge into an existing override instead of adding another one. Keep unrelated settings intact. DSH 0.1.7 / 0.2 reads this entry config; editing the old `settings.yaml` section will not update the new form.
162
- 5. Start `dsh web` again and reload the browser. Open **Plugins → dsh-client-auto-continue**, expand **Auto continue**, and check that your values are present. Save a change and reload to confirm it persists.
162
+ 5. Start `dsh web` again and reload the browser. Open **Plugins → dsh-client-auto-continue**, select the appropriate settings category, and check that your values are present. Save a change and reload to confirm it persists.
163
163
 
164
164
  The `include:auto-continue` label in **Built-in plugins** is a normal loader prefix. It does not, by itself, indicate a legacy install or a duplicate engine.
165
165
 
@@ -169,7 +169,7 @@ The `include:auto-continue` label in **Built-in plugins** is a normal loader pre
169
169
  dsh --profile web --dump-config | grep -A 4 'id: auto-continue'
170
170
  ```
171
171
 
172
- The composed config should contain one `id: auto-continue` entry. In **Plugins → dsh-client-auto-continue**, check that the component is **Running** and that expanding **Auto continue** shows editable fields. With verbose logging enabled, engine activity appears in the terminal running DSH.
172
+ The composed config should contain one `id: auto-continue` entry. In **Plugins → dsh-client-auto-continue**, check that the component is **Running** and that the **General** category shows editable fields. With verbose logging enabled, engine activity appears in the terminal running DSH.
173
173
 
174
174
  ```bash
175
175
  dsh plugin --profile web remove dsh-client-auto-continue # npm / repo install
@@ -182,7 +182,7 @@ dsh web
182
182
  ## Troubleshooting
183
183
 
184
184
  - **“Skipping profile bundle” / “incompatible with dsh 0.2.0-rc.1”:** update to plugin 0.12.1 or newer in the profile the app actually uses, then restart it. A version exemption is not needed for this fix.
185
- - **Enabled, but no configuration fields:** open the main **Plugins** page, select the package and expand **Auto continue**. The Built-in plugins status page has no editable fields.
185
+ - **Enabled, but no configuration fields:** open the main **Plugins** page, select the package and open **General**. The Built-in plugins status page has no editable fields.
186
186
  - **`/api/auto-continue-bridge` returns 404:** check the DSH startup log and composed config to confirm the host component loaded. Refreshing the settings card cannot start a missing host component.
187
187
 
188
188
  ---
@@ -195,17 +195,19 @@ Starting with **0.13.0**, an **Auto-continue** switch appears beside the message
195
195
 
196
196
  **On** allows automatic recovery; **Off** sets the existing global `paused` option. The change saves immediately and applies to **all sessions in the current profile**, with other open tabs updating too. This is separate from the notification action that pauses one session for an hour. Enabling it does not clear a session's individual pause.
197
197
 
198
- To hide the switch, open **Plugins → dsh-client-auto-continue → Auto continue**, turn off **Show auto-continue switch in the composer**, then click **Save**. This only changes visibility; recovery keeps its current state. The corresponding config key is `showComposerToggle`, default `true`. Older hosts without the composer slot retain the settings card.
198
+ To hide the switch, open **Plugins → dsh-client-auto-continue → General**, turn off **Show auto-continue switch in the composer**, then click **Save**. This only changes visibility; recovery keeps its current state. The corresponding config key is `showComposerToggle`, default `true`. Older hosts without the composer slot retain the settings card.
199
199
 
200
200
  ## Configuration
201
201
 
202
- On **DSH 0.1.7 / 0.2**, open **Plugins** from the main sidebar, choose **dsh-client-auto-continue**, then expand the **Auto continue** card. This is separate from **Settings → Built-in plugins**, which only lists component status. Older DSH versions use **Settings → Plugins → Plugin configuration**.
202
+ On **DSH 0.1.7 / 0.2**, open **Plugins** from the main sidebar, choose **dsh-client-auto-continue**, then select a settings category. This is separate from **Settings → Built-in plugins**, which only lists component status. Older DSH versions use **Settings → Plugins → Plugin configuration**.
203
203
 
204
- ![DSH 0.2 Plugins page with the Auto continue card collapsed](docs/screenshots/01-settings-section.png)
204
+ ![Auto-continue category settings on DSH 0.2](docs/screenshots/01-settings-section.png)
205
205
 
206
- Click the card header or its right-hand chevron to show the fields. The expanded card also contains a live **stats panel** (today's activity with a reset button) and **paused sessions** (each with a resume button).
206
+ Use **General**, **Retry strategy**, **Startup recovery**, **Continue text**, **Safety**, and **Status and logs** to find controls. Switching categories preserves unsaved changes. **Status and logs** contains today's activity and paused sessions.
207
207
 
208
- The settings card groups controls by handoff, safety, recovery, loop breaking, and live status. Its header also keeps the open-source repository and a **Star on GitHub** shortcut within reach.
208
+ The header places the plugin status and GitHub invitation side by side on one shared charcoal background. The status shows the saved global setting; edits take effect when you click **Save**.
209
+
210
+ With **Browser notifications** enabled, each successful save sends one confirmation from the tab where you saved. Turning notifications off sends a final confirmation if browser permission is already granted; later saves stay quiet. Discarded changes, invalid values, and failed saves do not send success notifications. If the browser blocks notifications, the settings page still confirms the save and explains the permission issue.
209
211
 
210
212
  DSH 0.1.7 / 0.2 stores these values in the `auto-continue` entry's config in the active profile patch (`~/.dsh/profiles/web/cordis.patch.yml` for the default web profile). **Save** applies changes live without restarting the engine. Omitted fields use the defaults below.
211
213
 
@@ -265,14 +267,14 @@ When migrating from the legacy settings file to DSH 0.1.7 / 0.2, move these valu
265
267
 
266
268
  **How the card works:**
267
269
 
268
- ![Expanded Auto continue configuration on DSH 0.2](docs/screenshots/02-settings-card.png)
270
+ ![Retry strategy settings on DSH 0.2](docs/screenshots/02-settings-card.png)
269
271
 
270
- - Edits are **staged** — nothing reaches the disk until you hit **Save**; an unsaved badge marks the card while drafts are pending, and **Discard** drops them
272
+ - Edits are **staged** — nothing reaches the disk until you hit **Save**; the footer indicates pending changes, and **Discard** drops them
271
273
  - If you edit or reset a field while a save is in progress, the newer draft stays in the card. Click **Save** again after the current save finishes to apply it
272
- - A field you changed shows an **Overridden** badge with a per-field **Reset to default** button that removes the override and restores the inherited value (normally the built-in default)
273
- - **Show auto-continue switch in the composer** uses a native switch and is staged until Save. Other boolean fields are **tri-state**: *Inherit* (use the default) / *On* / *Off*
274
- - Invalid drafts (non-numbers, values below the minimum) block the save with a hint
275
- - In a read-only deployment the card shows the stored values but disables every control
274
+ - An overridden field shows a **Reset to default** button that removes the override and restores the inherited value (normally the built-in default)
275
+ - Boolean fields use native switches and are staged until Save. **Reset to default** removes the override and restores the inherited value. **Auto-continue** is on when recovery is enabled (`paused: false`)
276
+ - Invalid drafts (non-numbers, values below the minimum) block the save and mark their category, even when another category is selected
277
+ - In a read-only deployment the card shows the stored values but disables editing while keeping category navigation available
276
278
  - Changes apply immediately after Save and persist in the active profile config (or `~/.dsh/settings.yaml` on older hosts)
277
279
 
278
280
  <details>
@@ -313,7 +315,7 @@ When migrating from the legacy settings file to DSH 0.1.7 / 0.2, move these valu
313
315
  | Custom retryable errors | empty | One case-insensitive literal per line; matching the error code, HTTP status, or message explicitly overrides the built-in classifier |
314
316
  | Backoff factor | `2` | Cooldown multiplier per consecutive failure (2 = 20s → 40s → 80s…) |
315
317
  | Max backoff (ms) | `300000` | Cap on the adaptive backoff interval |
316
- | Browser notifications | `off` | Notify when auto-continue fires, gives up, or hits a permanent error |
318
+ | Browser notifications | `off` | Notify about auto-continue events and successful settings saves; confirm switching notifications on or off |
317
319
 
318
320
  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:
319
321
 
@@ -338,7 +340,7 @@ The recovery engine runs inside the DSH host. The browser provides the configura
338
340
  - Recovery sends your configured text through `agent.followup`. The loop guard can cancel a looping turn through `agent.cancel` before sending its recovery prompt. Resumed agents continue with the session's existing tools and permissions
339
341
  - Saving configuration uses DSH's settings API: the active profile patch on DSH 0.1.7 / 0.2, or `~/.dsh/settings.yaml` on older hosts
340
342
  - Retry counters, cooldown timestamps, per-session pauses and stats stay in host process memory and reset when the engine restarts. The global `paused` setting is saved with your other configuration
341
- - Browser notifications are opt-in (`notify` setting) and permission is requested on first use only
343
+ - Browser notifications are opt-in (`notify` setting). Enabling and saving can request browser permission; denied permission is not requested again. Turning the option off never requests permission.
342
344
 
343
345
  ---
344
346
 
package/README.zh.md CHANGED
@@ -47,11 +47,11 @@
47
47
  - **幂等护栏** — 续跑前检查上一步工具调用: 结果未确认(回合在工具执行中途夭折, 如 `git push` 可能已经推上去了)时, 续跑消息会提示模型先确认状态、不要重复执行; 工具已确认成功时说明已完成、请勿重复; 工具失败则不加护栏(重试本来就是目的)。两段护栏文本都可配置(支持 `{tool}` / `{result}` 占位符)
48
48
  - **无输出回合续跑** — 已观察到模型步骤或推理回复,但回合正常结束且没有可见输出时自动恢复。没有模型活动的空回合不会触发;文本、工具调用、图片、扩展块和已显示的流式内容均算可见输出。未观察到开始的回合不会被猜测为静默。启动后也能恢复显式的 `no-visible-output` 标记。关闭开关会取消排队中的静默续跑;即使开关关闭,静默回合也不会清零重试上限。
49
49
  - **自主循环** — 默认关闭(`resumeCompletedTurns`)。开启后,正常完成的回合经过宽限期便会续跑,不受恢复冷却和次数上限约束。仅有推理的回合和显式 `no-visible-output` 仍消耗重试预算并遵守退避。全局暂停、会话暂停、手动停止或关闭该选项都会停止循环。自主循环使用单独的提示文本 `continueTextLoop`(默认 `继续`),与循环守卫的提示文本不同。
50
- - **暂停** — 设置卡片里的全局 **暂停自动继续** 开关会停止实时事件与启动扫描触发的自动发送; 会话级暂停(如通过通知按钮)只挂起单个会话, 到期自动恢复。即使两种暂停同时生效,通知里的 **立即续跑** 仍可发送一次。发送后保留暂停状态,后续自动恢复和自主循环仍受暂停约束
50
+ - **暂停** — 在**常规**中关闭**自动继续**并保存,会停止实时事件与启动扫描触发的自动发送; 会话级暂停(如通过通知按钮)只挂起单个会话, 到期自动恢复。即使两种暂停同时生效,通知里的 **立即续跑** 仍可发送一次。发送后保留暂停状态,后续自动恢复和自主循环仍受暂停约束
51
51
  - **通知按钮** — 通知带 **立即续跑**(无视冷却、连续上限与暂停, 马上发送)和 **暂停该会话 1 小时** 按钮
52
52
  - **循环守卫** — 连**运行中的回合**也盯着, 四个信号都会触发守卫(取消当前回合并用可配置的循环提示文本重启, 「停止重复, 换一种方式」): 模型**连续输出完全相同的消息**(不限长度, 如 "Let me test variants of the regex…" 连续 7 遍)、单条流式 assistant 消息内部出现连续近似重复段落、短时间内连续多条短句且期间无工具调用(典型的「Let me read…」空转)、或同一工具被连续反复调用且**参数与结果都相同**(参数或结果有变化视为有进展)。取消带有内部来源标记, 绝不会与用户手动停止混淆——只有守卫发起的取消才会重启。阈值、时间窗与提示文本都可配置
53
53
  - **统计面板** — 设置卡片展示今日自动继续次数、恢复成功、继续后失败、永久性跳过、达上限停止、循环打断, 按错误码统计, 可一键清零
54
- - **浏览器通知** — 可选: 自动继续成功 / 放弃 / 遇到永久性错误时弹出提醒; 首次使用时请求权限, 被拒绝后不再打扰
54
+ - **浏览器通知** — 可选:自动继续事件和配置保存成功时弹出提醒。切换通知选项并保存后会确认新状态,关闭时也会发最后一条确认。开启时可能请求浏览器权限;被拒绝后会在设置页说明,不影响配置保存。
55
55
 
56
56
  插件监听实时事件流, 对以下情况作出反应:
57
57
 
@@ -91,8 +91,8 @@ DSH 插件安装进 **profile**(`dsh web` 对应 `web` profile)。下面的命
91
91
 
92
92
  | DSH 内核 | 插件版本 | 配置入口 |
93
93
  | --- | --- | --- |
94
- | **0.2.1-alpha.1** | **已验证 0.13.0** | **插件 → dsh-client-auto-continue → 自动继续** |
95
- | **0.2.0-rc.1** | **0.12.1 或更新版本** | **插件 → dsh-client-auto-continue → 自动继续** |
94
+ | **0.2.1-alpha.1** | **已验证 0.14.0** | **插件 → dsh-client-auto-continue** |
95
+ | **0.2.0-rc.1** | **0.12.1 或更新版本** | **插件 → dsh-client-auto-continue** |
96
96
  | **0.1.7-rc.2** | **0.11.9 或更新版本** | 同上,从主侧栏的插件页进入 |
97
97
  | 使用旧设置 API 的宿主 | 保留旧版设置界面兼容 | **设置 → 插件 → 插件配置** |
98
98
 
@@ -100,7 +100,7 @@ DSH 插件安装进 **profile**(`dsh web` 对应 `web` profile)。下面的命
100
100
 
101
101
  **插件 0.11.9 和 0.12.0 会被 DSH 0.2.0-rc.1 的版本检查拦截。** 请升级到 0.12.1 或更新版本;现有配置表单接口可在该内核正常工作。详见 [#50](https://github.com/HsiangNianian/dsh-auto-continue/issues/50)。
102
102
 
103
- 当前 DSH 的**设置 → 内置插件**是组件状态列表,配置应从主侧栏的**插件**页面进入。下方截图使用 **DSH 0.2.1-alpha.1 + 插件 0.13.0**。此前通过软链或手写 Loader 条目安装的用户,请参考[旧安装迁移](#旧安装迁移)。
103
+ 当前 DSH 的**设置 → 内置插件**是组件状态列表,配置应从主侧栏的**插件**页面进入。下方截图展示插件 **0.14.0** 在 **DSH 0.2.1-alpha.1** 中的界面。此前通过软链或手写 Loader 条目安装的用户,请参考[旧安装迁移](#旧安装迁移)。
104
104
 
105
105
  ### 从 npm 安装(推荐)
106
106
 
@@ -159,7 +159,7 @@ dsh web
159
159
  ```
160
160
 
161
161
  若已有覆盖项, 请合并到其中, 不要重复添加。保留其他设置。DSH 0.1.7 / 0.2 读取的是条目配置, 修改旧 `settings.yaml` 段落不会更新新版表单。
162
- 5. 重新启动 `dsh web` 并刷新浏览器。打开**插件 → dsh-client-auto-continue**, 展开**自动继续**, 检查旧参数是否保留。保存一次修改并刷新, 确认配置持久化正常。
162
+ 5. 重新启动 `dsh web` 并刷新浏览器。打开**插件 → dsh-client-auto-continue**, 选择对应的设置类别,检查旧参数是否保留。保存一次修改并刷新, 确认配置持久化正常。
163
163
 
164
164
  **内置插件**里显示的 `include:auto-continue` 是正常的 Loader 前缀, 单凭这个名字不能判断为旧安装或重复引擎。
165
165
 
@@ -169,7 +169,7 @@ dsh web
169
169
  dsh --profile web --dump-config | grep -A 4 'id: auto-continue'
170
170
  ```
171
171
 
172
- 合并后的配置应只有一个 `id: auto-continue` 条目。在**插件 → dsh-client-auto-continue**中确认组件**运行中**, 展开**自动继续**后能编辑字段。开启详细日志后, 引擎活动会输出到运行 DSH 的终端。
172
+ 合并后的配置应只有一个 `id: auto-continue` 条目。在**插件 → dsh-client-auto-continue**中确认组件**运行中**, **常规**分类中能编辑字段。开启详细日志后, 引擎活动会输出到运行 DSH 的终端。
173
173
 
174
174
  ```bash
175
175
  dsh plugin --profile web remove dsh-client-auto-continue # npm / 仓库安装
@@ -182,7 +182,7 @@ dsh web
182
182
  ## 常见问题
183
183
 
184
184
  - **提示 “skipping profile bundle” 或 “incompatible with dsh 0.2.0-rc.1”:** 在应用实际使用的 profile 中升级到插件 0.12.1 或更新版本,再重启应用。此修复不需要授予版本豁免。
185
- - **已启用,但看不到配置:** 从主侧栏打开**插件**,选择该包并展开**自动继续**;内置插件状态页没有可编辑字段。
185
+ - **已启用,但看不到配置:** 从主侧栏打开**插件**,选择该包并打开**常规**;内置插件状态页没有可编辑字段。
186
186
  - **`/api/auto-continue-bridge` 返回 404:** 检查 DSH 启动日志与合并配置,确认宿主组件已加载。刷新配置卡片不能启动缺失的宿主组件。
187
187
 
188
188
  ---
@@ -195,17 +195,19 @@ dsh web
195
195
 
196
196
  **开**允许自动恢复,**关**会设置已有的全局 `paused` 选项。修改立即保存,作用于**当前 profile 下的所有会话**,其他已打开的标签页也会同步。它与通知中「暂停该会话 1 小时」的单会话操作是分开的;重新打开全局开关不会解除单个会话的暂停。
197
197
 
198
- 想隐藏开关时,进入**插件 → dsh-client-auto-continue → 自动继续**,关闭**在会话区显示自动继续开关**,再点**保存**。这只改变显示,自动继续保持原来的运行状态。对应配置键为 `showComposerToggle`,默认 `true`。没有会话工具栏插槽的旧宿主仍可使用设置卡片。
198
+ 想隐藏开关时,进入**插件 → dsh-client-auto-continue → 常规**,关闭**在会话区显示自动继续开关**,再点**保存**。这只改变显示,自动继续保持原来的运行状态。对应配置键为 `showComposerToggle`,默认 `true`。没有会话工具栏插槽的旧宿主仍可使用设置卡片。
199
199
 
200
200
  ## 配置
201
201
 
202
- 在 **DSH 0.1.7 / 0.2** 中, 从主侧栏打开**插件**, 选择 **dsh-client-auto-continue**, 再展开**自动继续**卡片。**设置 → 内置插件**是单独的组件状态列表, 不能在其中编辑配置。旧版 DSH 的入口仍为**设置 → 插件 → 插件配置**。
202
+ 在 **DSH 0.1.7 / 0.2** 中, 从主侧栏打开**插件**, 选择 **dsh-client-auto-continue**, 再选择设置类别。**设置 → 内置插件**是单独的组件状态列表, 不能在其中编辑配置。旧版 DSH 的入口仍为**设置 → 插件 → 插件配置**。
203
203
 
204
- ![DSH 0.2 插件页面中的自动继续折叠卡片](docs/screenshots/01-settings-section.zh.png)
204
+ ![DSH 0.2 中的自动继续分类设置](docs/screenshots/01-settings-section.zh.png)
205
205
 
206
- 点击卡片标题或右侧箭头即可展开字段。卡片内还带有**统计面板**(今日活动, 可一键清零)和**已暂停会话**列表(每个都可单独解除)。
206
+ 通过**常规、重试策略、启动恢复、继续文本、安全保护、状态与日志**查找选项。切换分类会保留未保存的修改;**状态与日志**中可以查看今日统计和已暂停会话。
207
207
 
208
- 新版配置卡会按接力方式、安全节奏、恢复雷达、循环断路器与现场状态组织配置; 卡片顶部也直接放出了开源仓库和 **Star on GitHub** 入口。
208
+ 顶部的插件状态和 GitHub 邀请入口并排显示,共用一整块黑灰色背景。状态展示已保存的全局开关;修改配置后点**保存**才生效。
209
+
210
+ 开启**浏览器通知**后,每次保存成功都会从当前操作的标签页发出一条确认。关闭通知时,如果浏览器已授权,会发最后一条关闭确认,之后保存其他配置不再通知。放弃修改、无效配置和保存失败不会发送成功通知。如果浏览器拦截通知,设置页仍会确认保存结果并说明权限问题。
209
211
 
210
212
  DSH 0.1.7 / 0.2 将这些值保存在当前 profile patch 的 `auto-continue` 条目 config 中(默认 Web profile 对应 `~/.dsh/profiles/web/cordis.patch.yml`)。点**保存**后实时生效, 无需重启引擎。省略的字段使用下表默认值。
211
213
 
@@ -265,14 +267,14 @@ auto-continue:
265
267
 
266
268
  **卡片操作说明:**
267
269
 
268
- ![DSH 0.2 中展开后的自动继续配置](docs/screenshots/02-settings-card.zh.png)
270
+ ![DSH 0.2 中的重试策略设置](docs/screenshots/02-settings-card.zh.png)
269
271
 
270
- - 修改是**暂存式**的——点「保存」之前不会写入磁盘; 有待保存草稿时卡片显示「未保存」徽章, 「放弃」可丢弃草稿
272
+ - 修改是**暂存式**的——点「保存」之前不会写入磁盘; 有待保存草稿时底部显示提示, 「放弃」可丢弃草稿
271
273
  - 保存期间继续修改或重置字段时,新的草稿会保留在卡片中;等待当前保存结束后,再点一次「保存」即可应用
272
- - 改动过的字段会带「已覆盖」徽章, 并有逐字段的「恢复默认」按钮(移除覆盖项,恢复继承值,通常为内置默认值)
273
- - **在会话区显示自动继续开关**使用原生开关,点保存后生效。其他布尔字段是三态:**继承**(用默认) / 开 / 关
274
- - 非法输入(非数字、小于最小值)会阻止保存并给出提示
275
- - 只读部署中卡片只显示已存值, 所有控件禁用
274
+ - 有覆盖项的字段提供「恢复默认」按钮(移除覆盖项,恢复继承值,通常为内置默认值)
275
+ - 布尔选项使用原生开关,点保存后生效;「恢复默认」会移除覆盖项并恢复继承值。**自动继续**开启表示允许恢复(`paused: false`)
276
+ - 非法输入(非数字、小于最小值)会阻止保存,并标记所在分类,切换分类后仍能找到问题
277
+ - 只读部署中卡片只显示已存值, 编辑控件禁用,仍可切换分类查看
276
278
  - 保存后立即生效,持久化在当前 profile 配置中(旧版宿主使用 `~/.dsh/settings.yaml`)
277
279
 
278
280
  <details>
@@ -313,7 +315,7 @@ auto-continue:
313
315
  | 自定义可恢复错误 | 空 | 每行一个大小写不敏感的普通文本片段; 命中错误码、HTTP 状态或消息时显式覆盖内置分类 |
314
316
  | 退避系数 | `2` | 连续失败时冷却间隔的倍率(2 = 20s → 40s → 80s…) |
315
317
  | 最大退避间隔 (ms) | `300000` | 自适应退避的上限 |
316
- | 浏览器通知 | 关 | 自动继续成功 / 放弃 / 遇到永久性错误时弹通知 |
318
+ | 浏览器通知 | 关 | 自动继续事件和配置保存成功时通知;切换通知开关并保存后确认状态 |
317
319
 
318
320
  遇到确认可以安全续跑的 provider 专属错误时(先确认手动发送「继续」确实能恢复), 应添加足够具体、稳定的片段, 而不是全局关闭错误分类:
319
321
 
@@ -338,7 +340,7 @@ auto-continue:
338
340
  - 恢复时通过 `agent.followup` 发送你配置的文本。循环守卫可先通过 `agent.cancel` 停止空转回合, 再发送恢复提示; 续跑的 Agent 沿用会话已有的工具和权限
339
341
  - 保存配置使用 DSH 的设置 API: DSH 0.1.7 / 0.2 写入当前 profile patch, 旧版宿主写入 `~/.dsh/settings.yaml`
340
342
  - 重试计数、冷却时间戳、会话级暂停与统计保存在宿主进程内存中,引擎重启后重置;全局 `paused` 开关随其他配置持久化保存
341
- - 浏览器通知是可选开启的(`notify` 设置), 仅在首次使用时请求一次权限
343
+ - 浏览器通知是可选开启的(`notify` 设置)。开启并保存时可能请求浏览器权限;被拒绝后不再请求,关闭此选项也不会请求权限。
342
344
 
343
345
  ---
344
346
 
Binary file
@@ -1,41 +1,40 @@
1
1
  # Configuration and composer screenshots
2
2
 
3
- Captured on 2026-10-06 using **DSH 0.2.1-alpha.1** and
4
- the **dsh-client-auto-continue 0.13.0** release build in Chromium, with DSH's dark theme.
5
- These are screenshots of the running application in an isolated `DSH_HOME`
6
- with no user sessions or API keys.
3
+ Captured on 2026-10-06 with **DSH 0.2.1-alpha.1** and **plugin 0.14.0**,
4
+ using Chromium and DSH's dark theme.
5
+ The capture uses an isolated `DSH_HOME` with no API keys or user conversations.
7
6
 
8
7
  | View | English | Chinese | Viewport |
9
8
  | --- | --- | --- | --- |
10
- | Plugins → dsh-client-auto-continue, collapsed card | [01-settings-section.png](01-settings-section.png) | [01-settings-section.zh.png](01-settings-section.zh.png) | 1440 × 610 |
11
- | Expanded card, composer visibility, recovery prompts and autonomous loop | [02-settings-card.png](02-settings-card.png) | [02-settings-card.zh.png](02-settings-card.zh.png) | 1440 × 1400 |
12
- | Live status and Save / Discard controls | [07-card-panels.png](07-card-panels.png) | [07-card-panels.zh.png](07-card-panels.zh.png) | 1440 × 950 |
13
- | Native composer switch | [08-composer-toggle.png](08-composer-toggle.png) | [08-composer-toggle.zh.png](08-composer-toggle.zh.png) | 1440 × 900, cropped to the 828 × 256 composer area |
9
+ | General category and the inline GitHub invitation | [01-settings-section.png](01-settings-section.png) | [01-settings-section.zh.png](01-settings-section.zh.png) | 1440 × 1100 |
10
+ | Retry strategy category | [02-settings-card.png](02-settings-card.png) | [02-settings-card.zh.png](02-settings-card.zh.png) | 1440 × 1400 |
11
+ | Status and logs, Save / Discard controls | [07-card-panels.png](07-card-panels.png) | [07-card-panels.zh.png](07-card-panels.zh.png) | 1440 × 1100 |
12
+ | Native composer switch | [08-composer-toggle.png](08-composer-toggle.png) | [08-composer-toggle.zh.png](08-composer-toggle.zh.png) | 1440 × 900, cropped to the composer |
14
13
 
15
- To refresh them, first verify `dsh --version` is `0.2.1-alpha.1`, then create
16
- an empty DSH home and install the released plugin:
14
+ To refresh, build the checked-out code and install it in an empty DSH profile:
17
15
 
18
16
  ```bash
17
+ npm run build
19
18
  capture_home="$(mktemp -d)"
20
- DSH_HOME="$capture_home" dsh plugin --profile web add dsh-client-auto-continue@0.13.0
19
+ DSH_HOME="$capture_home" dsh plugin --profile web add "file:$PWD"
21
20
  DSH_HOME="$capture_home" dsh web --no-open
22
21
  ```
23
22
 
24
- Open the authenticated URL printed by DSH without including that URL in any
25
- screenshot. Dismiss onboarding, select the dark theme, and navigate from the
26
- main sidebar's **Plugins** button.
23
+ Open the authenticated URL printed by DSH without including its token in any
24
+ screenshot. Dismiss onboarding, select the dark theme, and open **Plugins →
25
+ dsh-client-auto-continue** from the sidebar. Capture **General**, **Retry strategy**,
26
+ and **Status and logs**. The repository invitation should stay beside the plugin
27
+ introduction on one continuous charcoal background, with their vertical centers aligned. There is no collapsed card or
28
+ prototype selector in the finished UI.
27
29
 
28
- Capture the collapsed card, expand it for the top-of-page view, then scroll to
29
- its Save / Discard footer. For the composer view, open a new session and crop
30
- the screenshot to the message input and workspace controls. Switch **Settings → General →
31
- Language** to Chinese and wait for the translated interface to finish rendering
32
- before repeating the captures. Use device scale factor 1 and the viewports
33
- above; keep the UI content unchanged.
30
+ For the composer view, open a new session without sending a message and crop to
31
+ the message input and controls. Use a fresh browser context with an English or
32
+ Chinese locale (or change **Settings → General → Language**) and repeat the captures.
33
+ Use device scale factor 1. Do not fabricate activity for the statistics panel.
34
34
 
35
- Before capture, verify that toggling the composer switch updates another open
36
- tab and persists after a reload. Turn off composer visibility in the settings:
37
- it should remain visible until Save, then disappear without changing `paused`.
38
- Reset both overrides before capturing. Wait for the profile writes to finish
39
- before checking the saved file. Keep the form at its defaults and record the
40
- host/plugin versions when updating these images. Also check the switch in the
41
- light theme and at a narrow viewport (393 × 852).
35
+ Before capture, verify the composer switch updates another open tab and persists
36
+ after reload. Changing its visibility in **General** must remain staged until
37
+ Save; hiding it must not change `paused`. Restore both overrides to inherited
38
+ values. Verify that navigation preserves drafts, errors in hidden categories are
39
+ marked, and read-only settings cannot be edited. Also check light theme and a
40
+ 393 × 852 viewport: the repository entry condenses and stays beside the introduction.