dsh-client-auto-continue 0.17.2 → 0.17.4
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 +27 -0
- package/README.md +7 -3
- package/README.zh.md +7 -3
- package/docs/releases/v0.17.3.md +43 -0
- package/docs/releases/v0.17.4.md +35 -0
- package/docs/screenshots/README.md +25 -0
- package/docs/screenshots/issue-72-584-after.png +0 -0
- package/docs/screenshots/issue-72-584-before.png +0 -0
- package/lib/client.js +1 -1
- package/lib/client.js.map +2 -2
- package/lib/index.js +1 -0
- package/package.json +2 -2
- package/src/client/styles.ts +1 -1
- package/src/shared/core.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.17.4](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.17.4) — 2026-11-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Retry `MALFORMED_RESPONSE` errors without treating keywords in echoed tool arguments as permanent authentication, quota or configuration failures ([#75](https://github.com/HsiangNianian/dsh-auto-continue/issues/75), thanks @yuloop)
|
|
8
|
+
- Apply the shared classification fix to live errors, loaded-session startup scans and stored-session scans, preserving explicit HTTP 401/403 checks, custom overrides and retry limits
|
|
9
|
+
|
|
10
|
+
### Maintenance
|
|
11
|
+
|
|
12
|
+
- Add regression coverage across all three recovery paths, permanent-error boundaries, the consecutive-attempt cap and custom-pattern precedence
|
|
13
|
+
- Update both READMEs with the built-in behavior and removal of the temporary workaround
|
|
14
|
+
|
|
15
|
+
[Upgrade instructions and validation](docs/releases/v0.17.4.md) · [Full changes](https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.17.3...v0.17.4)
|
|
16
|
+
|
|
17
|
+
## [0.17.3](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.17.3) — 2026-11-02
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Extend the compact composer viewport fallback from 460px to 640px, covering the 584px DS-Bot / dsh-pocket layout when its query container is removed ([#72](https://github.com/HsiangNianian/dsh-auto-continue/issues/72), thanks @jasoneri)
|
|
22
|
+
- Keep the icon, switch and mode arrow available, with pause/error text below the controls
|
|
23
|
+
|
|
24
|
+
### Documentation
|
|
25
|
+
|
|
26
|
+
- Add measured 584px before/after screenshots and document restart/reload steps in both READMEs
|
|
27
|
+
|
|
28
|
+
[Upgrade instructions, screenshots and validation](docs/releases/v0.17.3.md) · [Full changes](https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.17.2...v0.17.3)
|
|
29
|
+
|
|
3
30
|
## [0.17.2](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.17.2) — 2026-11-02
|
|
4
31
|
|
|
5
32
|
### Fixed
|
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ Automatic recovery for [DeepSeek Harness](https://github.com/deepseek-ai/deepsee
|
|
|
45
45
|
**Smart recovery** (all configurable):
|
|
46
46
|
|
|
47
47
|
- **Session modes** — switch auto-continue on or off beside the message input, for that conversation only. The mode menu next to the switch shows the current mode and opens Follow default, Off, Recovery only or Autonomous loop. Choices save on the host, survive restarts and sync across tabs; hiding the control does not change them
|
|
48
|
-
- **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
|
|
48
|
+
- **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, except for `MALFORMED_RESPONSE`, 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
|
|
49
49
|
- **Adaptive backoff** — consecutive failures wait longer each time (cooldown × factor: 20s → 40s → 80s…), capped at the max backoff, instead of hammering a broken upstream
|
|
50
50
|
- **English / Chinese localization** — the settings card uses DSH's locale service. Built-in resume / guard / loop text and browser notifications use Chinese for `zh` and `zh-*` (case-insensitive), and English for every other or unset locale. Switching languages updates built-in defaults without overwriting custom text
|
|
51
51
|
- **Templated continue text** — `continueText` supports `{code}` `{message}` `{status}` `{tool}` `{turn}` `{errorCount}` `{elapsed}` placeholders, so the resume message can carry the failure context ("Continue ({tool} failed: {code})"); a **separate template** fires on `max-tokens` (e.g. "Continue the output without repeating anything already generated")
|
|
@@ -100,8 +100,8 @@ DSH plugins install into a **profile** (`dsh web` → `web` profile). The comman
|
|
|
100
100
|
|
|
101
101
|
| DSH runtime | Plugin version | Configuration entry point |
|
|
102
102
|
| --- | --- | --- |
|
|
103
|
-
| **0.2.1-rc.2** | **0.17.
|
|
104
|
-
| **0.2.1-alpha.1** | **0.17.
|
|
103
|
+
| **0.2.1-rc.2** | **0.17.4 verified** | **Plugins → dsh-client-auto-continue** |
|
|
104
|
+
| **0.2.1-alpha.1** | **0.17.4 verified** | **Plugins → dsh-client-auto-continue** |
|
|
105
105
|
| **0.2.0-rc.1** | **0.12.1 or newer** | **Plugins → dsh-client-auto-continue** |
|
|
106
106
|
| **0.1.7-rc.2** | **0.11.9 or newer** | Same Plugins page |
|
|
107
107
|
| Older hosts with the legacy settings API | Legacy UI retained | **Settings → Plugins → Plugin configuration** |
|
|
@@ -223,6 +223,8 @@ The notification's **Pause this session 1h** still temporarily suspends one conv
|
|
|
223
223
|
|
|
224
224
|
To hide the controls, open **Plugins → dsh-client-auto-continue → General**, turn off **Show auto-continue switch in the composer**, then **Save**. This only changes visibility (`showComposerToggle`, default `true`). Hosts without the composer slot retain the settings card. A failed save surfaces as a DSH toast instead of inline red text, and a host that stays unavailable for three seconds announces itself once without flashing on a normal load. The switch and mode menu stay disabled while the host bridge or writable settings service is unavailable. When the composer row narrows, the same container query used by the native permission picker collapses the label to its icon and the mode menu to its arrow, keeping the switch and menu on one line.
|
|
225
225
|
|
|
226
|
+
For DS-Bot / dsh-pocket layouts that remove the query container, screens up to **640 CSS pixels** use the same icon + switch + arrow layout, with pause/error text below. After updating the plugin, restart DSH and reload the remote page to pick up the new styles.
|
|
227
|
+
|
|
226
228
|
## Configuration
|
|
227
229
|
|
|
228
230
|
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**.
|
|
@@ -349,6 +351,8 @@ When migrating from the legacy settings file to DSH 0.1.7 / 0.2, move these valu
|
|
|
349
351
|
|
|
350
352
|
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.
|
|
351
353
|
|
|
354
|
+
`MALFORMED_RESPONSE` errors are retryable even when echoed tool arguments contain words such as `auth`, `permission` or `quota`. Explicit HTTP 401/403 failures are still skipped by the built-in classifier, and normal cooldown/backoff and retry limits still apply. This covers live errors and startup scans; the temporary `malformed_response` / `non-whitespace character after json` retry patterns from [#75](https://github.com/HsiangNianian/dsh-auto-continue/issues/75) are no longer needed.
|
|
355
|
+
|
|
352
356
|
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:
|
|
353
357
|
|
|
354
358
|
```yaml
|
package/README.zh.md
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
**智能恢复**(全部可配置):
|
|
46
46
|
|
|
47
47
|
- **会话模式** — 在输入框旁用开关控制当前会话的自动继续,旁边显示当前模式的菜单可选择跟随默认、仅故障恢复或自主循环。选择保存在宿主配置里,重启后保留,并同步到其他标签页。隐藏控件不会改变模式
|
|
48
|
-
- **错误分类** — 临时性错误(网络 / 超时 / 5xx / 429 等)自动续跑; 永久性错误跳过并通知, 因为重试也没用。判定为永久性的条件: HTTP 状态码 401/403,
|
|
48
|
+
- **错误分类** — 临时性错误(网络 / 超时 / 5xx / 429 等)自动续跑; 永久性错误跳过并通知, 因为重试也没用。判定为永久性的条件: HTTP 状态码 401/403, 或非 `MALFORMED_RESPONSE` 错误的 code/message 命中认证、凭据/API Key、余额/配额、模型不存在、上下文长度/超限等关键词。provider 专属例外可由用户显式填写普通文本匹配; 关闭分类后则全部自动继续
|
|
49
49
|
- **自适应退避** — 连续失败时等待时间递增(冷却 × 系数: 20s → 40s → 80s…), 有上限, 不再对故障上游狂轰滥炸
|
|
50
50
|
- **中英文本地化** — 设置卡片使用 DSH 的语言服务。内置续跑 / 护栏 / 循环文案以及浏览器通知在 `zh` 和 `zh-*` 时使用中文(不区分大小写),其他语言或未设置语言时使用英文。切换语言只会替换内置默认值,不会覆盖用户自定义文本
|
|
51
51
|
- **模板化继续文本** — `continueText` 支持 `{code}` `{message}` `{status}` `{tool}` `{turn}` `{errorCount}` `{elapsed}` 占位符, 续跑消息可携带失败上下文(如「继续 (git push 失败: UPSTREAM)」); 达到 `max-tokens` 时使用**另一套模板**(如「继续输出, 不要重复已生成的内容」)
|
|
@@ -100,8 +100,8 @@ DSH 插件安装进 **profile**(`dsh web` 对应 `web` profile)。下面的命
|
|
|
100
100
|
|
|
101
101
|
| DSH 内核 | 插件版本 | 配置入口 |
|
|
102
102
|
| --- | --- | --- |
|
|
103
|
-
| **0.2.1-rc.2** | **已验证 0.17.
|
|
104
|
-
| **0.2.1-alpha.1** | **已验证 0.17.
|
|
103
|
+
| **0.2.1-rc.2** | **已验证 0.17.4** | **插件 → dsh-client-auto-continue** |
|
|
104
|
+
| **0.2.1-alpha.1** | **已验证 0.17.4** | **插件 → dsh-client-auto-continue** |
|
|
105
105
|
| **0.2.0-rc.1** | **0.12.1 或更新版本** | **插件 → dsh-client-auto-continue** |
|
|
106
106
|
| **0.1.7-rc.2** | **0.11.9 或更新版本** | 同上,从主侧栏的插件页进入 |
|
|
107
107
|
| 使用旧设置 API 的宿主 | 保留旧版设置界面兼容 | **设置 → 插件 → 插件配置** |
|
|
@@ -220,6 +220,8 @@ dsh web
|
|
|
220
220
|
|
|
221
221
|
想隐藏控件时,进入**插件 → dsh-client-auto-continue → 常规**,关闭**在会话区显示自动继续开关**,再点**保存**。这只改变显示(`showComposerToggle`,默认 `true`)。没有会话工具栏插槽的旧宿主仍可使用设置卡片。保存失败时通过 DSH 的 toast 通知提示,不再在输入框内显示红字;宿主持续不可用超过 3 秒也会提示一次,正常加载不会闪现。宿主桥接断开或设置不可写时,开关和模式菜单不可操作。输入框这一行变窄时,和「完全权限」等原生选择器用同一套容器查询:「自动继续」文字收成图标、模式菜单收成箭头,让开关和菜单保持在同一行。
|
|
222
222
|
|
|
223
|
+
DS-Bot / dsh-pocket 布局移除查询容器时,屏幕宽度不超过 **640 CSS 像素**也会显示紧凑的「图标 + 开关 + 箭头」,暂停和错误提示放在下方。更新插件后,重启 DSH 并刷新远程页面,才能加载新样式。
|
|
224
|
+
|
|
223
225
|
## 配置
|
|
224
226
|
|
|
225
227
|
在 **DSH 0.1.7 / 0.2** 中, 从主侧栏打开**插件**, 选择 **dsh-client-auto-continue**, 再选择设置类别。**设置 → 内置插件**是单独的组件状态列表, 不能在其中编辑配置。旧版 DSH 的入口仍为**设置 → 插件 → 插件配置**。
|
|
@@ -348,6 +350,8 @@ auto-continue:
|
|
|
348
350
|
|
|
349
351
|
暂停自动继续会停止自动续跑,但循环守卫仍独立运行。如需停止自动打断,请同时关闭**循环守卫**。仅含不可见字符的正文不计入可见消息复读;新的工具调用会重置正文重复计数,而同工具、同参数、同结果的工具死循环仍独立检测。
|
|
350
352
|
|
|
353
|
+
`MALFORMED_RESPONSE` 格式错误会允许重试,即使回显的工具参数包含 `auth`、`permission`、`quota` 等词。内置分类仍会跳过明确的 HTTP 401/403,冷却、退避和重试上限照常生效。实时错误和启动扫描均适用;[#75](https://github.com/HsiangNianian/dsh-auto-continue/issues/75) 中临时添加的 `malformed_response` / `non-whitespace character after json` 两条匹配已不再需要。
|
|
354
|
+
|
|
351
355
|
遇到确认可以安全续跑的 provider 专属错误时(先确认手动发送「继续」确实能恢复), 应添加足够具体、稳定的片段, 而不是全局关闭错误分类:
|
|
352
356
|
|
|
353
357
|
```yaml
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
## Mobile composer layout
|
|
2
|
+
|
|
3
|
+
The compact viewport fallback now covers screens up to **640 CSS pixels**, fixing the remaining 461–640px gap reported in [#72](https://github.com/HsiangNianian/dsh-auto-continue/issues/72)
|
|
4
|
+
|
|
5
|
+
DS-Bot can remove the composer's size-query container with `display: contents`, so container queries cannot compact the controls in that view. Extending the existing media query from 460px to 640px also covers the reporter's 584px viewport
|
|
6
|
+
|
|
7
|
+
The icon, native switch and mode-menu arrow stay available, with pause and legacy error messages below. At larger viewport widths, the existing container-based behavior still applies
|
|
8
|
+
|
|
9
|
+
### Before and after at 584px
|
|
10
|
+
|
|
11
|
+
In our Chromium reproduction, the controls shrink from **194px to 77px** and the message input grows from **230px to 347px**
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
These screenshots use the real plugin component, DSH 0.2.1-rc.2's native switch/menu and the relevant DS-Bot 0.2.5 / dsh-pocket 2.12.0 styles in a minimal composer fixture
|
|
18
|
+
|
|
19
|
+
## Upgrade
|
|
20
|
+
|
|
21
|
+
Let current work finish, stop DSH, then update the profile you use
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.17.3
|
|
25
|
+
dsh web
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile
|
|
29
|
+
|
|
30
|
+
Reload open remote/browser pages after restarting so they load the new CSS. If you added a local CSS workaround, remove it after updating before checking the new layout. The breakpoint is measured in CSS pixels, not physical screen pixels; the mode options are still behind the arrow
|
|
31
|
+
|
|
32
|
+
## Validation
|
|
33
|
+
|
|
34
|
+
- Typecheck, build, full regression suite and DSH runtime compatibility tests
|
|
35
|
+
- Chromium checks at 351, 440, 460, 461, 584, 640, 641, 768 and 1024px, including paused, failed-save, read-only, saving, English, light-theme and intact-container variants
|
|
36
|
+
- Native switch, mode selection and editable input interaction
|
|
37
|
+
- 584 × 740 CSS-pixel mobile emulation with DPR 3
|
|
38
|
+
|
|
39
|
+
The reporter's actual Android device and a complete DS-Bot/Pocket session have not been tested
|
|
40
|
+
|
|
41
|
+
Thanks @jasoneri for the detailed follow-up and breakpoint measurements
|
|
42
|
+
|
|
43
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.17.2...v0.17.3
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
## Malformed-response recovery
|
|
2
|
+
|
|
3
|
+
Fix [#75](https://github.com/HsiangNianian/dsh-auto-continue/issues/75): `MALFORMED_RESPONSE` errors could be mistaken for permanent failures when their echoed tool arguments contained words such as `auth`, `permission`, `api_key` or `quota exceeded`
|
|
4
|
+
|
|
5
|
+
The classifier now recognizes that error code before matching permanent-error text. Explicit HTTP 401/403 failures are still blocked by the built-in rules, and custom retryable patterns retain their existing priority. Cooldown, backoff and consecutive-attempt limits still apply
|
|
6
|
+
|
|
7
|
+
The shared fix covers live errors, startup scans of loaded sessions and stored-session scans
|
|
8
|
+
|
|
9
|
+
## Upgrade
|
|
10
|
+
|
|
11
|
+
Let current work finish, stop DSH, then update the profile you use
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.17.4
|
|
15
|
+
dsh web
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile
|
|
19
|
+
|
|
20
|
+
- Reload open browser tabs after restarting
|
|
21
|
+
- Remove the temporary `malformed_response` and `non-whitespace character after json` entries added for #75 from **Custom retryable errors**, then Save; keep any unrelated custom entries
|
|
22
|
+
- For an older conversation already stuck on the error, send `Continue` once after updating — startup recovery only scans failures within its configured window, 15 minutes by default
|
|
23
|
+
|
|
24
|
+
## Validation
|
|
25
|
+
|
|
26
|
+
- Regression tests fail on 0.17.3 and pass with the fix: 17 error cases across live, loaded-session startup and stored-session scan paths
|
|
27
|
+
- Explicit HTTP 401/403 checks, genuine permanent failures, the consecutive-attempt cap and custom-pattern precedence
|
|
28
|
+
- Typecheck, build, full test suite and DSH runtime compatibility tests
|
|
29
|
+
- DSH 0.2.2-rc.1 core services with a local model adapter: the reported `auth` / `permission` cases recover without the workaround; real 401 and context-limit cases remain blocked
|
|
30
|
+
|
|
31
|
+
The model adapter injects deterministic failures; no real provider API or the reporter's private conversation was used
|
|
32
|
+
|
|
33
|
+
Thanks @yuloop for the detailed report and reproduction
|
|
34
|
+
|
|
35
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.17.3...v0.17.4
|
|
@@ -38,3 +38,28 @@ Save; hiding it must not change `paused`. Restore both overrides to inherited
|
|
|
38
38
|
values. Verify that navigation preserves drafts, errors in hidden categories are
|
|
39
39
|
marked, and read-only settings cannot be edited. Also check light theme and a
|
|
40
40
|
393 × 852 viewport: the repository entry condenses and stays beside the introduction.
|
|
41
|
+
|
|
42
|
+
## Issue #72: 584px viewport fallback
|
|
43
|
+
|
|
44
|
+
Captured on 2026-11-02 in Chromium 153 at a **584 × 740 CSS-pixel** viewport,
|
|
45
|
+
cropped to 584 × 240 with device scale factor 1. These are browser reproduction
|
|
46
|
+
screenshots, not captures from the reporter's Android device or a running DS-Bot session.
|
|
47
|
+
|
|
48
|
+
| Version | Screenshot | Controls | Message input |
|
|
49
|
+
| --- | --- | --- | --- |
|
|
50
|
+
| 0.17.2 | [Before](issue-72-584-before.png) | 194px | 230px |
|
|
51
|
+
| 0.17.3 | [After](issue-72-584-after.png) | 77px | 347px |
|
|
52
|
+
|
|
53
|
+
The fixture renders the real `AutoContinueComposerToggle`, DSH 0.2.1-rc.2's
|
|
54
|
+
native switch/menu, and the composer rules from
|
|
55
|
+
[DS-Bot 0.2.5](https://github.com/Fei2411/DS-Bot/blob/v0.2.5/ds-bot/src/client/styles.js)
|
|
56
|
+
and [dsh-pocket 2.12.0](https://github.com/shaobeichen/dsh-pocket/blob/v2.12.0/client/mobile/mobile.css.ts).
|
|
57
|
+
The surrounding composer is a minimal HTML fixture with an editable input;
|
|
58
|
+
widths are measured from its DOM. Both captures use the same markup, text and
|
|
59
|
+
styles except for the plugin's viewport fallback changing from 460px to 640px.
|
|
60
|
+
|
|
61
|
+
Browser checks covered 351, 440, 460, 461, 584, 640, 641, 768 and 1024px,
|
|
62
|
+
including paused, failed-save, read-only, saving, English, light-theme and
|
|
63
|
+
intact-container variants. The compact controls keep their accessible names,
|
|
64
|
+
the switch and native mode menu remain interactive, and pause/error text wraps
|
|
65
|
+
below the controls through 640px.
|
|
Binary file
|
|
Binary file
|
package/lib/client.js
CHANGED
|
@@ -957,7 +957,7 @@ var css = `
|
|
|
957
957
|
.dshAcModeTriggerLabel { display: none; }
|
|
958
958
|
}
|
|
959
959
|
/* DS-Bot can remove the query container with display: contents. */
|
|
960
|
-
@media (max-width:
|
|
960
|
+
@media (max-width: 640px) {
|
|
961
961
|
.dshAcComposer { flex-direction: column; align-items: flex-start; width: min-content; }
|
|
962
962
|
.dshAcComposer > .dshAcComposerLabel { white-space: normal; }
|
|
963
963
|
.dshAcComposerCore { gap: 5px; }
|