Skip to content

Commit b5394d7

Browse files
authored
Merge pull request #489 from dmoliveira/wt/watchdog-20-tools
Raise gateway watchdog default tool threshold
2 parents db85b9a + 69fddc2 commit b5394d7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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 8
337+
/gateway watchdog set --warning-threshold-seconds 180 --tool-call-threshold 20
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export const DEFAULT_GATEWAY_CONFIG = {
170170
longTurnWatchdog: {
171171
enabled: true,
172172
warningThresholdMs: 180000,
173-
toolCallWarningThreshold: 8,
173+
toolCallWarningThreshold: 20,
174174
reminderCooldownMs: 120000,
175175
maxSessionStateEntries: 1024,
176176
prefix: "[Turn Watchdog]:",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ export const DEFAULT_GATEWAY_CONFIG: GatewayConfig = {
830830
longTurnWatchdog: {
831831
enabled: true,
832832
warningThresholdMs: 180000,
833-
toolCallWarningThreshold: 8,
833+
toolCallWarningThreshold: 20,
834834
reminderCooldownMs: 120000,
835835
maxSessionStateEntries: 1024,
836836
prefix: "[Turn Watchdog]:",

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

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

0 commit comments

Comments
 (0)