dsh-client-auto-continue 0.11.8 → 0.11.9

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.
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * Host half of the auto-continue plugin.
3
3
  *
4
- * - Registers the `auto-continue` settings namespace (the browser half's
5
- * settings card edits it; the host engine reads it).
4
+ * - Configuration is this entry's own Loader config: `apply(ctx, config)`
5
+ * injects it into the engine, where `resolveConfig` merges it with the
6
+ * schema defaults (the browser half's settings card writes the same values).
6
7
  * - Runs the single-instance auto-continue engine: listens to the session
7
8
  * event firehose, sends via `agent.followup`, cancels via `agent.cancel`.
8
9
  * - Serves a status bridge the browser half subscribes to: notifications and
@@ -11,6 +12,7 @@
11
12
  */
12
13
  import type { Context } from '@deepseek-ai/cordis';
13
14
  import z from '@deepseek-ai/schemastery';
15
+ import { type AutoContinueSettings } from './shared/core.ts';
14
16
  /** Settings namespace of the auto-continue plugin (lowercase kebab-case). */
15
17
  export declare const AUTO_CONTINUE_NS = "auto-continue";
16
18
  /** Wire schema; blank localized text fields tell resolveConfig() to select the active locale's defaults. */
@@ -21,6 +23,10 @@ export declare const AutoContinueSchema: z<Schemastery.ObjectS<{
21
23
  continueText: z<string, string>;
22
24
  /** Text sent when the output token ceiling is reached (same placeholders as `continueText`). */
23
25
  continueTextMaxTokens: z<string, string>;
26
+ /** Resume observed model activity that completes without visible output. */
27
+ resumeSilentTurns: z<boolean, boolean>;
28
+ /** Text sent to resume a silent turn (same placeholders as `continueText`). */
29
+ continueTextSilent: z<string, string>;
24
30
  /** Idempotency guard: inspect the last tool call before resuming and steer the model. */
25
31
  guardTools: z<boolean, boolean>;
26
32
  /** Guard text appended when the last tool call has no confirmed result (it may have partially executed). */
@@ -33,11 +39,11 @@ export declare const AutoContinueSchema: z<Schemastery.ObjectS<{
33
39
  cooldownMs: z<number, number>;
34
40
  /** Max consecutive auto-continues per session before stopping. */
35
41
  maxConsecutive: z<number, number>;
36
- /** Scan recently interrupted sessions on page load / reconnect. */
42
+ /** Recover delayed interrupted sessions during the host startup window. */
37
43
  scanOnBoot: z<boolean, boolean>;
38
- /** Max sessions the scan checks (most recently updated). */
44
+ /** Max eligible recoveries per scan pass (most recently active first). */
39
45
  scanLimit: z<number, number>;
40
- /** Scan only considers interruptions inside this window (ms). */
46
+ /** Interruption freshness and duration of startup polling (ms). */
41
47
  freshMs: z<number, number>;
42
48
  /** Log `[auto-continue]` lines to the browser console. */
43
49
  verbose: z<boolean, boolean>;
@@ -74,6 +80,10 @@ export declare const AutoContinueSchema: z<Schemastery.ObjectS<{
74
80
  continueText: z<string, string>;
75
81
  /** Text sent when the output token ceiling is reached (same placeholders as `continueText`). */
76
82
  continueTextMaxTokens: z<string, string>;
83
+ /** Resume observed model activity that completes without visible output. */
84
+ resumeSilentTurns: z<boolean, boolean>;
85
+ /** Text sent to resume a silent turn (same placeholders as `continueText`). */
86
+ continueTextSilent: z<string, string>;
77
87
  /** Idempotency guard: inspect the last tool call before resuming and steer the model. */
78
88
  guardTools: z<boolean, boolean>;
79
89
  /** Guard text appended when the last tool call has no confirmed result (it may have partially executed). */
@@ -86,11 +96,11 @@ export declare const AutoContinueSchema: z<Schemastery.ObjectS<{
86
96
  cooldownMs: z<number, number>;
87
97
  /** Max consecutive auto-continues per session before stopping. */
88
98
  maxConsecutive: z<number, number>;
89
- /** Scan recently interrupted sessions on page load / reconnect. */
99
+ /** Recover delayed interrupted sessions during the host startup window. */
90
100
  scanOnBoot: z<boolean, boolean>;
91
- /** Max sessions the scan checks (most recently updated). */
101
+ /** Max eligible recoveries per scan pass (most recently active first). */
92
102
  scanLimit: z<number, number>;
93
- /** Scan only considers interruptions inside this window (ms). */
103
+ /** Interruption freshness and duration of startup polling (ms). */
94
104
  freshMs: z<number, number>;
95
105
  /** Log `[auto-continue]` lines to the browser console. */
96
106
  verbose: z<boolean, boolean>;
@@ -121,9 +131,133 @@ export declare const AutoContinueSchema: z<Schemastery.ObjectS<{
121
131
  /** Text sent after the loop guard cancels and restarts a turn (supports {tool}). */
122
132
  loopText: z<string, string>;
123
133
  }>>;
134
+ /** Loader config is a live reference on DSH 0.1.7, and a plain object on older hosts. */
135
+ export type AutoContinueEntryConfig = AutoContinueSettings | {
136
+ get(): AutoContinueSettings | undefined;
137
+ };
138
+ export declare const Config: z<Schemastery.ObjectS<{
139
+ /** Active browser/UI locale mirrored by the client. */
140
+ locale: z<string, string>;
141
+ /** Text automatically sent after an interruption. */
142
+ continueText: z<string, string>;
143
+ /** Text sent when the output token ceiling is reached (same placeholders as `continueText`). */
144
+ continueTextMaxTokens: z<string, string>;
145
+ /** Resume observed model activity that completes without visible output. */
146
+ resumeSilentTurns: z<boolean, boolean>;
147
+ /** Text sent to resume a silent turn (same placeholders as `continueText`). */
148
+ continueTextSilent: z<string, string>;
149
+ /** Idempotency guard: inspect the last tool call before resuming and steer the model. */
150
+ guardTools: z<boolean, boolean>;
151
+ /** Guard text appended when the last tool call has no confirmed result (it may have partially executed). */
152
+ guardPendingText: z<string, string>;
153
+ /** Guard text appended when the last tool call completed successfully (don't rerun it). */
154
+ guardDoneText: z<string, string>;
155
+ /** Grace period after an interruption before auto-sending (ms). */
156
+ graceMs: z<number, number>;
157
+ /** Minimum interval between two auto-continues per session (ms). */
158
+ cooldownMs: z<number, number>;
159
+ /** Max consecutive auto-continues per session before stopping. */
160
+ maxConsecutive: z<number, number>;
161
+ /** Recover delayed interrupted sessions during the host startup window. */
162
+ scanOnBoot: z<boolean, boolean>;
163
+ /** Max eligible recoveries per scan pass (most recently active first). */
164
+ scanLimit: z<number, number>;
165
+ /** Interruption freshness and duration of startup polling (ms). */
166
+ freshMs: z<number, number>;
167
+ /** Log `[auto-continue]` lines to the browser console. */
168
+ verbose: z<boolean, boolean>;
169
+ /** Classify failures: auto-continue transient errors only; permanent ones are skipped and notified. */
170
+ classify: z<boolean, boolean>;
171
+ /** Provider-specific message/code/status fragments that explicitly count as retryable, one literal per line. */
172
+ retryableErrorPatterns: z<string, string>;
173
+ /** Cooldown multiplier per consecutive failure (adaptive backoff). */
174
+ backoffFactor: z<number, number>;
175
+ /** Cap on the effective backoff interval (ms). */
176
+ backoffMaxMs: z<number, number>;
177
+ /** Show browser notifications for auto-continue events. */
178
+ notify: z<boolean, boolean>;
179
+ /** Globally pause auto-continue: no live or scan send. */
180
+ paused: z<boolean, boolean>;
181
+ /** Loop guard: detect a running turn spinning in place and restart it. */
182
+ loopGuard: z<boolean, boolean>;
183
+ /** A model message shorter than this many chars counts as a short sentence (loop signal). */
184
+ loopShortChars: z<number, number>;
185
+ /** Consecutive short sentences within this window (ms) with no tool call in between trip the loop guard. */
186
+ loopWindowMs: z<number, number>;
187
+ /** Consecutive short sentences trip the loop guard. */
188
+ loopShortCount: z<number, number>;
189
+ /** Consecutive identical assistant messages trip the loop guard (strongest signal; also used for streamed intra-message repetition). */
190
+ loopRepeatText: z<number, number>;
191
+ /** Consecutive identical tool calls with identical arguments AND results trip the loop guard. */
192
+ loopToolRepeat: z<number, number>;
193
+ /** Text sent after the loop guard cancels and restarts a turn (supports {tool}). */
194
+ loopText: z<string, string>;
195
+ }>, Schemastery.ObjectT<{
196
+ /** Active browser/UI locale mirrored by the client. */
197
+ locale: z<string, string>;
198
+ /** Text automatically sent after an interruption. */
199
+ continueText: z<string, string>;
200
+ /** Text sent when the output token ceiling is reached (same placeholders as `continueText`). */
201
+ continueTextMaxTokens: z<string, string>;
202
+ /** Resume observed model activity that completes without visible output. */
203
+ resumeSilentTurns: z<boolean, boolean>;
204
+ /** Text sent to resume a silent turn (same placeholders as `continueText`). */
205
+ continueTextSilent: z<string, string>;
206
+ /** Idempotency guard: inspect the last tool call before resuming and steer the model. */
207
+ guardTools: z<boolean, boolean>;
208
+ /** Guard text appended when the last tool call has no confirmed result (it may have partially executed). */
209
+ guardPendingText: z<string, string>;
210
+ /** Guard text appended when the last tool call completed successfully (don't rerun it). */
211
+ guardDoneText: z<string, string>;
212
+ /** Grace period after an interruption before auto-sending (ms). */
213
+ graceMs: z<number, number>;
214
+ /** Minimum interval between two auto-continues per session (ms). */
215
+ cooldownMs: z<number, number>;
216
+ /** Max consecutive auto-continues per session before stopping. */
217
+ maxConsecutive: z<number, number>;
218
+ /** Recover delayed interrupted sessions during the host startup window. */
219
+ scanOnBoot: z<boolean, boolean>;
220
+ /** Max eligible recoveries per scan pass (most recently active first). */
221
+ scanLimit: z<number, number>;
222
+ /** Interruption freshness and duration of startup polling (ms). */
223
+ freshMs: z<number, number>;
224
+ /** Log `[auto-continue]` lines to the browser console. */
225
+ verbose: z<boolean, boolean>;
226
+ /** Classify failures: auto-continue transient errors only; permanent ones are skipped and notified. */
227
+ classify: z<boolean, boolean>;
228
+ /** Provider-specific message/code/status fragments that explicitly count as retryable, one literal per line. */
229
+ retryableErrorPatterns: z<string, string>;
230
+ /** Cooldown multiplier per consecutive failure (adaptive backoff). */
231
+ backoffFactor: z<number, number>;
232
+ /** Cap on the effective backoff interval (ms). */
233
+ backoffMaxMs: z<number, number>;
234
+ /** Show browser notifications for auto-continue events. */
235
+ notify: z<boolean, boolean>;
236
+ /** Globally pause auto-continue: no live or scan send. */
237
+ paused: z<boolean, boolean>;
238
+ /** Loop guard: detect a running turn spinning in place and restart it. */
239
+ loopGuard: z<boolean, boolean>;
240
+ /** A model message shorter than this many chars counts as a short sentence (loop signal). */
241
+ loopShortChars: z<number, number>;
242
+ /** Consecutive short sentences within this window (ms) with no tool call in between trip the loop guard. */
243
+ loopWindowMs: z<number, number>;
244
+ /** Consecutive short sentences trip the loop guard. */
245
+ loopShortCount: z<number, number>;
246
+ /** Consecutive identical assistant messages trip the loop guard (strongest signal; also used for streamed intra-message repetition). */
247
+ loopRepeatText: z<number, number>;
248
+ /** Consecutive identical tool calls with identical arguments AND results trip the loop guard. */
249
+ loopToolRepeat: z<number, number>;
250
+ /** Text sent after the loop guard cancels and restarts a turn (supports {tool}). */
251
+ loopText: z<string, string>;
252
+ }>> | z<AutoContinueSettings, AutoContinueEntryConfig>;
124
253
  /**
125
- * Plugin body: register the settings namespace, start the single-instance
126
- * engine, and serve the status bridge.
254
+ * Plugin body: start the single-instance engine and serve the status bridge.
255
+ *
256
+ * Configuration comes from this entry's own Loader config (merged with the
257
+ * schema defaults by `resolveConfig`); the current harness exposes entry
258
+ * config through the settings service instead of the legacy `register`/`get`
259
+ * namespace API this plugin was originally written against.
127
260
  * @param ctx - host plugin context.
261
+ * @param config - this entry's config (may be partial / absent → defaults).
128
262
  */
129
- export declare function apply(ctx: Context): void;
263
+ export declare function apply(ctx: Context, config?: AutoContinueEntryConfig): void;
@@ -12,6 +12,7 @@ export declare const LOCALIZED_TEXT_DEFAULTS: {
12
12
  readonly zh: {
13
13
  readonly continueText: "继续";
14
14
  readonly continueTextMaxTokens: "继续";
15
+ readonly continueTextSilent: "继续。你上一轮只输出了内部推理, 既没有回复也没有调用工具, 用户什么都没看到。每一轮都要以工具调用或可见回复结束。";
15
16
  readonly guardPendingText: "(上一步工具「{tool}」可能未完成, 先确认状态再继续, 不要重复执行)";
16
17
  readonly guardDoneText: "(上一步工具「{tool}」已完成, 结果: {result}; 不要重复执行, 直接继续)";
17
18
  readonly loopText: "(检测到你可能陷入循环, 请停止重复刚才的动作, 换一种方式继续)";
@@ -19,6 +20,7 @@ export declare const LOCALIZED_TEXT_DEFAULTS: {
19
20
  readonly en: {
20
21
  readonly continueText: "Continue";
21
22
  readonly continueTextMaxTokens: "Continue";
23
+ readonly 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.";
22
24
  readonly guardPendingText: "(The previous tool \"{tool}\" may not have completed. Check its state before continuing and do not run it again.)";
23
25
  readonly guardDoneText: "(The previous tool \"{tool}\" completed successfully. Result: {result}; do not run it again. Continue from there.)";
24
26
  readonly loopText: "(You may be stuck in a loop. Stop repeating the last action and continue with a different approach.)";
@@ -32,6 +34,10 @@ export interface AutoContinueSettings {
32
34
  continueText?: string;
33
35
  /** Text sent when the output token ceiling is reached (same placeholders as `continueText`). */
34
36
  continueTextMaxTokens?: string;
37
+ /** Resume observed model activity that completes without visible output. */
38
+ resumeSilentTurns?: boolean;
39
+ /** Text sent to resume a silent turn (same placeholders as `continueText`). */
40
+ continueTextSilent?: string;
35
41
  /** Idempotency guard: inspect the last tool call before resuming and steer the model. */
36
42
  guardTools?: boolean;
37
43
  /** Guard text appended when the last tool call has no confirmed result (it may have partially executed). */
@@ -44,11 +50,11 @@ export interface AutoContinueSettings {
44
50
  cooldownMs?: number;
45
51
  /** Max consecutive auto-continues per session before stopping. */
46
52
  maxConsecutive?: number;
47
- /** Scan recently interrupted sessions on page load / reconnect. */
53
+ /** Recover delayed interrupted sessions during the host startup window. */
48
54
  scanOnBoot?: boolean;
49
- /** Max sessions the scan checks (most recently updated). */
55
+ /** Max eligible recoveries per scan pass (most recently active first). */
50
56
  scanLimit?: number;
51
- /** Scan only considers interruptions inside this window (ms). */
57
+ /** Interruption freshness and duration of startup polling (ms). */
52
58
  freshMs?: number;
53
59
  /** Log `[auto-continue]` lines to the browser console. */
54
60
  verbose?: boolean;
@@ -88,7 +94,7 @@ export declare function resolveConfig(section: AutoContinueSettings | undefined)
88
94
  /**
89
95
  * 视为「非人为中断」的回合结束原因, 用于启动/重连扫描。
90
96
  * - `interrupted` 只由崩溃修复在宿主重载时写入(loop 永不实时发出), 因此仅在扫描路径处理;
91
- * - 实时事件路径只对 `error` / `max-tokens` 自动续跑;
97
+ * - 实时事件路径只对 `error` / `max-tokens` 自动续跑; 另外续跑没有可见输出的 `completed` / `no-visible-output` 回合(不属于本类型);
92
98
  * - `aborted`(用户停止)与 `blocked`(策略拒绝)永不自动继续。
93
99
  */
94
100
  type NonHumanReason = 'error' | 'interrupted' | 'max-tokens';
@@ -289,6 +295,10 @@ export interface SessionState {
289
295
  lastTurn: number | undefined;
290
296
  /** 我们最近一次自动发送的时间戳; 0 = 没有待确认的恢复。 */
291
297
  pendingRecoveryAt: number;
298
+ /** unknown: no observed start; empty: no model activity; silent: activity without visible output. */
299
+ turnOutput: 'unknown' | 'empty' | 'silent' | 'visible';
300
+ outputTurn: number | undefined;
301
+ outputStartSeq: number;
292
302
  /** 当前连续短句数(loop guard 信号 1: 空转)。 */
293
303
  shortRun: number;
294
304
  /** 最后一条短句的时间(时间窗判定用)。 */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-client-auto-continue",
3
3
  "description": "DSH Web UI plugin: automatically sends a localized continue prompt when a request is interrupted by network errors or other non-human causes",
4
- "version": "0.11.8",
4
+ "version": "0.11.9",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/types/index.d.ts",
@@ -46,7 +46,8 @@
46
46
  "build": "node build.mjs && tsc -p tsconfig.build.json",
47
47
  "watch": "node build.mjs --watch",
48
48
  "typecheck": "tsc --noEmit",
49
- "test": "node tests/simulate-host.mjs && node tests/settings-host-compat.mjs && node tests/simulate-client-loader.mjs && node tests/client-settings-services.mjs && node tests/locale-mirror-bounded.mjs && node tests/settings-card-ui.mjs && node tests/prepare-github-package.mjs",
49
+ "test:runtime": "node tests/settings-host-live.mjs",
50
+ "test": "node tests/scan-on-boot.mjs && node tests/silent-turn-boundaries.mjs && node tests/simulate-host.mjs && node tests/settings-host-compat.mjs && node tests/simulate-client-loader.mjs && node tests/client-settings-services.mjs && node tests/locale-mirror-bounded.mjs && node tests/settings-card-ui.mjs && node tests/prepare-github-package.mjs",
50
51
  "prepack": "npm run build"
51
52
  },
52
53
  "keywords": [
@@ -80,8 +81,13 @@
80
81
  "license": "MIT",
81
82
  "peerDependencies": {
82
83
  "react": "^18.2.0",
83
- "@deepseek-ai/dsh-settings": "^0.1.0-rc.7",
84
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.7 || ^0.1.7-0",
84
85
  "@deepseek-ai/schemastery": "^3.18.1",
85
86
  "@deepseek-ai/cordis": "^4.0.1"
87
+ },
88
+ "peerDependenciesMeta": {
89
+ "@deepseek-ai/dsh-settings": {
90
+ "optional": true
91
+ }
86
92
  }
87
93
  }
@@ -32,6 +32,11 @@ export const zh = {
32
32
  'field.continueTextMaxTokens': '超限时的继续文本',
33
33
  'field.continueTextMaxTokensHint': '达到输出 token 上限时自动发送的文本, 支持与继续文本相同的占位符。',
34
34
  'default.continueTextMaxTokens': LOCALIZED_TEXT_DEFAULTS.zh.continueTextMaxTokens,
35
+ 'field.resumeSilentTurns': '续跑无输出回合',
36
+ 'field.resumeSilentTurnsHint': '已观察到模型活动但没有可见输出时续跑;不把空回合、图片或扩展内容误判为静默,冷却与连续上限照常生效。',
37
+ 'field.continueTextSilent': '无输出回合的继续文本',
38
+ 'field.continueTextSilentHint': '回合只输出推理就结束时自动发送的文本, 支持与继续文本相同的占位符。',
39
+ 'default.continueTextSilent': LOCALIZED_TEXT_DEFAULTS.zh.continueTextSilent,
35
40
  'field.guardTools': '幂等护栏',
36
41
  'field.guardToolsHint': '续跑前检查上一步工具调用: 结果未确认时提示先确认状态, 已成功时提示不要重复执行, 避免重复 commit/调 API。',
37
42
  'field.guardPendingText': '结果未确认时的护栏文本',
@@ -45,13 +50,13 @@ export const zh = {
45
50
  'field.cooldownMs': '冷却时间 (ms)',
46
51
  'field.cooldownMsHint': '同一会话两次自动「继续」的最小间隔, 失败尝试也计入。',
47
52
  'field.maxConsecutive': '最大连续次数',
48
- 'field.maxConsecutiveHint': '同一会话连续自动「继续」的上限; 超过后停止, 直到用户手动介入或出现成功回合。',
49
- 'field.scanOnBoot': '启动/重连扫描',
50
- 'field.scanOnBootHint': '页面启动或重连时扫描最近中断的会话并自动续跑(如浏览器关闭期间宿主崩溃)。',
53
+ 'field.maxConsecutiveHint': '同一会话连续自动「继续」的上限;直到用户介入或成功回合产生已确认的可见输出才清零。',
54
+ 'field.scanOnBoot': '启动恢复扫描',
55
+ 'field.scanOnBootHint': '宿主启动后在扫描时间窗内等待延迟加载的中断会话,每个已就绪会话只检查一次。',
51
56
  'field.scanLimit': '扫描会话数',
52
- 'field.scanLimitHint': '最多检查多少个最近更新的会话(不含运行中与子代理会话)。',
57
+ 'field.scanLimitHint': '每次扫描最多恢复多少个符合条件的会话,优先最近活动的会话。',
53
58
  'field.freshMs': '扫描时间窗 (ms)',
54
- 'field.freshMsHint': '扫描只处理该时间窗内的中断。',
59
+ 'field.freshMsHint': '只处理该时间窗内的中断;启动轮询也会在这段时间后结束。',
55
60
  'field.verbose': '详细日志',
56
61
  'field.verboseHint': '在浏览器控制台输出 [auto-continue] 日志。',
57
62
  'field.classify': '错误分类',
@@ -141,6 +146,11 @@ export const en: Record<SettingsCardKey, string> = {
141
146
  'field.continueTextMaxTokens': 'Continue text (max tokens)',
142
147
  'field.continueTextMaxTokensHint': 'Text sent when the output token ceiling is reached; same placeholders as the continue text.',
143
148
  'default.continueTextMaxTokens': LOCALIZED_TEXT_DEFAULTS.en.continueTextMaxTokens,
149
+ 'field.resumeSilentTurns': 'Resume silent turns',
150
+ 'field.resumeSilentTurnsHint': 'Resume observed model activity without visible output. No-op turns, images and extension blocks are not treated as silent; cooldown and retry limits still apply.',
151
+ 'field.continueTextSilent': 'Continue text (silent turn)',
152
+ 'field.continueTextSilentHint': 'Text sent when a turn ends with reasoning only; same placeholders as the continue text.',
153
+ 'default.continueTextSilent': LOCALIZED_TEXT_DEFAULTS.en.continueTextSilent,
144
154
  'field.guardTools': 'Idempotency guard',
145
155
  'field.guardToolsHint': 'Before resuming, inspect the last tool call: if its result is unconfirmed, tell the model to check state first; if it succeeded, tell it not to rerun — avoids duplicate commits / API calls.',
146
156
  'field.guardPendingText': 'Guard text (unconfirmed result)',
@@ -154,13 +164,13 @@ export const en: Record<SettingsCardKey, string> = {
154
164
  'field.cooldownMs': 'Cooldown (ms)',
155
165
  'field.cooldownMsHint': 'Minimum interval between auto-continues per session; failed attempts count too.',
156
166
  'field.maxConsecutive': 'Max consecutive',
157
- 'field.maxConsecutiveHint': 'Max consecutive auto-continues per session; stops until a user intervenes or a turn completes.',
158
- 'field.scanOnBoot': 'Scan on load / reconnect',
159
- 'field.scanOnBootHint': 'Scan recently interrupted sessions on page load or reconnect (e.g. the host crashed while the browser was closed).',
167
+ 'field.maxConsecutiveHint': 'Max consecutive auto-continues per session; resets only after user intervention or a completed turn with confirmed visible output.',
168
+ 'field.scanOnBoot': 'Scan on host startup',
169
+ 'field.scanOnBootHint': 'Wait for delayed interrupted sessions during the startup scan window; inspect each settled session once.',
160
170
  'field.scanLimit': 'Scan limit',
161
- 'field.scanLimitHint': 'How many most-recently-updated sessions to check (running / subagent sessions excluded).',
171
+ 'field.scanLimitHint': 'Maximum eligible sessions to recover per pass, most recently active first.',
162
172
  'field.freshMs': 'Scan window (ms)',
163
- 'field.freshMsHint': 'Only interruptions inside this window are considered.',
173
+ 'field.freshMsHint': 'Only interruptions inside this window are considered; startup polling also ends after this duration.',
164
174
  'field.verbose': 'Verbose logs',
165
175
  'field.verboseHint': 'Log [auto-continue] lines to the browser console.',
166
176
  'field.classify': 'Classify errors',
@@ -39,6 +39,8 @@ export interface AutoContinueSettingsCardState extends CardShell {
39
39
  paused: CardFieldState;
40
40
  continueText: CardFieldState;
41
41
  continueTextMaxTokens: CardFieldState;
42
+ resumeSilentTurns: CardFieldState;
43
+ continueTextSilent: CardFieldState;
42
44
  guardTools: CardFieldState;
43
45
  guardPendingText: CardFieldState;
44
46
  guardDoneText: CardFieldState;
@@ -84,6 +86,8 @@ export class AutoContinueSettingsCardController {
84
86
  booleanField('paused'),
85
87
  textField('continueText'),
86
88
  textField('continueTextMaxTokens'),
89
+ booleanField('resumeSilentTurns'),
90
+ textField('continueTextSilent'),
87
91
  booleanField('guardTools'),
88
92
  textField('guardPendingText'),
89
93
  textField('guardDoneText'),
@@ -116,6 +120,8 @@ export class AutoContinueSettingsCardController {
116
120
  paused: this.form.field('paused'),
117
121
  continueText: this.form.field('continueText'),
118
122
  continueTextMaxTokens: this.form.field('continueTextMaxTokens'),
123
+ resumeSilentTurns: this.form.field('resumeSilentTurns'),
124
+ continueTextSilent: this.form.field('continueTextSilent'),
119
125
  guardTools: this.form.field('guardTools'),
120
126
  guardPendingText: this.form.field('guardPendingText'),
121
127
  guardDoneText: this.form.field('guardDoneText'),
@@ -593,6 +599,27 @@ export function AutoContinueSettingsCard(props: AutoContinueSettingsCardProps) {
593
599
  placeholder={t('default.continueTextMaxTokens')}
594
600
  onReset={() => props.resetField('continueTextMaxTokens')}
595
601
  />
602
+ <BooleanField
603
+ wide
604
+ id="auto-continue-resume-silent-turns"
605
+ label={t('field.resumeSilentTurns')}
606
+ hint={t('field.resumeSilentTurnsHint')}
607
+ {...shared}
608
+ {...state.resumeSilentTurns}
609
+ onEdit={(text) => props.edit('resumeSilentTurns', text)}
610
+ onReset={() => props.resetField('resumeSilentTurns')}
611
+ />
612
+ <ValueField
613
+ wide
614
+ id="auto-continue-continue-text-silent"
615
+ label={t('field.continueTextSilent')}
616
+ hint={t('field.continueTextSilentHint')}
617
+ {...shared}
618
+ {...state.continueTextSilent}
619
+ onEdit={(text) => props.edit('continueTextSilent', text)}
620
+ placeholder={t('default.continueTextSilent')}
621
+ onReset={() => props.resetField('continueTextSilent')}
622
+ />
596
623
  </SettingsSection>
597
624
 
598
625
  <SettingsSection