dsh-client-auto-continue 0.12.2 → 0.13.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
@@ -39,6 +39,7 @@ Automatic recovery for [DeepSeek Harness](https://github.com/deepseek-ai/deepsee
39
39
 
40
40
  **Smart recovery** (all configurable):
41
41
 
42
+ - **Composer switch** — enable or pause auto-continue directly beside the message input, using DSH's native switch. It controls all sessions in the current profile and saves immediately. Prefer a quieter toolbar? Hide it in the plugin settings without pausing recovery
42
43
  - **Error classification** — transient failures (network / timeout / 5xx / 429…) are auto-resumed; permanent ones are **skipped** and notified, because retrying them never helps. A failure counts as permanent when its HTTP status is 401/403 or its code/message matches auth, credential/API-key, balance/quota, unknown-model, or context-length/overflow keywords. Provider-specific exceptions can be opted into with literal custom retryable patterns; turn classification off to resume everything
43
44
  - **Adaptive backoff** — consecutive failures wait longer each time (cooldown × factor: 20s → 40s → 80s…), capped at the max backoff, instead of hammering a broken upstream
44
45
  - **English / Chinese localization** — the settings card, built-in resume / guard / loop text, and browser notifications follow DSH's active UI language (initially selected from the browser language). Only `en` and `zh` are supported; other languages fall back to Chinese. Switching languages updates built-in defaults without overwriting custom text
@@ -74,7 +75,7 @@ The host-side engine subscribes to the session event firehose inside the dsh hos
74
75
 
75
76
  On host boot it also scans the live sessions: a session whose last turn ended with a non-human reason **within the scan window** (default 15 minutes), with no later `turn/start` or user message, gets resumed automatically too (e.g. the host crashed while the browser was closed — the agent-loop resumes the session and the engine picks it up).
76
77
 
77
- The browser half is a thin shell: the settings card, plus a status bridge that shows notifications (with Resume now / Pause this session 1h buttons, routed back to the host engine) and feeds the card's stats / paused-sessions panels.
78
+ The browser provides the settings card and composer switch, plus a status bridge that shows notifications (with Resume now / Pause this session 1h buttons, routed back to the host engine) and feeds the card's stats / paused-sessions panels.
78
79
 
79
80
  ### Recovery workflow
80
81
 
@@ -90,15 +91,16 @@ DSH plugins install into a **profile** (`dsh web` → `web` profile). The comman
90
91
 
91
92
  | DSH runtime | Plugin version | Configuration entry point |
92
93
  | --- | --- | --- |
94
+ | **0.2.1-alpha.1** | **0.13.0 verified** | **Plugins → dsh-client-auto-continue → Auto continue** |
93
95
  | **0.2.0-rc.1** | **0.12.1 or newer** | **Plugins → dsh-client-auto-continue → Auto continue** |
94
96
  | **0.1.7-rc.2** | **0.11.9 or newer** | Same Plugins page |
95
97
  | Older hosts with the legacy settings API | Legacy UI retained | **Settings → Plugins → Plugin configuration** |
96
98
 
97
- DSH 0.1.0-rc.6 and earlier are unsupported. Automated runtime checks cover **0.1.7-rc.2** and **0.2.0-rc.1**. Desktop app versions and embedded DSH runtime versions are different; use the runtime version when checking compatibility. For the CLI, run `dsh --version`; see [official DSH releases](https://github.com/deepseek-ai/deepseek-harness/releases) for available versions.
99
+ DSH 0.1.0-rc.6 and earlier are unsupported. Automated runtime checks cover **0.1.7-rc.2**, **0.2.0-rc.1** and **0.2.1-alpha.1**. Desktop app versions and embedded DSH runtime versions are different; use the runtime version when checking compatibility. For the CLI, run `dsh --version`; see [official DSH releases](https://github.com/deepseek-ai/deepseek-harness/releases) for available versions.
98
100
 
99
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).
100
102
 
101
- 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.0-rc.1 + plugin 0.12.1**. 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 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).
102
104
 
103
105
  ### From npm (recommended)
104
106
 
@@ -185,6 +187,16 @@ dsh web
185
187
 
186
188
  ---
187
189
 
190
+ ## Composer switch
191
+
192
+ Starting with **0.13.0**, an **Auto-continue** switch appears beside the message input by default. It uses DSH's native `Switch` and follows the active theme.
193
+
194
+ ![Native Auto-continue switch beside the message input](docs/screenshots/08-composer-toggle.png)
195
+
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
+
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.
199
+
188
200
  ## Configuration
189
201
 
190
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**.
@@ -206,6 +218,7 @@ The browser mirrors DSH's active language into the internal `locale` field. Leav
206
218
  config:
207
219
  locale: 'en' # normally managed by the browser
208
220
  paused: false
221
+ showComposerToggle: true
209
222
  continueText: ''
210
223
  resumeSilentTurns: true
211
224
  resumeCompletedTurns: false
@@ -257,7 +270,7 @@ When migrating from the legacy settings file to DSH 0.1.7 / 0.2, move these valu
257
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
258
271
  - 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
259
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)
260
- - Boolean fields are **tri-state**: *Inherit* (use the default) / *On* / *Off*
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*
261
274
  - Invalid drafts (non-numbers, values below the minimum) block the save with a hint
262
275
  - In a read-only deployment the card shows the stored values but disables every control
263
276
  - Changes apply immediately after Save and persist in the active profile config (or `~/.dsh/settings.yaml` on older hosts)
@@ -272,6 +285,7 @@ When migrating from the legacy settings file to DSH 0.1.7 / 0.2, move these valu
272
285
  | Field | Default | Description |
273
286
  | --- | --- | --- |
274
287
  | Pause auto-continue | `off` | Global pause: no live or scan auto-send fires, queued pending sends are cancelled |
288
+ | Show auto-continue switch in the composer | `on` | Show the composer switch (`showComposerToggle`); hiding it does not pause recovery |
275
289
  | Continue text | `Continue` | Text automatically sent after an interruption |
276
290
  | Continue text (max tokens) | `Continue` | Text sent when the output token ceiling is reached (same placeholders) |
277
291
  | Resume silent turns | `on` | Resume a turn that ended normally with reasoning only (no text, no tool call); does not reset the consecutive count |
package/README.zh.md CHANGED
@@ -39,6 +39,7 @@
39
39
 
40
40
  **智能恢复**(全部可配置):
41
41
 
42
+ - **会话区开关** — 在输入框旁用 DSH 原生开关直接启停自动继续,控制当前 profile 下的所有会话,修改立即保存。也可在插件配置中隐藏开关,不影响自动继续的运行状态
42
43
  - **错误分类** — 临时性错误(网络 / 超时 / 5xx / 429 等)自动续跑; 永久性错误跳过并通知, 因为重试也没用。判定为永久性的条件: HTTP 状态码 401/403, 或 code/message 命中认证、凭据/API Key、余额/配额、模型不存在、上下文长度/超限等关键词。provider 专属例外可由用户显式填写普通文本匹配; 关闭分类后则全部自动继续
43
44
  - **自适应退避** — 连续失败时等待时间递增(冷却 × 系数: 20s → 40s → 80s…), 有上限, 不再对故障上游狂轰滥炸
44
45
  - **中英文本地化** — 设置卡片、内置续跑 / 护栏 / 循环文案以及浏览器通知都跟随 DSH 当前界面语言(初始值来自浏览器语言)。只支持 `en` 和 `zh`, 其他语言回落中文; 切换语言只会替换内置默认值, 不会覆盖用户自定义文本
@@ -74,7 +75,7 @@
74
75
 
75
76
  宿主启动时还会扫描存活会话: 最后一个回合在**扫描时间窗**(默认 15 分钟)内以非人为原因结束、且其后没有新回合或用户消息的会话, 会被自动续跑(例如浏览器关闭期间宿主崩溃——agent-loop 恢复会话后引擎接着接手)。
76
77
 
77
- 浏览器半侧是瘦壳: 设置卡片 + 一条状态桥(展示通知, 带「立即续跑 / 暂停该会话 1 小时」按钮并把动作回传给宿主引擎; 驱动卡片里的统计与暂停面板)。
78
+ 浏览器负责设置卡片、会话区开关和一条状态桥(展示通知, 带「立即续跑 / 暂停该会话 1 小时」按钮并把动作回传给宿主引擎; 驱动卡片里的统计与暂停面板)。
78
79
 
79
80
  ### 恢复流程
80
81
 
@@ -90,15 +91,16 @@ DSH 插件安装进 **profile**(`dsh web` 对应 `web` profile)。下面的命
90
91
 
91
92
  | DSH 内核 | 插件版本 | 配置入口 |
92
93
  | --- | --- | --- |
94
+ | **0.2.1-alpha.1** | **已验证 0.13.0** | **插件 → dsh-client-auto-continue → 自动继续** |
93
95
  | **0.2.0-rc.1** | **0.12.1 或更新版本** | **插件 → dsh-client-auto-continue → 自动继续** |
94
96
  | **0.1.7-rc.2** | **0.11.9 或更新版本** | 同上,从主侧栏的插件页进入 |
95
97
  | 使用旧设置 API 的宿主 | 保留旧版设置界面兼容 | **设置 → 插件 → 插件配置** |
96
98
 
97
- 不支持 DSH 0.1.0-rc.6 及更早版本。自动化运行时测试覆盖 **0.1.7-rc.2** 和 **0.2.0-rc.1**。桌面应用版本不等于内置的 DSH 内核版本,请按内核版本判断兼容性;CLI 可运行 `dsh --version`,可用版本见 [DSH 官方 Releases](https://github.com/deepseek-ai/deepseek-harness/releases)。
99
+ 不支持 DSH 0.1.0-rc.6 及更早版本。自动化运行时测试覆盖 **0.1.7-rc.2**、**0.2.0-rc.1** 和 **0.2.1-alpha.1**。桌面应用版本不等于内置的 DSH 内核版本,请按内核版本判断兼容性;CLI 可运行 `dsh --version`,可用版本见 [DSH 官方 Releases](https://github.com/deepseek-ai/deepseek-harness/releases)。
98
100
 
99
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)。
100
102
 
101
- 当前 DSH 的**设置 → 内置插件**是组件状态列表,配置应从主侧栏的**插件**页面进入。下方截图使用 **DSH 0.2.0-rc.1 + 插件 0.12.1**。此前通过软链或手写 Loader 条目安装的用户,请参考[旧安装迁移](#旧安装迁移)。
103
+ 当前 DSH 的**设置 → 内置插件**是组件状态列表,配置应从主侧栏的**插件**页面进入。下方截图使用 **DSH 0.2.1-alpha.1 + 插件 0.13.0**。此前通过软链或手写 Loader 条目安装的用户,请参考[旧安装迁移](#旧安装迁移)。
102
104
 
103
105
  ### 从 npm 安装(推荐)
104
106
 
@@ -185,6 +187,16 @@ dsh web
185
187
 
186
188
  ---
187
189
 
190
+ ## 会话区开关
191
+
192
+ 从 **0.13.0** 起,输入框旁默认显示**自动继续**开关,使用 DSH 原生 `Switch`,跟随当前主题。
193
+
194
+ ![输入框旁的原生自动继续开关](docs/screenshots/08-composer-toggle.zh.png)
195
+
196
+ **开**允许自动恢复,**关**会设置已有的全局 `paused` 选项。修改立即保存,作用于**当前 profile 下的所有会话**,其他已打开的标签页也会同步。它与通知中「暂停该会话 1 小时」的单会话操作是分开的;重新打开全局开关不会解除单个会话的暂停。
197
+
198
+ 想隐藏开关时,进入**插件 → dsh-client-auto-continue → 自动继续**,关闭**在会话区显示自动继续开关**,再点**保存**。这只改变显示,自动继续保持原来的运行状态。对应配置键为 `showComposerToggle`,默认 `true`。没有会话工具栏插槽的旧宿主仍可使用设置卡片。
199
+
188
200
  ## 配置
189
201
 
190
202
  在 **DSH 0.1.7 / 0.2** 中, 从主侧栏打开**插件**, 选择 **dsh-client-auto-continue**, 再展开**自动继续**卡片。**设置 → 内置插件**是单独的组件状态列表, 不能在其中编辑配置。旧版 DSH 的入口仍为**设置 → 插件 → 插件配置**。
@@ -206,6 +218,7 @@ DSH 0.1.7 / 0.2 将这些值保存在当前 profile patch 的 `auto-continue`
206
218
  config:
207
219
  locale: 'zh' # 通常由浏览器自动维护
208
220
  paused: false
221
+ showComposerToggle: true
209
222
  continueText: ''
210
223
  resumeSilentTurns: true
211
224
  resumeCompletedTurns: false
@@ -257,7 +270,7 @@ auto-continue:
257
270
  - 修改是**暂存式**的——点「保存」之前不会写入磁盘; 有待保存草稿时卡片显示「未保存」徽章, 「放弃」可丢弃草稿
258
271
  - 保存期间继续修改或重置字段时,新的草稿会保留在卡片中;等待当前保存结束后,再点一次「保存」即可应用
259
272
  - 改动过的字段会带「已覆盖」徽章, 并有逐字段的「恢复默认」按钮(移除覆盖项,恢复继承值,通常为内置默认值)
260
- - 布尔字段是三态:**继承**(用默认)/ 开 / 关
273
+ - **在会话区显示自动继续开关**使用原生开关,点保存后生效。其他布尔字段是三态:**继承**(用默认) / 开 / 关
261
274
  - 非法输入(非数字、小于最小值)会阻止保存并给出提示
262
275
  - 只读部署中卡片只显示已存值, 所有控件禁用
263
276
  - 保存后立即生效,持久化在当前 profile 配置中(旧版宿主使用 `~/.dsh/settings.yaml`)
@@ -272,6 +285,7 @@ auto-continue:
272
285
  | 字段 | 默认 | 说明 |
273
286
  | --- | --- | --- |
274
287
  | 暂停自动继续 | 关 | 全局暂停: 实时与扫描都不再自动发送, 已排队的待发送也会取消 |
288
+ | 在会话区显示自动继续开关 | 开 | 显示输入框旁的开关(`showComposerToggle`);隐藏不会暂停自动继续 |
275
289
  | 继续文本 | `继续` | 中断后自动发送的消息内容 |
276
290
  | 超限时的继续文本 | `继续` | 达到输出 token 上限时自动发送的文本(支持相同占位符) |
277
291
  | 续跑无输出回合 | 开 | 回合正常结束但只有推理(没有文本、没有工具调用)时自动续跑; 不清零连续次数 |
Binary file
@@ -1,22 +1,23 @@
1
- # Configuration screenshots
1
+ # Configuration and composer screenshots
2
2
 
3
- Captured on 2026-09-30 using **DSH 0.2.0-rc.1** and
4
- **dsh-client-auto-continue 0.12.1** in Chromium, with DSH's dark theme.
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
5
  These are screenshots of the running application in an isolated `DSH_HOME`
6
6
  with no user sessions or API keys.
7
7
 
8
8
  | View | English | Chinese | Viewport |
9
9
  | --- | --- | --- | --- |
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 × 760 |
11
- | Expanded card, 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 |
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
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 |
13
14
 
14
- To refresh them, first verify `dsh --version` is `0.2.0-rc.1`, then create
15
+ To refresh them, first verify `dsh --version` is `0.2.1-alpha.1`, then create
15
16
  an empty DSH home and install the released plugin:
16
17
 
17
18
  ```bash
18
19
  capture_home="$(mktemp -d)"
19
- DSH_HOME="$capture_home" dsh plugin --profile web add dsh-client-auto-continue@0.12.1
20
+ DSH_HOME="$capture_home" dsh plugin --profile web add dsh-client-auto-continue@0.13.0
20
21
  DSH_HOME="$capture_home" dsh web --no-open
21
22
  ```
22
23
 
@@ -25,12 +26,16 @@ screenshot. Dismiss onboarding, select the dark theme, and navigate from the
25
26
  main sidebar's **Plugins** button.
26
27
 
27
28
  Capture the collapsed card, expand it for the top-of-page view, then scroll to
28
- its Save / Discard footer for the final view. Switch **Settings → General →
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 →
29
31
  Language** to Chinese and wait for the translated interface to finish rendering
30
32
  before repeating the captures. Use device scale factor 1 and the viewports
31
33
  above; keep the UI content unchanged.
32
34
 
33
- Before capture, verify that a text change and a numeric change both persist
34
- after Save and a browser reload, then reset those overrides. Wait for the
35
- profile writes to finish before checking the saved file. Keep the form at its
36
- defaults and record the host/plugin versions when updating these images.
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).