dsh-client-auto-continue 0.15.0 → 0.17.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/CHANGELOG.md +56 -0
- package/README.md +37 -21
- package/README.zh.md +34 -21
- package/docs/releases/v0.16.0.md +75 -0
- package/docs/releases/v0.17.0.md +62 -0
- package/docs/screenshots/01-settings-section.png +0 -0
- package/docs/screenshots/01-settings-section.zh.png +0 -0
- package/docs/screenshots/02-settings-card.png +0 -0
- package/docs/screenshots/02-settings-card.zh.png +0 -0
- package/docs/screenshots/07-card-panels.png +0 -0
- package/docs/screenshots/07-card-panels.zh.png +0 -0
- package/docs/screenshots/08-composer-toggle.png +0 -0
- package/docs/screenshots/08-composer-toggle.zh.png +0 -0
- package/docs/screenshots/README.md +8 -8
- package/docs/third-party-notices.md +19 -0
- package/lib/client.js +474 -133
- package/lib/client.js.map +4 -4
- package/lib/index.js +7560 -117
- package/lib/types/client/auto-continue-icon.d.ts +1 -0
- package/lib/types/client/bridge.d.ts +3 -1
- package/lib/types/client/composer-toggle.d.ts +6 -4
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/locales.d.ts +11 -8
- package/lib/types/client/mode-menu.d.ts +19 -0
- package/lib/types/client/native-toast.d.ts +17 -0
- package/lib/types/client/settings-card.d.ts +6 -5
- package/lib/types/host/engine.d.ts +2 -0
- package/lib/types/host/settings-migration.d.ts +14 -0
- package/lib/types/index.d.ts +14 -8
- package/lib/types/shared/core.d.ts +13 -1
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +24 -14
- package/src/client/auto-continue-icon.tsx +35 -0
- package/src/client/bridge.ts +35 -4
- package/src/client/composer-toggle.tsx +66 -14
- package/src/client/index.ts +4 -2
- package/src/client/locales.ts +32 -26
- package/src/client/mode-menu.tsx +110 -0
- package/src/client/native-toast.tsx +44 -0
- package/src/client/settings-card.tsx +156 -41
- package/src/client/styles.ts +61 -37
- package/src/host/engine.ts +54 -12
- package/src/host/settings-migration.ts +117 -0
- package/src/index.ts +63 -12
- package/src/shared/core.ts +23 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.17.0](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.17.0) — 2026-10-23
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Restore the compact auto-continue switch beside the message input, now with a refresh icon and a native mode menu that shows the current mode
|
|
8
|
+
- Show one delayed toast when the host stays unavailable for three seconds, without flashing on a normal page load
|
|
9
|
+
- Localize the plugin title and description through `locale` metadata
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Collapse the label to its icon and the mode menu to its arrow with the same composer container query as the native permission picker, keeping the switch and menu on one line on phones
|
|
14
|
+
- Report session-mode save failures with the host's toast instead of inline red composer text; saving and disconnected states now rely on the disabled controls and their tooltip
|
|
15
|
+
- Keep the switch and mode menu disabled while saving, disconnected or read-only, with keyboard access to the mode menu
|
|
16
|
+
- Keep the switch scoped to the current conversation, with Follow default selected when switching back on
|
|
17
|
+
- Move the settings fields, switches and default-mode selector onto DSH's native `SettingsForm`, `SettingsValueField`, `Switch` and `SegmentedControl` primitives, keeping the legacy card for older hosts
|
|
18
|
+
- Remove the charcoal header banner; keep the GitHub invitation as a lightweight link row
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Avoid the composer's invisible select styles leaking onto the settings card's **Default session mode** select, which made clicks anywhere open a full-screen selector until a reload
|
|
23
|
+
|
|
24
|
+
## [0.16.0](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.16.0) — 2026-10-23
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Choose **Off**, **Recovery only** or **Autonomous loop** for each conversation from the control beside the message input, or use **Follow default** to inherit the profile setting ([#67](https://github.com/HsiangNianian/dsh-auto-continue/issues/67), [#68](https://github.com/HsiangNianian/dsh-auto-continue/pull/68))
|
|
29
|
+
- Save conversation modes on the host so they survive restarts and sync across tabs, with English and Chinese labels
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- The composer control now changes only the current conversation, while **Enable auto-continue globally** and **Default session mode** live in the plugin settings
|
|
34
|
+
- Existing global pause and autonomous-loop preferences remain in effect for conversations following the default
|
|
35
|
+
- Switching a conversation Off cancels pending automatic sends and excludes it from the loop guard, while leaving any current turn running
|
|
36
|
+
- Switching from Autonomous loop to Recovery only cancels pending autonomous followups, and re-enabling a mode does not revive cancelled sends
|
|
37
|
+
- **Resume now** still requests one manual followup while paused or Off without changing the saved mode
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
- Avoid duplicate settings namespaces on hosts exposing both legacy and profile settings APIs, addressing the `settings/conflict` save failure reported in [#64](https://github.com/HsiangNianian/dsh-auto-continue/issues/64) ([#65](https://github.com/HsiangNianian/dsh-auto-continue/pull/65))
|
|
42
|
+
- Import old auto-continue settings from `settings-legacy.yaml` once per profile, keeping explicit profile values and concurrent edits, leaving the source file untouched and preventing old values from returning after a full settings reset
|
|
43
|
+
- Hold automatic recovery and the loop guard while a required settings import is pending or fails, without waiting for an editor when there is nothing to import
|
|
44
|
+
- Keep legacy YAML source text out of parser warnings and errors, and retain the bundled parser's ISC license
|
|
45
|
+
|
|
46
|
+
### Maintenance
|
|
47
|
+
|
|
48
|
+
- Align the DSH development packages on `0.1.2-rc.1`, Cordis on `4.0.2` and Schemastery on `3.18.2`, removing the mixed dependency versions left by a partial update ([#66](https://github.com/HsiangNianian/dsh-auto-continue/pull/66))
|
|
49
|
+
- Add regression coverage for conversation modes, delayed sends, settings persistence and migration failures
|
|
50
|
+
- Publish GitHub release bodies from checked-in notes and fail before publishing if the notes file is missing or empty
|
|
51
|
+
|
|
52
|
+
[Upgrade instructions, validation and known limits](docs/releases/v0.16.0.md) · [Full changes](https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.15.0...v0.16.0)
|
|
53
|
+
|
|
54
|
+
## Earlier releases
|
|
55
|
+
|
|
56
|
+
Release notes for v0.15.0 and earlier are available on [GitHub Releases](https://github.com/HsiangNianian/dsh-auto-continue/releases)
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</p>
|
|
27
27
|
|
|
28
28
|
<p align="center">
|
|
29
|
-
<b>English</b> · <a href="README.zh.md">中文</a>
|
|
29
|
+
<b>English</b> · <a href="README.zh.md">中文</a> · <a href="CHANGELOG.md">Changelog</a>
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
32
|
---
|
|
@@ -44,15 +44,15 @@ Automatic recovery for [DeepSeek Harness](https://github.com/deepseek-ai/deepsee
|
|
|
44
44
|
|
|
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
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
|
|
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, 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
|
|
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")
|
|
52
52
|
- **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)
|
|
53
53
|
- **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.
|
|
54
|
-
- **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
|
|
55
|
-
- **Pause** — turning off **
|
|
54
|
+
- **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, a session pause, manual Stop or changing that session to Recovery only / Off stops the loop. The profile default only affects sessions using Follow default. Its prompt is separate from the loop guard’s prompt (`continueTextLoop`, default `Continue`).
|
|
55
|
+
- **Pause** — turning off **Enable auto-continue globally** 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
|
|
56
56
|
- **Notification buttons** — notifications carry **Resume now** (send immediately, ignoring cooldown, the consecutive cap and any pause) and **Pause this session 1h** actions
|
|
57
57
|
- **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
|
|
58
58
|
- **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
|
|
@@ -84,7 +84,7 @@ Storage scanning runs separately from live-session recovery. Each storage read h
|
|
|
84
84
|
|
|
85
85
|
Startup recovery isolates failures per session. If history cannot be read or contains invalid events, that session is skipped for the current startup scan and an error is logged; other sessions can still recover, without losing a recovery slot. Invalid entries are not silently removed, since they could hide a manual stop or a newer turn. Valid empty histories and a registry that is still loading remain retryable within the scan window. Reloading a repaired session as a new session object also makes it eligible for scanning again. See [#58](https://github.com/HsiangNianian/dsh-auto-continue/issues/58).
|
|
86
86
|
|
|
87
|
-
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.
|
|
87
|
+
The browser provides the settings card and the composer switch and mode menu, 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.
|
|
88
88
|
|
|
89
89
|
### Recovery workflow
|
|
90
90
|
|
|
@@ -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.
|
|
104
|
-
| **0.2.1-alpha.1** | **0.
|
|
103
|
+
| **0.2.1-rc.2** | **0.17.0 verified** | **Plugins → dsh-client-auto-continue** |
|
|
104
|
+
| **0.2.1-alpha.1** | **0.17.0 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** |
|
|
@@ -173,6 +173,10 @@ A manual loader entry can start the engine without registering a bundle in the *
|
|
|
173
173
|
|
|
174
174
|
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.
|
|
175
175
|
|
|
176
|
+
For hosts that expose both modern profile config and the legacy settings API ([#64](https://github.com/HsiangNianian/dsh-auto-continue/issues/64)), the plugin uses profile config without registering a second settings namespace. It imports the `auto-continue` section of `$DSH_HOME/settings-legacy.yaml` once per profile, including the saved pause and custom prompts. Existing profile values take precedence. The original file and other plugins' sections stay untouched; completion is recorded separately from editable settings so even a whole-config reset stays reset after restarting.
|
|
177
|
+
|
|
178
|
+
Recovery and the loop guard wait while this import is pending. If the legacy file cannot be read or validated, or the profile cannot be saved, the host logs an import error and keeps both held. Repair the file or profile permissions and restart the host. Hosts that only support the legacy API continue using their existing settings store.
|
|
179
|
+
|
|
176
180
|
### Verify & uninstall
|
|
177
181
|
|
|
178
182
|
```bash
|
|
@@ -197,15 +201,27 @@ dsh web
|
|
|
197
201
|
|
|
198
202
|
---
|
|
199
203
|
|
|
200
|
-
##
|
|
204
|
+
## Session modes
|
|
205
|
+
|
|
206
|
+
The **Auto-continue** switch beside the input applies only to the current conversation and saves immediately
|
|
207
|
+
|
|
208
|
+
Turning it off selects Off, and turning it back on selects Follow default
|
|
209
|
+
Use the mode menu next to the switch to choose a mode:
|
|
210
|
+
|
|
211
|
+
| Mode | Behavior |
|
|
212
|
+
| --- | --- |
|
|
213
|
+
| Follow default | Use **Default session mode** from the plugin settings, initially Recovery only |
|
|
214
|
+
| Off | No automatic followups or loop-guard interruptions in this conversation |
|
|
215
|
+
| Recovery only | Recover eligible failures and silent turns; leave normal completions alone |
|
|
216
|
+
| Autonomous loop | Also continue normally completed turns, using the loop prompt |
|
|
201
217
|
|
|
202
|
-
|
|
218
|
+
For example, keep A looping, B recovering failures and C off. Each conversation's choice is saved in the host's profile settings (`sessionModes`), shared across tabs and retained after a host restart. Choosing Follow default explicitly removes that conversation's independent policy, including an inherited override.
|
|
203
219
|
|
|
204
|
-
|
|
220
|
+
**Enable auto-continue globally** in **General** remains the master control. Turning it off pauses all automatic followups without replacing individual choices; turning it back on restores those choices. Switching a conversation off cancels pending grace, cooldown and loop-guard retries. It leaves any current turn running. Switching Loop to Recovery only cancels pending autonomous followups. Re-enabling does not resurrect cancelled sends.
|
|
205
221
|
|
|
206
|
-
**
|
|
222
|
+
The notification's **Pause this session 1h** still temporarily suspends one conversation. **Resume now** requests a single send even while paused or Off, without changing the stored mode. The global loop-guard setting remains independent of global pause, but a conversation set to Off is excluded from the guard too.
|
|
207
223
|
|
|
208
|
-
To hide the
|
|
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.
|
|
209
225
|
|
|
210
226
|
## Configuration
|
|
211
227
|
|
|
@@ -217,7 +233,7 @@ Use **General**, **Retry strategy**, **Startup recovery**, **Continue text**, **
|
|
|
217
233
|
|
|
218
234
|
**Recent recovery attempts** groups the last 20 recovery prompts across the host by session, showing each session's count in that window, latest cause, time and consecutive count at the last send. It works with browser notifications off. Causes distinguish silent output, output limits, request errors, restart interruptions, loop-guard recovery and manual resume. Normal autonomous continuations are excluded. These are sent prompts, not proof of completion or a model-health score; repeated recovery is a reason to inspect the conversation and consider a handoff. The history contains no message text and resets when the plugin restarts.
|
|
219
235
|
|
|
220
|
-
The
|
|
236
|
+
The settings card starts with a compact GitHub invitation row, then the category navigation; its fields, switches and default-mode selector use DSH's native settings primitives. The plugin manager above already shows the localized plugin name, version and enabled state. Edits take effect when you click **Save**.
|
|
221
237
|
|
|
222
238
|
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.
|
|
223
239
|
|
|
@@ -282,30 +298,30 @@ When migrating from the legacy settings file to DSH 0.1.7 / 0.2, move these valu
|
|
|
282
298
|
|
|
283
299
|

|
|
284
300
|
|
|
285
|
-
- Edits are **staged** — nothing reaches the disk until you hit **Save**; the
|
|
301
|
+
- Edits are **staged** — nothing reaches the disk until you hit **Save**; leaving the page drops unsaved drafts
|
|
286
302
|
- 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
|
|
287
303
|
- An overridden field shows a **Reset to default** button that removes the override and restores the inherited value (normally the built-in default)
|
|
288
|
-
- Boolean fields use native switches and are staged until Save. **Reset to default** removes the override and restores the inherited value. **
|
|
304
|
+
- Boolean fields use native switches and are staged until Save. **Reset to default** removes the override and restores the inherited value. **Enable auto-continue globally** is on when recovery is enabled (`paused: false`)
|
|
289
305
|
- Invalid drafts (non-numbers, values below the minimum) block the save and mark their category, even when another category is selected
|
|
290
306
|
- In a read-only deployment the card shows the stored values but disables editing while keeping category navigation available
|
|
291
307
|
- Changes apply immediately after Save and persist in the active profile config (or `~/.dsh/settings.yaml` on older hosts)
|
|
292
308
|
|
|
293
309
|
<details>
|
|
294
|
-
<summary>Live status and the Save
|
|
310
|
+
<summary>Live status and the native Save button</summary>
|
|
295
311
|
|
|
296
|
-

|
|
297
313
|
|
|
298
314
|
</details>
|
|
299
315
|
|
|
300
316
|
| Field | Default | Description |
|
|
301
317
|
| --- | --- | --- |
|
|
302
318
|
| Pause auto-continue | `off` | Global pause: no live or scan auto-send fires, queued pending sends are cancelled |
|
|
303
|
-
| Show auto-continue switch in the composer | `on` | Show the
|
|
319
|
+
| Show auto-continue switch in the composer | `on` | Show the session switch and mode menu (`showComposerToggle`); hiding them does not change modes |
|
|
304
320
|
| Continue text | `Continue` | Text automatically sent after an interruption |
|
|
305
321
|
| Continue text (max tokens) | `Continue` | Text sent when the output token ceiling is reached (same placeholders) |
|
|
306
322
|
| Resume silent turns | `on` | Resume a turn that ended normally with reasoning only (no text, no tool call); does not reset the consecutive count |
|
|
307
323
|
| Continue text (silent turn) | `Continue. Your previous turn ended with internal reasoning only, ...` | Text sent to resume a silent turn (same placeholders) |
|
|
308
|
-
|
|
|
324
|
+
| Default session mode | Recovery only | For sessions following the default; stored as `resumeCompletedTurns` (`false` = Recovery only, `true` = Autonomous loop) |
|
|
309
325
|
| Continue text (autonomous loop) | `Continue` | Text sent on each autonomous-loop resume (same placeholders) |
|
|
310
326
|
| Continue text (harness restart) | `Continue. The harness was restarted while your previous turn was still running; …` | Text sent when the boot scan resumes a session that a harness restart closed mid-turn (same placeholders) |
|
|
311
327
|
| Idempotency guard | `on` | Inspect the last tool call before resuming and steer the model (see What It Does) |
|
|
@@ -355,7 +371,7 @@ The recovery engine runs inside the DSH host. The browser provides the configura
|
|
|
355
371
|
- The engine reads session events and history through DSH's services. The browser talks to that host; the plugin adds no third-party service or credential store
|
|
356
372
|
- 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
|
|
357
373
|
- 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
|
|
358
|
-
- Retry counters, cooldown timestamps,
|
|
374
|
+
- Retry counters, cooldown timestamps, timed notification pauses and stats stay in host process memory and reset when the engine restarts. Session mode choices (`sessionModes`) and global `paused` are saved with your other configuration
|
|
359
375
|
- 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.
|
|
360
376
|
|
|
361
377
|
---
|
|
@@ -379,7 +395,7 @@ npm run test:runtime
|
|
|
379
395
|
|
|
380
396
|
`npm test` covers recovery, autonomous-loop limits and toggles, child-session exclusion, manual resume during pauses, startup scanning and malformed-session isolation, queue ordering, statistics, localization, settings UI lifecycle and edits made during pending saves. `npm run test:runtime` uses published DSH **0.1.7-rc.2**, **0.2.0-rc.1** and **0.2.1-alpha.1** Settings, Loader and HTTP services. It also runs the actual 0.2 profile compatibility gate and checks client activation when one settings provider is absent. Startup recovery tests inject session read failures into real **0.2.0-rc.2** and **0.2.1-alpha.1** Session/Cordis/HTTP components and verify that healthy sessions still recover. These controlled faults do not imply that normal DSH loading produces malformed logs. The runtime harness controls agent events; it does not send requests to a model provider.
|
|
381
397
|
|
|
382
|
-
The rc.2 check also loads the published client settings service and verifies card save/reset,
|
|
398
|
+
The rc.2 check also loads the published client settings service and verifies card save/reset, per-session composer choices, concurrent saves, disk reloads, locale synchronization and a fresh Host read, using snapshots without the removed `mode` field.
|
|
383
399
|
|
|
384
400
|
The rc.2 restart test uses real agent, query, and JSONL persistence services: it kills a host mid-turn, starts a fresh host without opening the conversation, and checks one recovery with the recorded model and matching prompt variables. The model adapter is deterministic; no external model requests are made.
|
|
385
401
|
|
package/README.zh.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</p>
|
|
27
27
|
|
|
28
28
|
<p align="center">
|
|
29
|
-
<a href="README.md">English</a> · <b>中文</b>
|
|
29
|
+
<a href="README.md">English</a> · <b>中文</b> · <a href="CHANGELOG.md">更新日志</a>
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
32
|
---
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
|
|
45
45
|
**智能恢复**(全部可配置):
|
|
46
46
|
|
|
47
|
-
-
|
|
47
|
+
- **会话模式** — 在输入框旁用开关控制当前会话的自动继续,旁边显示当前模式的菜单可选择跟随默认、仅故障恢复或自主循环。选择保存在宿主配置里,重启后保留,并同步到其他标签页。隐藏控件不会改变模式
|
|
48
48
|
- **错误分类** — 临时性错误(网络 / 超时 / 5xx / 429 等)自动续跑; 永久性错误跳过并通知, 因为重试也没用。判定为永久性的条件: HTTP 状态码 401/403, 或 code/message 命中认证、凭据/API Key、余额/配额、模型不存在、上下文长度/超限等关键词。provider 专属例外可由用户显式填写普通文本匹配; 关闭分类后则全部自动继续
|
|
49
49
|
- **自适应退避** — 连续失败时等待时间递增(冷却 × 系数: 20s → 40s → 80s…), 有上限, 不再对故障上游狂轰滥炸
|
|
50
50
|
- **中英文本地化** — 设置卡片、内置续跑 / 护栏 / 循环文案以及浏览器通知都跟随 DSH 当前界面语言(初始值来自浏览器语言)。只支持 `en` 和 `zh`, 其他语言回落中文; 切换语言只会替换内置默认值, 不会覆盖用户自定义文本
|
|
51
51
|
- **模板化继续文本** — `continueText` 支持 `{code}` `{message}` `{status}` `{tool}` `{turn}` `{errorCount}` `{elapsed}` 占位符, 续跑消息可携带失败上下文(如「继续 (git push 失败: UPSTREAM)」); 达到 `max-tokens` 时使用**另一套模板**(如「继续输出, 不要重复已生成的内容」)
|
|
52
52
|
- **幂等护栏** — 续跑前检查上一步工具调用: 结果未确认(回合在工具执行中途夭折, 如 `git push` 可能已经推上去了)时, 续跑消息会提示模型先确认状态、不要重复执行; 工具已确认成功时说明已完成、请勿重复; 工具失败则不加护栏(重试本来就是目的)。两段护栏文本都可配置(支持 `{tool}` / `{result}` 占位符)
|
|
53
53
|
- **无输出回合续跑** — 已观察到模型步骤或推理回复,但回合正常结束且没有可见输出时自动恢复。没有模型活动的空回合不会触发;文本、工具调用、图片、扩展块和已显示的流式内容均算可见输出。未观察到开始的回合不会被猜测为静默。启动后也能恢复显式的 `no-visible-output` 标记。关闭开关会取消排队中的静默续跑;即使开关关闭,静默回合也不会清零重试上限。
|
|
54
|
-
- **自主循环** — 默认关闭(`resumeCompletedTurns`)。开启后,正常完成的回合经过宽限期便会续跑,不受恢复冷却和次数上限约束。仅有推理的回合和显式 `no-visible-output`
|
|
55
|
-
- **暂停** —
|
|
54
|
+
- **自主循环** — 默认关闭(`resumeCompletedTurns`)。开启后,正常完成的回合经过宽限期便会续跑,不受恢复冷却和次数上限约束。仅有推理的回合和显式 `no-visible-output` 仍消耗重试预算并遵守退避。全局暂停、会话暂停、手动停止或将该会话改为仅故障恢复 / 关闭都会停止循环。默认模式只影响选择了「跟随默认」的会话。自主循环使用单独的提示文本 `continueTextLoop`(默认 `继续`),与循环守卫的提示文本不同。
|
|
55
|
+
- **暂停** — 在**常规**中关闭**全局启用自动继续**并保存,会停止实时事件与启动扫描触发的自动发送; 会话级暂停(如通过通知按钮)只挂起单个会话, 到期自动恢复。即使两种暂停同时生效,通知里的 **立即续跑** 仍可发送一次。发送后保留暂停状态,后续自动恢复和自主循环仍受暂停约束
|
|
56
56
|
- **通知按钮** — 通知带 **立即续跑**(无视冷却、连续上限与暂停, 马上发送)和 **暂停该会话 1 小时** 按钮
|
|
57
57
|
- **循环守卫** — 连**运行中的回合**也盯着, 四个信号都会触发守卫(取消当前回合并用可配置的循环提示文本重启, 「停止重复, 换一种方式」): 模型**连续输出完全相同的消息**(不限长度, 如 "Let me test variants of the regex…" 连续 7 遍)、单条流式 assistant 消息内部出现连续近似重复段落、短时间内连续多条短句且期间无工具调用(典型的「Let me read…」空转)、或同一工具被连续反复调用且**参数与结果都相同**(参数或结果有变化视为有进展)。取消带有内部来源标记, 绝不会与用户手动停止混淆——只有守卫发起的取消才会重启。阈值、时间窗与提示文本都可配置
|
|
58
58
|
- **统计面板** — 设置卡片展示今日自动继续次数、恢复成功、继续后失败、永久性跳过、达上限停止、循环打断, 按错误码统计, 可一键清零
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
|
|
85
85
|
启动恢复按会话隔离异常。历史无法读取或含有无效事件时,只在本次启动扫描中跳过该会话并记录错误,其他会话仍可恢复,也不会被它占用恢复名额。插件不会静默删除损坏记录,以免漏掉人工停止或更新的回合。合法的空历史、尚未就绪的会话注册表仍会在扫描窗口内重试;修复后的会话若重新加载为新的 Session 对象,也可再次参与扫描。详见 [#58](https://github.com/HsiangNianian/dsh-auto-continue/issues/58)。
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
浏览器负责设置卡片、会话模式选择和一条状态桥(展示通知, 带「立即续跑 / 暂停该会话 1 小时」按钮并把动作回传给宿主引擎; 驱动卡片里的统计与暂停面板)。
|
|
88
88
|
|
|
89
89
|
### 恢复流程
|
|
90
90
|
|
|
@@ -100,8 +100,8 @@ DSH 插件安装进 **profile**(`dsh web` 对应 `web` profile)。下面的命
|
|
|
100
100
|
|
|
101
101
|
| DSH 内核 | 插件版本 | 配置入口 |
|
|
102
102
|
| --- | --- | --- |
|
|
103
|
-
| **0.2.1-rc.2** | **已验证 0.
|
|
104
|
-
| **0.2.1-alpha.1** | **已验证 0.
|
|
103
|
+
| **0.2.1-rc.2** | **已验证 0.17.0** | **插件 → dsh-client-auto-continue** |
|
|
104
|
+
| **0.2.1-alpha.1** | **已验证 0.17.0** | **插件 → 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 的宿主 | 保留旧版设置界面兼容 | **设置 → 插件 → 插件配置** |
|
|
@@ -173,6 +173,10 @@ dsh web
|
|
|
173
173
|
|
|
174
174
|
**内置插件**里显示的 `include:auto-continue` 是正常的 Loader 前缀, 单凭这个名字不能判断为旧安装或重复引擎。
|
|
175
175
|
|
|
176
|
+
对于同时提供新版 profile 配置和旧版设置 API 的宿主([#64](https://github.com/HsiangNianian/dsh-auto-continue/issues/64)),插件使用 profile 配置,不再重复注册同名设置。每个 profile 会从 `$DSH_HOME/settings-legacy.yaml` 的 `auto-continue` 段落迁移一次旧值,包括暂停状态和自定义提示词;已有的 profile 配置优先。原文件及其他插件的配置保持不变,迁移完成记录独立于可编辑的设置,即使重置全部设置,也不会在重启时再次被旧值覆盖。
|
|
177
|
+
|
|
178
|
+
迁移期间,自动恢复和循环守卫暂不执行。如果旧文件无法读取、参数校验失败或 profile 无法保存,宿主会记录迁移错误,并继续保持两者暂停。修复文件或 profile 权限后重启宿主即可重试。只支持旧版 API 的宿主继续使用原来的设置存储。
|
|
179
|
+
|
|
176
180
|
### 验证与卸载
|
|
177
181
|
|
|
178
182
|
```bash
|
|
@@ -197,15 +201,24 @@ dsh web
|
|
|
197
201
|
|
|
198
202
|
---
|
|
199
203
|
|
|
200
|
-
##
|
|
204
|
+
## 会话模式
|
|
205
|
+
|
|
206
|
+
输入框旁的**自动继续**开关只影响当前会话,修改后立即保存。关闭开关会选择「关闭」,重新开启会选择「跟随默认」;旁边的模式菜单可切换模式:
|
|
207
|
+
|
|
208
|
+
| 模式 | 行为 |
|
|
209
|
+
| --- | --- |
|
|
210
|
+
| 跟随默认 | 使用设置页中的「默认会话模式」,初始为仅故障恢复 |
|
|
211
|
+
| 关闭 | 不自动发送继续,也不通过循环守卫打断该会话 |
|
|
212
|
+
| 仅故障恢复 | 恢复符合条件的故障和无输出回合,正常完成后不接力 |
|
|
213
|
+
| 自主循环 | 正常完成后也自动续跑,使用自主循环提示文本 |
|
|
201
214
|
|
|
202
|
-
|
|
215
|
+
例如,A 自主循环,B 仅故障恢复,C 关闭,三者互不影响。各会话的选择保存到宿主 profile 配置(`sessionModes`),跨标签页同步,宿主重启后保留。选择「跟随默认」会显式覆盖原有会话设置,包括继承来的会话设置。
|
|
203
216
|
|
|
204
|
-
|
|
217
|
+
**常规 → 全局启用自动继续**仍是总开关。关闭并保存后,所有会话停止自动续发,但各会话的选择保持不变;重新启用后继续按各自模式工作。关闭某个会话会取消宽限期、冷却期和循环守卫重启的待发送任务,正在运行的回合保持运行。从自主循环切到仅故障恢复也会取消待发送的自主续跑。重新启用不会恢复已经取消的发送。
|
|
205
218
|
|
|
206
|
-
|
|
219
|
+
通知中的**暂停该会话 1 小时**仍然临时暂停一个会话。**立即续跑**可在暂停或关闭状态下发送一次,不改变保存的模式。全局循环守卫仍独立于全局暂停,但设为关闭的会话也会退出循环守卫。
|
|
207
220
|
|
|
208
|
-
|
|
221
|
+
想隐藏控件时,进入**插件 → dsh-client-auto-continue → 常规**,关闭**在会话区显示自动继续开关**,再点**保存**。这只改变显示(`showComposerToggle`,默认 `true`)。没有会话工具栏插槽的旧宿主仍可使用设置卡片。保存失败时通过 DSH 的 toast 通知提示,不再在输入框内显示红字;宿主持续不可用超过 3 秒也会提示一次,正常加载不会闪现。宿主桥接断开或设置不可写时,开关和模式菜单不可操作。输入框这一行变窄时,和「完全权限」等原生选择器用同一套容器查询:「自动继续」文字收成图标、模式菜单收成箭头,让开关和菜单保持在同一行。
|
|
209
222
|
|
|
210
223
|
## 配置
|
|
211
224
|
|
|
@@ -217,7 +230,7 @@ dsh web
|
|
|
217
230
|
|
|
218
231
|
**近期恢复尝试**按会话汇总宿主最近 20 次恢复提示,展示窗口内次数、最近原因、时间与最近发送时的连续次数,关闭浏览器通知也可查看。原因区分无可见输出、输出上限、请求错误、宿主重启中断、循环守卫恢复与手动续跑,不计正常自主续跑。记录只说明提示已发送,不代表任务完成,也不评估模型健康程度;反复恢复时应检查会话并考虑交接。历史不包含消息正文,重启插件后清空。
|
|
219
232
|
|
|
220
|
-
|
|
233
|
+
设置卡片先显示一行紧凑的 GitHub 邀请入口,然后是分类导航;字段、开关和默认模式选择都使用 DSH 原生设置组件。插件管理页顶部已经显示本地化的插件名称、版本和启用状态。修改配置后点**保存**才生效。
|
|
221
234
|
|
|
222
235
|
开启**浏览器通知**后,每次保存成功都会从当前操作的标签页发出一条确认。关闭通知时,如果浏览器已授权,会发最后一条关闭确认,之后保存其他配置不再通知。放弃修改、无效配置和保存失败不会发送成功通知。如果浏览器拦截通知,设置页仍会确认保存结果并说明权限问题。
|
|
223
236
|
|
|
@@ -282,30 +295,30 @@ auto-continue:
|
|
|
282
295
|
|
|
283
296
|

|
|
284
297
|
|
|
285
|
-
- 修改是**暂存式**的——点「保存」之前不会写入磁盘;
|
|
298
|
+
- 修改是**暂存式**的——点「保存」之前不会写入磁盘; 离开页面会丢弃未保存的草稿
|
|
286
299
|
- 保存期间继续修改或重置字段时,新的草稿会保留在卡片中;等待当前保存结束后,再点一次「保存」即可应用
|
|
287
300
|
- 有覆盖项的字段提供「恢复默认」按钮(移除覆盖项,恢复继承值,通常为内置默认值)
|
|
288
|
-
-
|
|
301
|
+
- 布尔选项使用原生开关,点保存后生效;「恢复默认」会移除覆盖项并恢复继承值。**全局启用自动继续**开启表示允许恢复(`paused: false`)
|
|
289
302
|
- 非法输入(非数字、小于最小值)会阻止保存,并标记所在分类,切换分类后仍能找到问题
|
|
290
303
|
- 只读部署中卡片只显示已存值, 编辑控件禁用,仍可切换分类查看
|
|
291
304
|
- 保存后立即生效,持久化在当前 profile 配置中(旧版宿主使用 `~/.dsh/settings.yaml`)
|
|
292
305
|
|
|
293
306
|
<details>
|
|
294
|
-
<summary
|
|
307
|
+
<summary>现场状态与原生保存按钮</summary>
|
|
295
308
|
|
|
296
|
-

|
|
297
310
|
|
|
298
311
|
</details>
|
|
299
312
|
|
|
300
313
|
| 字段 | 默认 | 说明 |
|
|
301
314
|
| --- | --- | --- |
|
|
302
315
|
| 暂停自动继续 | 关 | 全局暂停: 实时与扫描都不再自动发送, 已排队的待发送也会取消 |
|
|
303
|
-
| 在会话区显示自动继续开关 | 开 |
|
|
316
|
+
| 在会话区显示自动继续开关 | 开 | 显示会话开关和模式菜单(`showComposerToggle`);隐藏不会改变模式 |
|
|
304
317
|
| 继续文本 | `继续` | 中断后自动发送的消息内容 |
|
|
305
318
|
| 超限时的继续文本 | `继续` | 达到输出 token 上限时自动发送的文本(支持相同占位符) |
|
|
306
319
|
| 续跑无输出回合 | 开 | 回合正常结束但只有推理(没有文本、没有工具调用)时自动续跑; 不清零连续次数 |
|
|
307
320
|
| 无输出回合的继续文本 | `继续。你上一轮只输出了内部推理, ...` | 续跑无输出回合时发送的文本(支持相同占位符) |
|
|
308
|
-
|
|
|
321
|
+
| 默认会话模式 | 仅故障恢复 | 用于跟随默认的会话;沿用 `resumeCompletedTurns` 配置(`false` 为仅故障恢复,`true` 为自主循环) |
|
|
309
322
|
| 自主循环的继续文本 | `继续` | 自主循环续跑时发送的文本(支持相同占位符) |
|
|
310
323
|
| 宿主重启后恢复的继续文本 | `继续。宿主在你上一轮运行期间重启了; …` | 启动扫描恢复被重启中断的会话时发送的文本(支持相同占位符) |
|
|
311
324
|
| 幂等护栏 | 开 | 续跑前检查上一步工具调用并给出指引(见「它做什么」) |
|
|
@@ -355,7 +368,7 @@ auto-continue:
|
|
|
355
368
|
- 引擎通过 DSH 服务读取会话事件和历史, 浏览器与该宿主通信; 插件不新增第三方服务或凭据存储
|
|
356
369
|
- 恢复时通过 `agent.followup` 发送你配置的文本。循环守卫可先通过 `agent.cancel` 停止空转回合, 再发送恢复提示; 续跑的 Agent 沿用会话已有的工具和权限
|
|
357
370
|
- 保存配置使用 DSH 的设置 API: DSH 0.1.7 / 0.2 写入当前 profile patch, 旧版宿主写入 `~/.dsh/settings.yaml`
|
|
358
|
-
-
|
|
371
|
+
- 重试计数、冷却时间戳、通知里的限时暂停与统计保存在宿主进程内存中,引擎重启后重置;会话模式(`sessionModes`)和全局 `paused` 随其他配置持久化保存
|
|
359
372
|
- 浏览器通知是可选开启的(`notify` 设置)。开启并保存时可能请求浏览器权限;被拒绝后不再请求,关闭此选项也不会请求权限。
|
|
360
373
|
|
|
361
374
|
---
|
|
@@ -379,7 +392,7 @@ npm run test:runtime
|
|
|
379
392
|
|
|
380
393
|
`npm test` 覆盖错误恢复、自主循环上限与开关、子会话排除、暂停期间手动续跑、启动扫描及畸形会话隔离、队列顺序、统计、本地化、设置界面生命周期及保存期间继续编辑的情况。`npm run test:runtime` 使用已发布的 DSH **0.1.7-rc.2**、**0.2.0-rc.1** 和 **0.2.1-alpha.1** Settings、Loader、HTTP 组件,并运行真实的 0.2 profile 兼容检查及缺少其中一种设置服务时的客户端激活测试。启动恢复测试在真实的 **0.2.0-rc.2** 和 **0.2.1-alpha.1** Session、Cordis、HTTP 组件中注入会话读取故障,验证健康会话仍能恢复;这不代表正常的 DSH 加载流程会产生损坏日志。运行时测试使用受控的 agent 事件,不会向模型服务发送请求。
|
|
381
394
|
|
|
382
|
-
rc.2 测试还加载已发布的客户端设置服务,使用不再包含 `mode`
|
|
395
|
+
rc.2 测试还加载已发布的客户端设置服务,使用不再包含 `mode` 的真实快照,验证卡片保存/重置、会话模式、并发保存、磁盘重新加载、语言同步与重新读取宿主配置。
|
|
383
396
|
|
|
384
397
|
rc.2 重启测试使用真实的 agent、query 与 JSONL 持久化服务:在回合中强制结束宿主,启动新宿主且不打开会话,验证仅恢复一次,并沿用已记录的模型与对应提示变量。模型适配器使用确定性响应,不发送外部模型请求。
|
|
385
398
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
You can now leave one conversation looping, keep another on recovery only and switch a third off
|
|
2
|
+
|
|
3
|
+
This release also fixes the settings namespace collision from #64, brings old settings into the active profile and includes the dependency updates from #66
|
|
4
|
+
|
|
5
|
+
## A mode for each conversation
|
|
6
|
+
|
|
7
|
+
The control beside the message input now applies to that conversation ([#67](https://github.com/HsiangNianian/dsh-auto-continue/issues/67), [#68](https://github.com/HsiangNianian/dsh-auto-continue/pull/68))
|
|
8
|
+
|
|
9
|
+
| Mode | What it does |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| Follow default | Uses the profile's default session mode |
|
|
12
|
+
| Off | Stops automatic followups and excludes this conversation from the loop guard |
|
|
13
|
+
| Recovery only | Recovers eligible failures and silent turns, leaving normal completions alone |
|
|
14
|
+
| Autonomous loop | Also continues after normally completed turns |
|
|
15
|
+
|
|
16
|
+
- Choices are saved on the host, survive restarts and sync across tabs
|
|
17
|
+
- **Enable auto-continue globally** remains in the plugin settings and pauses automatic followups without replacing individual choices
|
|
18
|
+
- **Default session mode** controls conversations using Follow default, with Recovery only as the initial default
|
|
19
|
+
- Switching Off cancels queued grace, cooldown and loop-guard retries but leaves a running turn alone
|
|
20
|
+
- Switching from Autonomous loop to Recovery only cancels pending autonomous followups, and turning a mode back on does not revive cancelled sends
|
|
21
|
+
- **Resume now** still requests one manual followup while paused or Off without changing the saved mode
|
|
22
|
+
|
|
23
|
+
Your existing global pause and loop preferences carry over, and conversations without an override follow that default
|
|
24
|
+
|
|
25
|
+
The loop guard still has its own global setting and remains independent of global pause, while a conversation set to Off is excluded from it
|
|
26
|
+
|
|
27
|
+
## Settings save and migration fixes
|
|
28
|
+
|
|
29
|
+
Hosts exposing both legacy and profile settings APIs could register auto-continue twice and reject saves with `settings/conflict`, as reported in [#64](https://github.com/HsiangNianian/dsh-auto-continue/issues/64)
|
|
30
|
+
|
|
31
|
+
[#65](https://github.com/HsiangNianian/dsh-auto-continue/pull/65) keeps the profile configuration as the single settings owner on these hosts and imports the old auto-continue section from `$DSH_HOME/settings-legacy.yaml` when needed
|
|
32
|
+
|
|
33
|
+
- Imports happen once per profile, preserving old pause settings and custom prompts without overwriting explicit profile values or edits made during the import
|
|
34
|
+
- The original legacy file and other plugins' settings are left untouched
|
|
35
|
+
- A completed import stays completed after a full settings reset, so old values do not come back unexpectedly
|
|
36
|
+
- Automatic recovery and the loop guard wait while a required import is pending or fails, keeping saved pause choices from being bypassed
|
|
37
|
+
- Hosts with nothing to import do not wait for a settings editor
|
|
38
|
+
- YAML diagnostics no longer include source snippets that could expose unrelated settings, and the bundled parser keeps its ISC license notice
|
|
39
|
+
|
|
40
|
+
## Dependencies and release notes
|
|
41
|
+
|
|
42
|
+
[#66](https://github.com/HsiangNianian/dsh-auto-continue/pull/66) aligns the DSH development packages on `0.1.2-rc.1`, Cordis on `4.0.2` and Schemastery on `3.18.2`, removing the conflicting versions left by updating only the connection package
|
|
43
|
+
|
|
44
|
+
The repository now has a [changelog](https://github.com/HsiangNianian/dsh-auto-continue/blob/v0.16.0/CHANGELOG.md), and the publish workflow reads the full release body from a checked-in file before creating the GitHub Release
|
|
45
|
+
|
|
46
|
+
## Validation and compatibility
|
|
47
|
+
|
|
48
|
+
- Type checking, build, the full regression suite and the pinned DSH plugin checker
|
|
49
|
+
- Settings and compatibility checks against published DSH `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.1-alpha.1` and `0.2.1-rc.2` packages
|
|
50
|
+
- Startup failure isolation against `0.2.0-rc.2` and `0.2.1-alpha.1`, plus persisted-session restart recovery on `0.2.1-rc.2`
|
|
51
|
+
- Conversation mode isolation, cancellation of delayed sends, startup policy checks, settings persistence, cross-tab updates and stale save responses
|
|
52
|
+
- Mixed settings APIs, one-time migration, full resets, concurrent edits, crash recovery and failed imports
|
|
53
|
+
|
|
54
|
+
Runtime tests use controlled agent events and a deterministic model fixture, with no calls to an external model provider
|
|
55
|
+
|
|
56
|
+
Windows desktop has not been tested directly, and #64 remains open for confirmation from the reporter
|
|
57
|
+
|
|
58
|
+
## Upgrade
|
|
59
|
+
|
|
60
|
+
Let active work finish and stop DSH, then update the plugin in the profile you use
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.16.0
|
|
64
|
+
dsh web
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Reload the browser after restarting DSH so it loads the new conversation control
|
|
68
|
+
|
|
69
|
+
For the desktop app, update from its **Plugins** page and restart the app, since updating the CLI's `web` profile does not update the desktop profile
|
|
70
|
+
|
|
71
|
+
Existing configuration stays in place, and eligible legacy settings are imported automatically
|
|
72
|
+
|
|
73
|
+
Thanks to @fufengyuan for the conversation mode request, @spdw666 for the settings report and Dependabot for the dependency update
|
|
74
|
+
|
|
75
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.15.0...v0.16.0
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
The composer control is compact again, with a native mode menu, an icon-only phone layout, toast feedback and a cleaner settings page
|
|
2
|
+
|
|
3
|
+
The per-conversation modes from 0.16.0 are unchanged under the hood; this release is about making the control fit the rest of the composer again
|
|
4
|
+
|
|
5
|
+
## A compact switch with a native mode menu
|
|
6
|
+
|
|
7
|
+
The wide 0.16 selector is replaced by the compact switch, now paired with the host's own menu primitives ([#67](https://github.com/HsiangNianian/dsh-auto-continue/issues/67), [#68](https://github.com/HsiangNianian/dsh-auto-continue/pull/68))
|
|
8
|
+
|
|
9
|
+
- The switch turns auto-continue on or off for the current conversation; turning it back on selects **Follow default**
|
|
10
|
+
- The menu next to it shows the current mode and opens **Follow default**, **Off**, **Recovery only** and **Autonomous loop**, with a check mark on the active choice
|
|
11
|
+
- The refresh icon identifies the control when the text label is hidden
|
|
12
|
+
- Keyboard access, immediate saves, cross-tab sync and per-conversation scoping are preserved
|
|
13
|
+
- Hosts without the `Menu` primitive keep a native `<select>` fallback
|
|
14
|
+
|
|
15
|
+
## Matches the composer on phones
|
|
16
|
+
|
|
17
|
+
The label collapses to its icon and the mode menu to its arrow with the same composer container query as the native permission picker
|
|
18
|
+
|
|
19
|
+
- The switch stays on one line with the other composer controls on narrow phones
|
|
20
|
+
- No separate viewport breakpoint: the control follows the composer row, like its neighbours
|
|
21
|
+
- The mode menu is still one tap away and shows the active choice
|
|
22
|
+
|
|
23
|
+
## Toast feedback instead of red text
|
|
24
|
+
|
|
25
|
+
- A failed session-mode save shows the host's toast instead of red text in the composer
|
|
26
|
+
- Saving and disconnected states keep the controls disabled and explain themselves through the tooltip
|
|
27
|
+
- A host that stays unavailable for three seconds announces itself once; a normal page load does not flash a toast
|
|
28
|
+
- Hosts without the `Toast` primitive keep the inline text fallback
|
|
29
|
+
|
|
30
|
+
## Native settings page
|
|
31
|
+
|
|
32
|
+
- The settings fields, switches and default-mode selector now use DSH's own `SettingsForm`, `SettingsValueField`, `Switch` and `SegmentedControl` primitives, so the page matches the rest of the plugin manager
|
|
33
|
+
- The category navigation and the status panels stay, while the custom field layout and the OS-level select popup are gone
|
|
34
|
+
- Older hosts without those primitives keep the previous card
|
|
35
|
+
- The plugin title and description are localized through `locale` metadata, so Chinese shows **自动继续** and its Chinese description
|
|
36
|
+
- Removed the charcoal header banner, but kept the GitHub invitation as a lightweight star link row
|
|
37
|
+
- Fixed a styling leak from the composer's invisible select onto **Default session mode**, which had stretched that select over the whole app and opened a selector on every click until a reload
|
|
38
|
+
|
|
39
|
+
## Validation and compatibility
|
|
40
|
+
|
|
41
|
+
- Type checking, build, the full regression suite and the pinned DSH plugin checker
|
|
42
|
+
- Settings and compatibility checks against published DSH `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.1-alpha.1` and `0.2.1-rc.2` packages, using the existing fixtures
|
|
43
|
+
- Composer mode menu, native fallback, container-query collapse, save failures, toast fallback and the settings select placement
|
|
44
|
+
- Native settings rendering, field editing, save, reload persistence and localized plugin metadata
|
|
45
|
+
- Runtime tests use controlled agent events and a deterministic model fixture, with no calls to an external model provider
|
|
46
|
+
|
|
47
|
+
## Upgrade
|
|
48
|
+
|
|
49
|
+
Let active work finish and stop DSH, then update the plugin in the profile you use
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.17.0
|
|
53
|
+
dsh web
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Reload the browser after restarting DSH so it loads the new composer control
|
|
57
|
+
|
|
58
|
+
For the desktop app, update from its **Plugins** page and restart the app, since updating the CLI's `web` profile does not update the desktop profile
|
|
59
|
+
|
|
60
|
+
Existing configuration, conversation modes and pauses stay in place. The settings card no longer shows the header banner; the plugin name and status remain in the plugin manager
|
|
61
|
+
|
|
62
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.16.0...v0.17.0
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Configuration and composer screenshots
|
|
2
2
|
|
|
3
|
-
Captured on 2026-10-
|
|
3
|
+
Captured on 2026-10-23 with **DSH 0.2.1-rc.2** and **plugin 0.17.0**,
|
|
4
4
|
using Chromium and DSH's dark theme.
|
|
5
5
|
The capture uses an isolated `DSH_HOME` with no API keys or user conversations.
|
|
6
6
|
|
|
7
7
|
| View | English | Chinese | Viewport |
|
|
8
8
|
| --- | --- | --- | --- |
|
|
9
|
-
| General category
|
|
10
|
-
| Retry strategy category | [02-settings-card.png](02-settings-card.png) | [02-settings-card.zh.png](02-settings-card.zh.png) | 1440 ×
|
|
11
|
-
| Status and logs, Save
|
|
12
|
-
|
|
|
9
|
+
| General category | [01-settings-section.png](01-settings-section.png) | [01-settings-section.zh.png](01-settings-section.zh.png) | 1440 × 977 |
|
|
10
|
+
| Retry strategy category | [02-settings-card.png](02-settings-card.png) | [02-settings-card.zh.png](02-settings-card.zh.png) | 1440 × 1372 |
|
|
11
|
+
| Status and logs, native Save button | [07-card-panels.png](07-card-panels.png) | [07-card-panels.zh.png](07-card-panels.zh.png) | 1440 × 971 |
|
|
12
|
+
| Composer switch and mode menu | [08-composer-toggle.png](08-composer-toggle.png) | [08-composer-toggle.zh.png](08-composer-toggle.zh.png) | 840 × 300, cropped to the composer |
|
|
13
13
|
|
|
14
14
|
To refresh, build the checked-out code and install it in an empty DSH profile:
|
|
15
15
|
|
|
@@ -23,9 +23,9 @@ DSH_HOME="$capture_home" dsh web --no-open
|
|
|
23
23
|
Open the authenticated URL printed by DSH without including its token in any
|
|
24
24
|
screenshot. Dismiss onboarding, select the dark theme, and open **Plugins →
|
|
25
25
|
dsh-client-auto-continue** from the sidebar. Capture **General**, **Retry strategy**,
|
|
26
|
-
and **Status and logs**. The repository
|
|
27
|
-
|
|
28
|
-
prototype selector in the finished UI.
|
|
26
|
+
and **Status and logs**. The settings card starts with a compact star/repository link row and then the category
|
|
27
|
+
navigation; its fields use DSH's native settings primitives. There is no charcoal title banner.
|
|
28
|
+
There is no collapsed card or prototype selector in the finished UI.
|
|
29
29
|
|
|
30
30
|
For the composer view, open a new session without sending a message and crop to
|
|
31
31
|
the message input and controls. Use a fresh browser context with an English or
|