dsh-client-auto-continue 0.20.2 → 0.21.1
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 +21 -0
- package/README.md +8 -6
- package/README.ru.md +8 -6
- package/README.zh.md +8 -6
- package/docs/releases/v0.21.0.md +56 -0
- package/docs/releases/v0.21.1.md +39 -0
- package/lib/client.js +16 -1
- package/lib/client.js.map +2 -2
- package/lib/index.js +215 -13
- package/lib/types/client/locales.d.ts +3 -0
- package/lib/types/client/settings-card.d.ts +1 -0
- package/lib/types/host/engine.d.ts +20 -0
- package/lib/types/index.d.ts +8 -0
- package/lib/types/shared/core.d.ts +5 -0
- package/package.json +2 -2
- package/src/client/locales.ts +9 -0
- package/src/client/settings-card.tsx +5 -2
- package/src/host/engine.ts +260 -19
- package/src/index.ts +2 -0
- package/src/shared/core.ts +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.21.1](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.21.1) — 2026-11-26
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- With **Resume goals** (`resumeGoals`) on, a continuation re-armed any `active` goal that was disarmed, including one the user disarmed by stopping a turn. After a stop followed by a retryable error, goal rounds started again on their own. The plugin now reads the session log and leaves the goal disarmed when the user's last stop is newer than the last goal `resume` or `create`. The failed turn is still retried. Restarts, loop-guard cancels and other host cancels still re-arm as before ([#97](https://github.com/HsiangNianian/dsh-auto-continue/pull/97), thanks @xiaobaifly7)
|
|
8
|
+
|
|
9
|
+
[Upgrade instructions and validation](docs/releases/v0.21.1.md) · [Full changes](https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.21.0...v0.21.1)
|
|
10
|
+
|
|
11
|
+
## [0.21.0](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.21.0) — 2026-11-25
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **Continue text (unanswered question)** (`continueTextQuestion`): when the step a restart or error cut off was an `ask_user_question` the user has not answered, the plugin sends this instead of the usual continue text, without a guard note. It says the message is automatic and asks the model to ask again and wait. Before, "continue" plus the guard note read as the user's answer, and the model went on without one. Built-in en / zh / ru defaults ([#96](https://github.com/HsiangNianian/dsh-auto-continue/pull/96), thanks @xiaobaifly7)
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Restart and retryable-error recovery no longer resume a session whose goal is `blocked`, or `paused` unless **Resume goals** and **Resume paused goals** are both on. A goal that can't be read is treated as held. This covers live sessions, closed subagents and the restart wake of a main conversation. `max-tokens` and silent-turn continuations, the autonomous loop and **Resume now** are unchanged ([#96](https://github.com/HsiangNianian/dsh-auto-continue/pull/96))
|
|
20
|
+
- `maxConsecutive` now holds across host restarts. The startup scan rebuilds the count from the continuations already in the session log (since the last user message, user stop or visible answer), so continue → crash → restart no longer loops forever. Nothing new is stored ([#96](https://github.com/HsiangNianian/dsh-auto-continue/pull/96))
|
|
21
|
+
|
|
22
|
+
[Upgrade instructions and validation](docs/releases/v0.21.0.md) · [Full changes](https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.20.2...v0.21.0)
|
|
23
|
+
|
|
3
24
|
## [0.20.2](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.20.2) — 2026-11-19
|
|
4
25
|
|
|
5
26
|
### Fixed
|
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ To update, let running work finish, stop DSH, run the same command again, then r
|
|
|
73
73
|
|
|
74
74
|
| DSH runtime | Plugin version | Settings location |
|
|
75
75
|
| --- | --- | --- |
|
|
76
|
-
| 0.2.2-rc.1, 0.2.1-rc.2, 0.2.1-alpha.1 | 0.
|
|
76
|
+
| 0.2.2-rc.1, 0.2.1-rc.2, 0.2.1-alpha.1 | 0.21.1 verified | **Plugins → dsh-client-auto-continue** |
|
|
77
77
|
| 0.2.0-rc.1 | 0.12.1 or newer | **Plugins → dsh-client-auto-continue** |
|
|
78
78
|
| 0.1.7-rc.2 | 0.11.9 or newer | **Plugins → dsh-client-auto-continue** |
|
|
79
79
|
| Older hosts with the legacy settings API | legacy UI | **Settings → Plugins → Plugin configuration** |
|
|
@@ -222,15 +222,15 @@ Times are in milliseconds. Text fields left empty use the built-in text in the c
|
|
|
222
222
|
| --- | --- | --- | --- |
|
|
223
223
|
| Grace period (ms) | `graceMs` | `3000` | Wait before sending; a new turn or your own message cancels it |
|
|
224
224
|
| Cooldown (ms) | `cooldownMs` | `20000` | Minimum gap between recovery attempts in one session. A failure during cooldown waits for the rest of it |
|
|
225
|
-
| Max consecutive | `maxConsecutive` | `3` | Attempts before giving up. Resets when you send a message or a turn ends with visible output. Loop continuations after normal completions do not count |
|
|
225
|
+
| Max consecutive | `maxConsecutive` | `3` | Attempts before giving up. Resets when you send a message, press Stop, or a turn ends with visible output. Loop continuations after normal completions do not count. After a host restart, continuations already in the conversation count too |
|
|
226
226
|
| Classify errors | `classify` | `true` | Retry transient errors only; skip permanent ones. Off = retry every error |
|
|
227
227
|
| Custom retryable errors | `retryableErrorPatterns` | `''` | One literal per line, case-insensitive, matched against code, HTTP status and message. Overrides the built-in classifier |
|
|
228
228
|
| Backoff factor | `backoffFactor` | `2` | Cooldown multiplier per consecutive failure (20 s → 40 s → 80 s) |
|
|
229
229
|
| Max backoff (ms) | `backoffMaxMs` | `300000` | Upper bound for the cooldown |
|
|
230
230
|
| Pause while offline | `pauseWhenOffline` | `true` | Hold network-error retries while the host is offline, without using up attempts |
|
|
231
231
|
| Offline re-check interval (ms) | `offlineCheckMs` | `15000` | How often a held retry checks the network. Minimum 1000 |
|
|
232
|
-
| Re-arm goals disarmed by a restart | `resumeGoals` | `false` | After a continue message, re-arm an `active` goal the restart disarmed. This acts on your behalf, hence off |
|
|
233
|
-
| Resume paused goals | `resumePausedGoals` | `false` | Also resume goals you paused by hand. Needs `resumeGoals
|
|
232
|
+
| Re-arm goals disarmed by a restart | `resumeGoals` | `false` | After a continue message, re-arm an `active` goal the restart disarmed. A goal you disarmed by stopping a turn stays off until you resume it. This acts on your behalf, hence off |
|
|
233
|
+
| Resume paused goals | `resumePausedGoals` | `false` | Also resume goals you paused by hand. Needs `resumeGoals`. Without it, a session whose goal is paused is not resumed after a restart or an error |
|
|
234
234
|
|
|
235
235
|
### Startup recovery
|
|
236
236
|
|
|
@@ -249,6 +249,7 @@ Times are in milliseconds. Text fields left empty use the built-in text in the c
|
|
|
249
249
|
| Continue text (max tokens) | `continueTextMaxTokens` | The output token limit was reached |
|
|
250
250
|
| Continue text (silent turn) | `continueTextSilent` | A turn ended with reasoning only |
|
|
251
251
|
| Continue text (after harness restart) | `continueTextInterrupted` | The startup scan resumes a turn a restart cut off |
|
|
252
|
+
| Continue text (unanswered question) | `continueTextQuestion` | The cut-off step was a question to you (`ask_user_question`) you have not answered. Sent instead of the continue text, without a guard note |
|
|
252
253
|
| Continue text (autonomous loop) | `continueTextLoop` | Each autonomous-loop round |
|
|
253
254
|
| Guard text (unconfirmed result) | `guardPendingText` | Appended when the last tool call may not have finished |
|
|
254
255
|
| Guard text (tool succeeded) | `guardDoneText` | Appended when the last tool call succeeded |
|
|
@@ -266,6 +267,7 @@ Built-in texts exist in English, Chinese and Russian. They follow the DSH langua
|
|
|
266
267
|
| `continueText`, `continueTextMaxTokens`, `continueTextLoop` | `Continue` |
|
|
267
268
|
| `continueTextSilent` | `Continue. Your previous turn ended with internal reasoning only, with no message and no tool call, so nothing reached the user. Always finish a turn with a tool call or a visible answer.` |
|
|
268
269
|
| `continueTextInterrupted` | `Continue. The harness was restarted while your previous turn was still running; tool calls pending at the restart are recorded with unknown outcomes. Resume where you left off, verifying external state before retrying anything that may have side effects.` |
|
|
270
|
+
| `continueTextQuestion` | `This message was sent automatically by the plugin after a harness restart; it is not the user's reply. The question you asked the user was cut off by the restart and has not been answered. Ask the same question again and wait for the answer; do not decide for the user.` |
|
|
269
271
|
| `guardPendingText` | `(The previous tool "{tool}" may not have completed. Check its state before continuing and do not run it again.)` |
|
|
270
272
|
| `guardDoneText` | `(The previous tool "{tool}" completed successfully. Result: {result}; do not run it again. Continue from there.)` |
|
|
271
273
|
| `loopText` | `(You may be stuck in a loop. Stop repeating the last action and continue with a different approach.)` |
|
|
@@ -312,9 +314,9 @@ Patterns are plain substrings, not regular expressions. Cooldown and **Max conse
|
|
|
312
314
|
[](docs/auto-continue-workflow.en.html)
|
|
313
315
|
|
|
314
316
|
1. **Triggers.** The engine listens to session events in the host. A `turn/end` with `error`, `max-tokens`, a silent ending, or `completed` (loop mode only) starts the flow. After a host restart, the startup scan checks open and stored sessions every 3 seconds until the scan window ends. The loop guard watches running turns and cancels one that repeats itself.
|
|
315
|
-
2. **Session check.** Nothing is sent while auto-continue is paused globally, the session is Off or paused for an hour, or the session is a subagent and **Resume subagent sessions** is off. A subagent follows its main conversation's mode unless it has its own, and never runs the autonomous loop or the loop guard.
|
|
317
|
+
2. **Session check.** Nothing is sent while auto-continue is paused globally, the session is Off or paused for an hour, or the session is a subagent and **Resume subagent sessions** is off. A turn cut off by a restart or a retryable error is not resumed while the session's goal is paused or blocked (a paused one is, with `resumeGoals` and `resumePausedGoals` on): resuming it would read as you lifting the pause. Finishing an answer cut off by `max-tokens` or a silent turn, and the autonomous loop, are not affected. A subagent follows its main conversation's mode unless it has its own, and never runs the autonomous loop or the loop guard.
|
|
316
318
|
3. **End reason.** Manual Stop and policy blocks (`blocked`) are left alone, and so are permanent errors. Everything else recoverable goes to recovery. A normal completion only continues in Autonomous loop mode, which skips the cooldown and the consecutive limit but respects `loopMaxIterations`.
|
|
317
|
-
4. **Retry budget.** Recovery stops at **Max consecutive**. Inside the cooldown, the send is deferred rather than dropped. The cooldown is multiplied by the backoff factor after each failure, up to the maximum.
|
|
319
|
+
4. **Retry budget.** Recovery stops at **Max consecutive**. After a restart the count is rebuilt from the conversation: the continuations since your last message, your last Stop, or the last turn with visible output. With `usePluginSource` off, a continuation is recognized by matching the current continue texts, so a message you typed that is identical to one of them counts as well. Inside the cooldown, the send is deferred rather than dropped. The cooldown is multiplied by the backoff factor after each failure, up to the maximum.
|
|
318
320
|
5. **Grace period.** The engine waits `graceMs`. A new turn or a message from you cancels the send.
|
|
319
321
|
6. **Offline hold.** For network errors, the host checks for a non-loopback network interface and one resolvable public name. While offline it waits and re-checks every `offlineCheckMs`, then goes through grace and cooldown again. With `HTTP(S)_PROXY` or `ALL_PROXY` set, only interfaces are checked.
|
|
320
322
|
7. **Send.** The engine picks the text for the reason, appends the idempotency-guard note, and sends it with `agent.followup` using the session's preset and model. If user turns are already queued, the continue message is moved ahead of them while their order is kept. With `resumeGoals` on, a goal the restart disarmed is re-armed.
|
package/README.ru.md
CHANGED
|
@@ -73,7 +73,7 @@ dsh web
|
|
|
73
73
|
|
|
74
74
|
| Среда DSH | Версия плагина | Где настройки |
|
|
75
75
|
| --- | --- | --- |
|
|
76
|
-
| 0.2.2-rc.1, 0.2.1-rc.2, 0.2.1-alpha.1 | 0.
|
|
76
|
+
| 0.2.2-rc.1, 0.2.1-rc.2, 0.2.1-alpha.1 | 0.21.1 проверена | **Plugins → dsh-client-auto-continue** |
|
|
77
77
|
| 0.2.0-rc.1 | 0.12.1 и новее | **Plugins → dsh-client-auto-continue** |
|
|
78
78
|
| 0.1.7-rc.2 | 0.11.9 и новее | **Plugins → dsh-client-auto-continue** |
|
|
79
79
|
| Старые хосты с устаревшим API настроек | старый интерфейс | **Settings → Plugins → Plugin configuration** |
|
|
@@ -224,15 +224,15 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
224
224
|
| --- | --- | --- | --- |
|
|
225
225
|
| Период ожидания (мс) | `graceMs` | `3000` | Пауза перед отправкой; новый ход или ваше сообщение её отменяют |
|
|
226
226
|
| Задержка перед повтором (мс) | `cooldownMs` | `20000` | Минимальный интервал между попытками в одной сессии; сбой внутри интервала ждёт его окончания |
|
|
227
|
-
| Максимум подряд | `maxConsecutive` | `3` | Попыток подряд до отказа. Сбрасывается, когда вы пишете
|
|
227
|
+
| Максимум подряд | `maxConsecutive` | `3` | Попыток подряд до отказа. Сбрасывается, когда вы пишете сообщение, нажимаете «Стоп» или ход даёт видимый ответ; продолжения цикла после штатного завершения не считаются. После перезапуска хоста учитываются и продолжения, уже записанные в беседе |
|
|
228
228
|
| Классификация ошибок | `classify` | `true` | Повторять только временные ошибки, постоянные пропускать. Выкл. — повторять все |
|
|
229
229
|
| Свои восстанавливаемые ошибки | `retryableErrorPatterns` | `''` | По одному фрагменту на строку, без учёта регистра; ищется в коде, HTTP-статусе и тексте ошибки. Важнее встроенной классификации |
|
|
230
230
|
| Коэффициент задержки | `backoffFactor` | `2` | Множитель интервала после каждого сбоя подряд (20 с → 40 с → 80 с) |
|
|
231
231
|
| Максимальная задержка (мс) | `backoffMaxMs` | `300000` | Верхняя граница интервала |
|
|
232
232
|
| Пауза при отсутствии сети | `pauseWhenOffline` | `true` | Пока у хоста нет сети, повтор сетевых ошибок ждёт и не тратит попытки |
|
|
233
233
|
| Интервал повторной проверки сети (мс) | `offlineCheckMs` | `15000` | Как часто проверять сеть во время ожидания; минимум 1000 |
|
|
234
|
-
| Перевзводить цели, снятые перезапуском | `resumeGoals` | `false` | После отправки снова «взводит» цель (goal) в состоянии `active`, которую перезапуск снял. Это действие от вашего имени, поэтому по умолчанию выключено |
|
|
235
|
-
| Возобновлять приостановленные цели | `resumePausedGoals` | `false` | Продолжать и цели, которые вы поставили на паузу сами. Работает только вместе с `resumeGoals
|
|
234
|
+
| Перевзводить цели, снятые перезапуском | `resumeGoals` | `false` | После отправки снова «взводит» цель (goal) в состоянии `active`, которую перезапуск снял. Цель, снятую вашей остановкой хода, плагин не трогает, пока вы сами её не возобновите. Это действие от вашего имени, поэтому по умолчанию выключено |
|
|
235
|
+
| Возобновлять приостановленные цели | `resumePausedGoals` | `false` | Продолжать и цели, которые вы поставили на паузу сами. Работает только вместе с `resumeGoals`. Без этого сессия с приостановленной целью не продолжается после перезапуска или ошибки |
|
|
236
236
|
|
|
237
237
|
### Восстановление при запуске
|
|
238
238
|
|
|
@@ -251,6 +251,7 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
251
251
|
| Текст продолжения (лимит токенов) | `continueTextMaxTokens` | Достигнут лимит токенов вывода |
|
|
252
252
|
| Текст продолжения (ход без вывода) | `continueTextSilent` | Ход закончился одними рассуждениями |
|
|
253
253
|
| Текст продолжения (после перезапуска хоста) | `continueTextInterrupted` | Стартовое сканирование продолжает ход, оборванный перезапуском |
|
|
254
|
+
| Текст продолжения (вопрос без ответа) | `continueTextQuestion` | Оборванным шагом был вопрос вам (`ask_user_question`), на который вы ещё не ответили. Отправляется вместо текста продолжения, без заметки защиты |
|
|
254
255
|
| Текст продолжения (автономный цикл) | `continueTextLoop` | Каждый раунд автономного цикла |
|
|
255
256
|
| Текст защиты (результат не подтверждён) | `guardPendingText` | Добавляется, если последний вызов инструмента мог не завершиться |
|
|
256
257
|
| Текст защиты (инструмент выполнен) | `guardDoneText` | Добавляется, если последний вызов инструмента прошёл успешно |
|
|
@@ -268,6 +269,7 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
268
269
|
| `continueText`, `continueTextMaxTokens`, `continueTextLoop` | `Продолжай` |
|
|
269
270
|
| `continueTextSilent` | `Продолжай. Предыдущий ход закончился только внутренним рассуждением: ни ответа, ни вызова инструмента, поэтому пользователь ничего не увидел. Каждый ход должен заканчиваться вызовом инструмента или видимым ответом.` |
|
|
270
271
|
| `continueTextInterrupted` | `Продолжай. Хост перезапустился, пока предыдущий ход ещё выполнялся; вызовы инструментов, незавершённые на момент перезапуска, записаны с неизвестным результатом. Продолжай с места остановки, проверяя внешнее состояние перед повтором действий с возможными побочными эффектами.` |
|
|
272
|
+
| `continueTextQuestion` | `Это сообщение плагин отправил автоматически после перезапуска хоста, это не ответ пользователя. Вопрос, который ты задал пользователю, прервался из-за перезапуска, и ответа на него ещё нет. Задай тот же вопрос снова и дождись ответа, не принимай решение за пользователя.` |
|
|
271
273
|
| `guardPendingText` | `(Предыдущий инструмент «{tool}», возможно, не завершился. Проверь его состояние перед продолжением и не запускай его повторно.)` |
|
|
272
274
|
| `guardDoneText` | `(Предыдущий инструмент «{tool}» завершился успешно. Результат: {result}; не запускай его повторно, продолжай с этого места.)` |
|
|
273
275
|
| `loopText` | `(Похоже, ты застрял в цикле. Перестань повторять последнее действие и продолжай другим способом.)` |
|
|
@@ -314,9 +316,9 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
314
316
|
[](docs/auto-continue-workflow.en.html)
|
|
315
317
|
|
|
316
318
|
1. **Источники.** Движок слушает события сессий в хосте. Процесс запускает `turn/end` с причиной `error`, `max-tokens`, завершение без видимого ответа или `completed` (только в режиме цикла). После перезапуска хоста стартовое сканирование каждые 3 секунды проверяет открытые и сохранённые сессии, пока не закончится окно сканирования. Защита от зацикливания следит за идущими ходами и прерывает тот, что повторяется.
|
|
317
|
-
2. **Проверка сессии.** Ничего не отправляется, если auto-continue глобально на паузе, беседа в режиме «Выключено» или на часовой паузе, либо это сессия субагента, а **Продолжать сессии субагентов** выключено. Субагент следует режиму своего основного диалога (если у него нет своего), никогда не входит в автономный цикл и не попадает под защиту от циклов.
|
|
319
|
+
2. **Проверка сессии.** Ничего не отправляется, если auto-continue глобально на паузе, беседа в режиме «Выключено» или на часовой паузе, либо это сессия субагента, а **Продолжать сессии субагентов** выключено. Ход, оборванный перезапуском или повторяемой ошибкой, не продолжается, пока цель (goal) сессии приостановлена (paused) или заблокирована (blocked); приостановленная продолжается при включённых `resumeGoals` и `resumePausedGoals`. Иначе продолжение выглядело бы так, будто паузу сняли вы. Дописывание ответа после `max-tokens` или хода без вывода и автономный цикл это не затрагивает. Субагент следует режиму своего основного диалога (если у него нет своего), никогда не входит в автономный цикл и не попадает под защиту от циклов.
|
|
318
320
|
3. **Причина завершения.** Ручная остановка (Stop) и запрет политики (`blocked`) не трогаются, постоянные ошибки тоже. Всё остальное восстановимое идёт на восстановление. Штатное завершение продолжается только в режиме Autonomous loop: без интервала и лимита попыток подряд, но с учётом `loopMaxIterations`.
|
|
319
|
-
4. **Лимит попыток.** На **Максимум подряд** восстановление останавливается. Внутри интервала отправка откладывается, а не теряется; после каждого сбоя интервал умножается на коэффициент, пока не дойдёт до максимума.
|
|
321
|
+
4. **Лимит попыток.** На **Максимум подряд** восстановление останавливается. После перезапуска счётчик восстанавливается по беседе: сколько продолжений плагин отправил после вашего последнего сообщения, последнего «Стоп» или последнего хода с видимым ответом. При выключенном `usePluginSource` продолжения узнаются по текущим текстам продолжения, поэтому набранное вами сообщение, совпадающее с одним из них, тоже засчитывается. Внутри интервала отправка откладывается, а не теряется; после каждого сбоя интервал умножается на коэффициент, пока не дойдёт до максимума.
|
|
320
322
|
5. **Пауза перед отправкой.** Движок ждёт `graceMs`. Новый ход или ваше сообщение отменяют отправку.
|
|
321
323
|
6. **Ожидание сети.** Для сетевых ошибок хост проверяет, есть ли сетевой интерфейс кроме loopback и разрешается ли хотя бы одно публичное имя. Без сети отправка ждёт, проверка повторяется каждые `offlineCheckMs`, а потом снова проходят пауза и интервал. Если задан `HTTP(S)_PROXY` или `ALL_PROXY`, проверяются только интерфейсы.
|
|
322
324
|
7. **Отправка.** Движок выбирает текст по причине остановки, добавляет заметку о последнем инструменте и отправляет через `agent.followup` с пресетом и моделью сессии. Если в очереди уже есть ходы пользователя, сообщение встаёт перед ними, а их порядок сохраняется. При включённом `resumeGoals` снятая перезапуском цель снова взводится.
|
package/README.zh.md
CHANGED
|
@@ -73,7 +73,7 @@ dsh web
|
|
|
73
73
|
|
|
74
74
|
| DSH 内核 | 插件版本 | 设置入口 |
|
|
75
75
|
| --- | --- | --- |
|
|
76
|
-
| 0.2.2-rc.1、0.2.1-rc.2、0.2.1-alpha.1 | 0.
|
|
76
|
+
| 0.2.2-rc.1、0.2.1-rc.2、0.2.1-alpha.1 | 0.21.1 已验证 | **插件 → dsh-client-auto-continue** |
|
|
77
77
|
| 0.2.0-rc.1 | 0.12.1 及以上 | **插件 → dsh-client-auto-continue** |
|
|
78
78
|
| 0.1.7-rc.2 | 0.11.9 及以上 | **插件 → dsh-client-auto-continue** |
|
|
79
79
|
| 仅有旧版设置 API 的宿主 | 旧版界面 | **设置 → 插件 → 插件配置** |
|
|
@@ -222,15 +222,15 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
222
222
|
| --- | --- | --- | --- |
|
|
223
223
|
| 宽限期 (ms) | `graceMs` | `3000` | 发送前的等待;期间有新回合或你发了消息就取消 |
|
|
224
224
|
| 冷却时间 (ms) | `cooldownMs` | `20000` | 同一会话两次恢复尝试的最小间隔;冷却期内的失败会等冷却结束 |
|
|
225
|
-
| 最大连续次数 | `maxConsecutive` | `3` |
|
|
225
|
+
| 最大连续次数 | `maxConsecutive` | `3` | 达到后放弃。你发消息、点停止或回合有可见输出后清零;正常完成后的循环续跑不计入。宿主重启后,会话里已有的继续消息也计入 |
|
|
226
226
|
| 错误分类 | `classify` | `true` | 只重试临时性错误,跳过永久性错误;关闭则所有错误都重试 |
|
|
227
227
|
| 自定义可恢复错误 | `retryableErrorPatterns` | `''` | 每行一个文本片段,忽略大小写,匹配错误码、HTTP 状态和消息;优先于内置分类 |
|
|
228
228
|
| 退避系数 | `backoffFactor` | `2` | 每次连续失败后冷却时间的倍数(20 秒 → 40 秒 → 80 秒) |
|
|
229
229
|
| 最大退避间隔 (ms) | `backoffMaxMs` | `300000` | 冷却时间的上限 |
|
|
230
230
|
| 断网时暂停续跑 | `pauseWhenOffline` | `true` | 宿主断网时挂起网络类错误的重试,不消耗次数 |
|
|
231
231
|
| 断网复检间隔 (ms) | `offlineCheckMs` | `15000` | 挂起期间多久检测一次网络,最小 1000 |
|
|
232
|
-
| 重新武装被重启失活的 goal | `resumeGoals` | `false` | 发出继续消息后,把重启时被 disarm 的 `active` goal 重新 arm
|
|
233
|
-
| 恢复被暂停的 goal | `resumePausedGoals` | `false` | 连你手动暂停的 goal 也恢复;需同时开启 `resumeGoals
|
|
232
|
+
| 重新武装被重启失活的 goal | `resumeGoals` | `false` | 发出继续消息后,把重启时被 disarm 的 `active` goal 重新 arm。你手动停止回合而失活的 goal 不会被重新 arm,等你自己恢复。这相当于替你授权,所以默认关闭 |
|
|
233
|
+
| 恢复被暂停的 goal | `resumePausedGoals` | `false` | 连你手动暂停的 goal 也恢复;需同时开启 `resumeGoals`。不开时,goal 已暂停的会话在重启或出错后不续跑 |
|
|
234
234
|
|
|
235
235
|
### 启动恢复
|
|
236
236
|
|
|
@@ -249,6 +249,7 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
249
249
|
| 超限时的继续文本 | `continueTextMaxTokens` | 触到输出 token 上限 |
|
|
250
250
|
| 无输出回合的继续文本 | `continueTextSilent` | 回合只输出了推理 |
|
|
251
251
|
| 宿主重启后恢复的继续文本 | `continueTextInterrupted` | 启动扫描恢复被重启打断的回合 |
|
|
252
|
+
| 提问未获回答时的继续文本 | `continueTextQuestion` | 被打断的那一步是向你提问(`ask_user_question`)且你还没回答。替代继续文本发送,不附护栏提示 |
|
|
252
253
|
| 自主循环的继续文本 | `continueTextLoop` | 自主循环的每一轮 |
|
|
253
254
|
| 结果未确认时的护栏文本 | `guardPendingText` | 上一步工具调用可能没完成时附加 |
|
|
254
255
|
| 工具已成功时的护栏文本 | `guardDoneText` | 上一步工具调用已成功时附加 |
|
|
@@ -266,6 +267,7 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
266
267
|
| `continueText`、`continueTextMaxTokens`、`continueTextLoop` | `继续` |
|
|
267
268
|
| `continueTextSilent` | `继续。你上一轮只输出了内部推理, 既没有回复也没有调用工具, 用户什么都没看到。每一轮都要以工具调用或可见回复结束。` |
|
|
268
269
|
| `continueTextInterrupted` | `继续。宿主在你上一轮运行期间重启了; 重启时未完成的工具调用已按「结果未知」收尾。从中断处继续, 重试可能有副作用的操作前先核实外部状态。` |
|
|
270
|
+
| `continueTextQuestion` | `这是宿主重启后插件自动发送的消息, 不是用户的回复。你上一步向用户提出的问题因重启中断, 用户还没有回答。请重新提出同一个问题并等待回答, 不要替用户做决定。` |
|
|
269
271
|
| `guardPendingText` | `(上一步工具「{tool}」可能未完成, 先确认状态再继续, 不要重复执行)` |
|
|
270
272
|
| `guardDoneText` | `(上一步工具「{tool}」已完成, 结果: {result}; 不要重复执行, 直接继续)` |
|
|
271
273
|
| `loopText` | `(检测到你可能陷入循环, 请停止重复刚才的动作, 换一种方式继续)` |
|
|
@@ -312,9 +314,9 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
312
314
|
[](docs/auto-continue-workflow.html)
|
|
313
315
|
|
|
314
316
|
1. **触发。** 引擎在宿主中监听会话事件。`turn/end` 的原因是 `error`、`max-tokens`、无可见输出,或 `completed`(仅自主循环)时进入流程。宿主重启后,启动扫描每 3 秒检查一次已打开和已存储的会话,直到扫描时间窗结束。循环守卫监视正在运行的回合,发现原地打转就打断。
|
|
315
|
-
2. **会话检查。** 全局暂停、会话设为“关闭”或暂停了 1 小时、会话是子代理且 **续跑子代理会话**
|
|
317
|
+
2. **会话检查。** 全局暂停、会话设为“关闭”或暂停了 1 小时、会话是子代理且 **续跑子代理会话** 关闭时,不发送任何内容。会话的 goal 处于暂停(paused)或受阻(blocked)时,不续跑被重启或可重试错误打断的回合(同时开启 `resumeGoals` 和 `resumePausedGoals` 时,暂停的 goal 照常续跑):这时续跑会被当成你解除了暂停。`max-tokens` 截断和无输出回合的续写、自主循环不受影响。子代理沿用主会话的模式(除非它有自己的模式),从不进入自主循环,也不受循环守卫影响。
|
|
316
318
|
3. **结束原因。** 手动停止和策略拦截(`blocked`)不处理,永久性错误也不处理。其余可恢复的情况进入恢复流程。正常完成只在自主循环模式下继续:不受冷却和连续上限约束,但受 `loopMaxIterations` 限制。
|
|
317
|
-
4. **重试预算。** 达到 **最大连续次数**
|
|
319
|
+
4. **重试预算。** 达到 **最大连续次数** 就停止。宿主重启后,计数从会话记录重建:从你最后一条消息、最后一次停止或最后一个有可见输出的回合算起,插件发过几条继续消息。`usePluginSource` 关闭时,按当前的继续文本识别插件的消息,所以你手打的、与某条继续文本完全相同的消息也会计入。冷却期内的发送会延后,而不是丢弃;每次失败后冷却时间乘以退避系数,直到上限。
|
|
318
320
|
5. **宽限期。** 等待 `graceMs`。期间有新回合或你发了消息,就取消这次发送。
|
|
319
321
|
6. **断网挂起。** 对网络类错误,宿主会检查是否有非回环网卡,以及能否解析任一公共域名。断网时等待,每隔 `offlineCheckMs` 复检,恢复后重新经过宽限期和冷却。设置了 `HTTP(S)_PROXY` 或 `ALL_PROXY` 时只检查网卡。
|
|
320
322
|
7. **发送。** 按原因选择继续文本,附上幂等护栏提示,用会话原有的 preset 和模型通过 `agent.followup` 发出。如果已有排队的用户回合,继续消息会排到它们前面,用户回合之间的顺序不变。开启 `resumeGoals` 时,会重新 arm 被重启 disarm 的 goal。
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Restart recovery stops speaking for you: it leaves paused goals alone, doesn't answer questions on your behalf, and respects the retry limit across restarts
|
|
2
|
+
|
|
3
|
+
All three come from @xiaobaifly7 in [#96](https://github.com/HsiangNianian/dsh-auto-continue/pull/96), found on a real profile
|
|
4
|
+
|
|
5
|
+
## Paused and blocked goals stay paused
|
|
6
|
+
|
|
7
|
+
When DSH restarted in the middle of a turn, the plugin sent "continue" without looking at the session's goal. If you had paused the goal, the model took that message as you lifting the pause
|
|
8
|
+
|
|
9
|
+
Now recovery after a restart or a retryable error skips a session whose goal is **blocked**, or **paused** unless you turned on both **Resume goals** and **Resume paused goals**
|
|
10
|
+
|
|
11
|
+
- If the plugin can't read the goal, it assumes it's held and doesn't send anything
|
|
12
|
+
- This covers live sessions, closed subagents being reopened, and waking the main conversation after a restart
|
|
13
|
+
- Finishing a cut-off answer (`max-tokens`, silent turns), the autonomous loop and **Resume now** work the same as before
|
|
14
|
+
|
|
15
|
+
## A question you haven't answered gets asked again
|
|
16
|
+
|
|
17
|
+
If the step that got cut off was the model asking you something (`ask_user_question`), "continue" plus the guard note read as your reply. In one case the model kept working for over an hour without the answer it needed
|
|
18
|
+
|
|
19
|
+
Now the plugin sends a different message in that case, with no guard note: it says the message is automatic, that you haven't answered, and asks the model to ask again and wait
|
|
20
|
+
|
|
21
|
+
- It's a new setting, **Continue text (unanswered question)** (`continueTextQuestion`), with English, Chinese and Russian defaults. You can edit it like the other continue texts
|
|
22
|
+
- A question that timed out normally has a result, so it keeps the usual text
|
|
23
|
+
|
|
24
|
+
## The retry limit survives restarts
|
|
25
|
+
|
|
26
|
+
**Max consecutive** (`maxConsecutive`) was only kept in memory, so every restart reset it to zero. A turn that kept crashing the host could go continue → crash → restart → continue forever
|
|
27
|
+
|
|
28
|
+
Now the startup scan counts the continuations already in the conversation, since your last message, your last stop or the last visible answer, the same way the in-memory count works. Nothing new is written to disk
|
|
29
|
+
|
|
30
|
+
If **Send continue messages with plugin source** is off, which is the default, continuations look like your own messages. The plugin recognizes them by matching your current continue texts, with placeholders as wildcards. A message you typed that's word for word a continue text counts too, which can only make it stop earlier
|
|
31
|
+
|
|
32
|
+
I added one change on top: the matching runs in linear time. The first version used a regex that, with a custom template full of placeholders, could take seconds on a long pasted message and stall the startup scan
|
|
33
|
+
|
|
34
|
+
## Upgrade
|
|
35
|
+
|
|
36
|
+
Let current work finish, stop DSH, then update the profile you use
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.21.0
|
|
40
|
+
dsh web
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile
|
|
44
|
+
|
|
45
|
+
- Reload open browser tabs after restarting
|
|
46
|
+
- The only new setting is **Continue text (unanswered question)**, which has a default. Nothing else changes
|
|
47
|
+
|
|
48
|
+
## Validation
|
|
49
|
+
|
|
50
|
+
- Typecheck, build (committed `lib/` reproduces byte for byte), the full regression suite and the DSH runtime compatibility tests
|
|
51
|
+
- New `tests/restart-resume-guards.mjs` (16 cases) covers held goals, paused-goal opt-ins, an unreadable goal, closed subagents, unanswered and timed-out questions, and rebuilding the count from plugin-source and user-source continuations, guard notes, hand-offs and streamed answers. 11 of them fail on 0.20.2
|
|
52
|
+
- The linear matcher was fuzzed against the original regex over about 110,000 cases with no differences. A 6 KB near-miss now takes about 2 ms instead of 5.7 s
|
|
53
|
+
|
|
54
|
+
Thanks @xiaobaifly7 for digging these out of a real profile and for a PR that already handled most of the review before it started
|
|
55
|
+
|
|
56
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.20.2...v0.21.0
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
If you stop a turn, the goal stays stopped, even when a retry kicks in afterwards
|
|
2
|
+
|
|
3
|
+
From @xiaobaifly7 in [#97](https://github.com/HsiangNianian/dsh-auto-continue/pull/97), again found on a real profile
|
|
4
|
+
|
|
5
|
+
## What went wrong
|
|
6
|
+
|
|
7
|
+
With **Resume goals** on, every continuation re-armed an `active` goal that was disarmed. That setting is meant for restarts, which disarm goals as a side effect. But DSH also disarms the goal when you stop an ordinary turn, and the plugin couldn't tell the two apart
|
|
8
|
+
|
|
9
|
+
So: you press stop, type "stop touching the network", the next turn hits a 429, the plugin retries it and re-arms the goal, and goal rounds keep going as if you never stopped
|
|
10
|
+
|
|
11
|
+
## What changed
|
|
12
|
+
|
|
13
|
+
Before re-arming, the plugin looks back through the session log. If your last stop is newer than the last goal `resume` or `create`, it leaves the goal off
|
|
14
|
+
|
|
15
|
+
- The failed turn is still retried, only the goal waits
|
|
16
|
+
- Resuming the goal yourself lifts the hold, since that's a newer `resume`
|
|
17
|
+
- Restarts, the loop guard and other host cancels don't count as your stop, so they re-arm like before
|
|
18
|
+
- Paused goals with **Resume paused goals** work the same as before
|
|
19
|
+
- If the log can't be read, nothing is re-armed
|
|
20
|
+
|
|
21
|
+
## Upgrade
|
|
22
|
+
|
|
23
|
+
Let current work finish, stop DSH, then update the profile you use
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.21.1
|
|
27
|
+
dsh web
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile. No settings changed
|
|
31
|
+
|
|
32
|
+
## Validation
|
|
33
|
+
|
|
34
|
+
- Typecheck, build, the full regression suite and the DSH runtime compatibility tests
|
|
35
|
+
- A new case in `tests/restart-resume-guards.mjs` retries a failed turn in five sessions: stopped by you, stopped then resumed, restarted, cancelled by a parent, and with no cancel cause. Only the first one keeps its goal off. It fails without the fix
|
|
36
|
+
|
|
37
|
+
Thanks @xiaobaifly7 for another one straight from real use
|
|
38
|
+
|
|
39
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.21.0...v0.21.1
|
package/lib/client.js
CHANGED
|
@@ -54,6 +54,7 @@ var LOCALIZED_TEXT_DEFAULTS = {
|
|
|
54
54
|
continueTextSilent: "继续。你上一轮只输出了内部推理, 既没有回复也没有调用工具, 用户什么都没看到。每一轮都要以工具调用或可见回复结束。",
|
|
55
55
|
continueTextLoop: "继续",
|
|
56
56
|
continueTextInterrupted: "继续。宿主在你上一轮运行期间重启了; 重启时未完成的工具调用已按「结果未知」收尾。从中断处继续, 重试可能有副作用的操作前先核实外部状态。",
|
|
57
|
+
continueTextQuestion: "这是宿主重启后插件自动发送的消息, 不是用户的回复。你上一步向用户提出的问题因重启中断, 用户还没有回答。请重新提出同一个问题并等待回答, 不要替用户做决定。",
|
|
57
58
|
guardPendingText: "(上一步工具「{tool}」可能未完成, 先确认状态再继续, 不要重复执行)",
|
|
58
59
|
guardDoneText: "(上一步工具「{tool}」已完成, 结果: {result}; 不要重复执行, 直接继续)",
|
|
59
60
|
loopText: "(检测到你可能陷入循环, 请停止重复刚才的动作, 换一种方式继续)"
|
|
@@ -64,6 +65,7 @@ var LOCALIZED_TEXT_DEFAULTS = {
|
|
|
64
65
|
continueTextSilent: "Continue. Your previous turn ended with internal reasoning only, with no message and no tool call, so nothing reached the user. Always finish a turn with a tool call or a visible answer.",
|
|
65
66
|
continueTextLoop: "Continue",
|
|
66
67
|
continueTextInterrupted: "Continue. The harness was restarted while your previous turn was still running; tool calls pending at the restart are recorded with unknown outcomes. Resume where you left off, verifying external state before retrying anything that may have side effects.",
|
|
68
|
+
continueTextQuestion: "This message was sent automatically by the plugin after a harness restart; it is not the user's reply. The question you asked the user was cut off by the restart and has not been answered. Ask the same question again and wait for the answer; do not decide for the user.",
|
|
67
69
|
guardPendingText: '(The previous tool "{tool}" may not have completed. Check its state before continuing and do not run it again.)',
|
|
68
70
|
guardDoneText: '(The previous tool "{tool}" completed successfully. Result: {result}; do not run it again. Continue from there.)',
|
|
69
71
|
loopText: "(You may be stuck in a loop. Stop repeating the last action and continue with a different approach.)"
|
|
@@ -74,6 +76,7 @@ var LOCALIZED_TEXT_DEFAULTS = {
|
|
|
74
76
|
continueTextSilent: "Продолжай. Предыдущий ход закончился только внутренним рассуждением: ни ответа, ни вызова инструмента, поэтому пользователь ничего не увидел. Каждый ход должен заканчиваться вызовом инструмента или видимым ответом.",
|
|
75
77
|
continueTextLoop: "Продолжай",
|
|
76
78
|
continueTextInterrupted: "Продолжай. Хост перезапустился, пока предыдущий ход ещё выполнялся; вызовы инструментов, незавершённые на момент перезапуска, записаны с неизвестным результатом. Продолжай с места остановки, проверяя внешнее состояние перед повтором действий с возможными побочными эффектами.",
|
|
79
|
+
continueTextQuestion: "Это сообщение плагин отправил автоматически после перезапуска хоста, это не ответ пользователя. Вопрос, который ты задал пользователю, прервался из-за перезапуска, и ответа на него ещё нет. Задай тот же вопрос снова и дождись ответа, не принимай решение за пользователя.",
|
|
77
80
|
guardPendingText: "(Предыдущий инструмент «{tool}», возможно, не завершился. Проверь его состояние перед продолжением и не запускай его повторно.)",
|
|
78
81
|
guardDoneText: "(Предыдущий инструмент «{tool}» завершился успешно. Результат: {result}; не запускай его повторно, продолжай с этого места.)",
|
|
79
82
|
loopText: "(Похоже, ты застрял в цикле. Перестань повторять последнее действие и продолжай другим способом.)"
|
|
@@ -196,6 +199,9 @@ var zh = {
|
|
|
196
199
|
"field.continueTextInterrupted": "宿主重启后恢复的继续文本",
|
|
197
200
|
"field.continueTextInterruptedHint": "DSH 重启后恢复中断会话时发送的文本。",
|
|
198
201
|
"default.continueTextInterrupted": LOCALIZED_TEXT_DEFAULTS.zh.continueTextInterrupted,
|
|
202
|
+
"field.continueTextQuestion": "提问未获回答时的继续文本",
|
|
203
|
+
"field.continueTextQuestionHint": "被打断的上一步是向用户提问(ask_user_question)且用户还没回答时, 改发这段文本, 不附护栏提示, 让模型重新提问并等待回答。",
|
|
204
|
+
"default.continueTextQuestion": LOCALIZED_TEXT_DEFAULTS.zh.continueTextQuestion,
|
|
199
205
|
"field.guardTools": "幂等护栏",
|
|
200
206
|
"field.guardToolsHint": "继续前,工具结果未确认时提醒模型核实状态,已成功时提醒跳过该操作。",
|
|
201
207
|
"field.guardPendingText": "结果未确认时的护栏文本",
|
|
@@ -363,6 +369,9 @@ var en = {
|
|
|
363
369
|
"field.continueTextInterrupted": "Continue text (after harness restart)",
|
|
364
370
|
"field.continueTextInterruptedHint": "Text sent when resuming an interrupted session after DSH restarts.",
|
|
365
371
|
"default.continueTextInterrupted": LOCALIZED_TEXT_DEFAULTS.en.continueTextInterrupted,
|
|
372
|
+
"field.continueTextQuestion": "Continue text (unanswered question)",
|
|
373
|
+
"field.continueTextQuestionHint": "Sent instead, without a guard note, when the interrupted step was a question to the user (ask_user_question) that has not been answered, so the model asks again and waits.",
|
|
374
|
+
"default.continueTextQuestion": LOCALIZED_TEXT_DEFAULTS.en.continueTextQuestion,
|
|
366
375
|
"field.guardTools": "Idempotency guard",
|
|
367
376
|
"field.guardToolsHint": "Before resuming, remind the model to check unconfirmed tool results or skip an action that already succeeded.",
|
|
368
377
|
"field.guardPendingText": "Guard text (unconfirmed result)",
|
|
@@ -516,6 +525,9 @@ var ru = {
|
|
|
516
525
|
"field.continueTextInterrupted": "Текст продолжения (после перезапуска хоста)",
|
|
517
526
|
"field.continueTextInterruptedHint": "Текст, отправляемый, когда сканирование при запуске продолжает сессию, прерванную перезапуском; по умолчанию объясняет перезапуск и просит сверять состояние перед повтором.",
|
|
518
527
|
"default.continueTextInterrupted": LOCALIZED_TEXT_DEFAULTS.ru.continueTextInterrupted,
|
|
528
|
+
"field.continueTextQuestion": "Текст продолжения (вопрос без ответа)",
|
|
529
|
+
"field.continueTextQuestionHint": "Отправляется вместо обычного текста и без заметки защиты, если прерванным шагом был вопрос пользователю (ask_user_question), на который ещё нет ответа: модель задаёт вопрос снова и ждёт ответа.",
|
|
530
|
+
"default.continueTextQuestion": LOCALIZED_TEXT_DEFAULTS.ru.continueTextQuestion,
|
|
519
531
|
"field.guardTools": "Защита от повторного выполнения",
|
|
520
532
|
"field.guardToolsHint": "Перед продолжением проверяет последний вызов инструмента: если результат не подтверждён, просит сначала проверить состояние; если вызов успешен — не повторять его. Помогает не дублировать коммиты и вызовы API.",
|
|
521
533
|
"field.guardPendingText": "Текст защиты (результат не подтверждён)",
|
|
@@ -1290,6 +1302,7 @@ var AutoContinueSettingsCardController = class {
|
|
|
1290
1302
|
textField("continueTextLoop"),
|
|
1291
1303
|
textField("continueTextSilent"),
|
|
1292
1304
|
textField("continueTextInterrupted"),
|
|
1305
|
+
textField("continueTextQuestion"),
|
|
1293
1306
|
booleanField("guardTools"),
|
|
1294
1307
|
textField("guardPendingText"),
|
|
1295
1308
|
textField("guardDoneText"),
|
|
@@ -1339,6 +1352,7 @@ var AutoContinueSettingsCardController = class {
|
|
|
1339
1352
|
continueTextLoop: this.form.field("continueTextLoop"),
|
|
1340
1353
|
continueTextSilent: this.form.field("continueTextSilent"),
|
|
1341
1354
|
continueTextInterrupted: this.form.field("continueTextInterrupted"),
|
|
1355
|
+
continueTextQuestion: this.form.field("continueTextQuestion"),
|
|
1342
1356
|
guardTools: this.form.field("guardTools"),
|
|
1343
1357
|
guardPendingText: this.form.field("guardPendingText"),
|
|
1344
1358
|
guardDoneText: this.form.field("guardDoneText"),
|
|
@@ -1431,7 +1445,7 @@ var groups = [
|
|
|
1431
1445
|
{ id: "general", fields: ["paused", "showComposerToggle", "usePluginSource", "resumeSilentTurns", "resumeSubagentSessions", "resumeCompletedTurns", "loopMaxIterations", "notify"] },
|
|
1432
1446
|
{ id: "recovery", fields: ["graceMs", "cooldownMs", "maxConsecutive", "classify", "retryableErrorPatterns", "backoffFactor", "backoffMaxMs", "pauseWhenOffline", "offlineCheckMs", "resumeGoals", "resumePausedGoals"] },
|
|
1433
1447
|
{ id: "startup", fields: ["scanOnBoot", "resumeInterruptedChildren", "scanLimit", "freshMs"] },
|
|
1434
|
-
{ id: "prompts", fields: ["continueText", "continueTextMaxTokens", "continueTextSilent", "continueTextInterrupted", "continueTextLoop", "guardPendingText", "guardDoneText", "loopText"] },
|
|
1448
|
+
{ id: "prompts", fields: ["continueText", "continueTextMaxTokens", "continueTextSilent", "continueTextInterrupted", "continueTextQuestion", "continueTextLoop", "guardPendingText", "guardDoneText", "loopText"] },
|
|
1435
1449
|
{ id: "safety", fields: ["guardTools", "loopGuard", "loopShortChars", "loopWindowMs", "loopShortCount", "loopRepeatText", "loopToolRepeat"] },
|
|
1436
1450
|
{ id: "status", fields: ["verbose"] }
|
|
1437
1451
|
];
|
|
@@ -1441,6 +1455,7 @@ var textDefaults = {
|
|
|
1441
1455
|
continueTextSilent: "default.continueTextSilent",
|
|
1442
1456
|
continueTextLoop: "default.continueTextLoop",
|
|
1443
1457
|
continueTextInterrupted: "default.continueTextInterrupted",
|
|
1458
|
+
continueTextQuestion: "default.continueTextQuestion",
|
|
1444
1459
|
guardPendingText: "default.guardPendingText",
|
|
1445
1460
|
guardDoneText: "default.guardDoneText",
|
|
1446
1461
|
loopText: "default.loopText"
|