Skip to content

Commit 9c1436c

Browse files
authored
Merge pull request #490 from dmoliveira/wt/watchdog-runtime-limits
Increase gateway watchdog runtime thresholds
2 parents b5394d7 + 5a48810 commit 9c1436c

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

docs/command-handbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Use these directly in OpenCode:
334334
/gateway doctor
335335
/gateway watchdog status
336336
/gateway watchdog doctor
337-
/gateway watchdog set --warning-threshold-seconds 180 --tool-call-threshold 20
337+
/gateway watchdog set --warning-threshold-seconds 300 --tool-call-threshold 50
338338
/gateway watchdog disable
339339
/gateway continuation report --minutes 120 --limit 10 --json
340340
/gateway tune memory --json

plugin/gateway-core/dist/config/schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ export const DEFAULT_GATEWAY_CONFIG = {
169169
},
170170
longTurnWatchdog: {
171171
enabled: true,
172-
warningThresholdMs: 180000,
173-
toolCallWarningThreshold: 20,
172+
warningThresholdMs: 300000,
173+
toolCallWarningThreshold: 50,
174174
reminderCooldownMs: 120000,
175175
maxSessionStateEntries: 1024,
176176
prefix: "[Turn Watchdog]:",

plugin/gateway-core/src/config/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ export const DEFAULT_GATEWAY_CONFIG: GatewayConfig = {
829829
},
830830
longTurnWatchdog: {
831831
enabled: true,
832-
warningThresholdMs: 180000,
833-
toolCallWarningThreshold: 20,
832+
warningThresholdMs: 300000,
833+
toolCallWarningThreshold: 50,
834834
reminderCooldownMs: 120000,
835835
maxSessionStateEntries: 1024,
836836
prefix: "[Turn Watchdog]:",

plugin/gateway-core/test/config-load.test.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ test("loadGatewayConfig keeps defaults for new safety guard knobs", () => {
3838
assert.equal(config.globalProcessPressure.selfLowLabel, "LOW")
3939
assert.equal(config.globalProcessPressure.selfAppendMarker, true)
4040
assert.equal(config.longTurnWatchdog.enabled, true)
41-
assert.equal(config.longTurnWatchdog.warningThresholdMs, 180000)
42-
assert.equal(config.longTurnWatchdog.toolCallWarningThreshold, 20)
41+
assert.equal(config.longTurnWatchdog.warningThresholdMs, 300000)
42+
assert.equal(config.longTurnWatchdog.toolCallWarningThreshold, 50)
4343
assert.equal(config.longTurnWatchdog.reminderCooldownMs, 120000)
4444
assert.equal(config.longTurnWatchdog.maxSessionStateEntries, 1024)
4545
assert.equal(config.longTurnWatchdog.prefix, "[Turn Watchdog]:")
@@ -252,8 +252,8 @@ test("loadGatewayConfig normalizes invalid guard marker and verbosity values", (
252252
assert.equal(config.globalProcessPressure.selfLowLabel, "LOW")
253253
assert.equal(config.globalProcessPressure.selfAppendMarker, true)
254254
assert.equal(config.longTurnWatchdog.enabled, true)
255-
assert.equal(config.longTurnWatchdog.warningThresholdMs, 180000)
256-
assert.equal(config.longTurnWatchdog.toolCallWarningThreshold, 20)
255+
assert.equal(config.longTurnWatchdog.warningThresholdMs, 300000)
256+
assert.equal(config.longTurnWatchdog.toolCallWarningThreshold, 50)
257257
assert.equal(config.longTurnWatchdog.reminderCooldownMs, 120000)
258258
assert.equal(config.longTurnWatchdog.maxSessionStateEntries, 1024)
259259
assert.equal(config.longTurnWatchdog.prefix, "[Turn Watchdog]:")

scripts/gateway_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
UTC = getattr(datetime, "UTC", timezone.utc)
2020
DEFAULT_LONG_TURN_WATCHDOG = {
2121
"enabled": True,
22-
"warningThresholdMs": 180000,
23-
"toolCallWarningThreshold": 8,
22+
"warningThresholdMs": 300000,
23+
"toolCallWarningThreshold": 50,
2424
"reminderCooldownMs": 120000,
2525
"maxSessionStateEntries": 1024,
2626
"prefix": "[Turn Watchdog]:",

0 commit comments

Comments
 (0)