From 850d55e2ea8e5d4261c5c6639a2ed051eb3161ce Mon Sep 17 00:00:00 2001 From: can1357 Date: Sun, 21 Jun 2026 00:04:05 +0200 Subject: [PATCH] config(coding-agent/config): updated default agent settings - Increase default immune turns for advisor concerns from 1 to 3. - Update default compaction strategy from context-full to snapcompact. --- docs/advisor-watchdog.md | 2 +- docs/compaction.md | 2 +- docs/settings.md | 8 ++++---- packages/coding-agent/src/config/settings-schema.ts | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/advisor-watchdog.md b/docs/advisor-watchdog.md index a697a4141..c9fddae74 100644 --- a/docs/advisor-watchdog.md +++ b/docs/advisor-watchdog.md @@ -98,7 +98,7 @@ note text When you deliberately interrupt the agent (Esc, or a cancel from collab, ACP, RPC, the SDK, or an extension), the advisor stops auto-resuming it. An interrupting `concern`/`blocker` raised while the run is stopped is recorded as a visible advisor card instead of restarting the turn, and a concern already in flight when you interrupt is preserved the same way rather than driving a surprise resume. The advice re-enters context the next time you resume — a new message, the `.`/`c` continue shortcut, or a steer/follow-up. A normal yield is unaffected: the advisor can still steer and resume a run the agent ended on its own. -`advisor.immuneTurns` limits interruption frequency. After the advisor successfully delivers a `concern` or `blocker` through the steering channel, later concerns/blockers are routed as non-interrupting asides until the configured number of primary turns has completed. The default is `1`. `nit` notes are unchanged, and advice raised while user-interrupt auto-resume suppression is active is still preserved instead of restarting a stopped run. + `advisor.immuneTurns` limits interruption frequency. After the advisor successfully delivers a `concern` or `blocker` through the steering channel, later concerns/blockers are routed as non-interrupting asides until the configured number of primary turns has completed. The default is `3`. `nit` notes are unchanged, and advice raised while user-interrupt auto-resume suppression is active is still preserved instead of restarting a stopped run. ## Bounded catch-up with `advisor.syncBacklog` diff --git a/docs/compaction.md b/docs/compaction.md index 84adb67f6..d79536385 100644 --- a/docs/compaction.md +++ b/docs/compaction.md @@ -404,7 +404,7 @@ Post-navigation event exposing new/old leaf and optional summary entry. From `settings-schema.ts`: - `compaction.enabled` = `true` -- `compaction.strategy` = `"context-full"` (`"handoff"`, `"shake"`, `"snapcompact"`, and `"off"` are also supported) +- `compaction.strategy` = `"snapcompact"` (`"context-full"`, `"handoff"`, `"shake"`, and `"off"` are also supported) - `compaction.reserveTokens` = `16384` - `compaction.keepRecentTokens` = `20000` - `compaction.autoContinue` = `true` diff --git a/docs/settings.md b/docs/settings.md index c8b6eb7a5..2ba7ef945 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -198,7 +198,7 @@ tools: bash: prompt compaction: - strategy: context-full + strategy: snapcompact thresholdPercent: 80 theme: @@ -329,7 +329,7 @@ See [Advisor and WATCHDOG.md](./advisor-watchdog.md) for runtime behavior, `WATC | `advisor.enabled` | boolean | `false` | Enable the advisor runtime when `modelRoles.advisor` resolves to an available model. | | `advisor.subagents` | boolean | `false` | Also enable advisor runtimes for spawned task/eval subagents. | | `advisor.syncBacklog` | enum | `off` | Bounded advisor catch-up delay: `off`, `1`, `3`, or `5`. The primary waits up to 30 seconds only while advisor backlog is at or above the threshold. | -| `advisor.immuneTurns` | number | `1` | After a `concern`/`blocker` interrupts, route further concerns/blockers as non-interrupting asides for this many completed primary turns. | +| `advisor.immuneTurns` | number | `3` | After a `concern`/`blocker` interrupts, route further concerns/blockers as non-interrupting asides for this many completed primary turns. | ### Thinking @@ -503,7 +503,7 @@ contextPromotion: compaction: enabled: true - strategy: context-full # context-full, handoff, shake, snapcompact, off + strategy: snapcompact # context-full, handoff, shake, snapcompact, off thresholdPercent: -1 # -1 = default reserve-based behavior thresholdTokens: -1 # fixed token limit when > 0 remoteEnabled: true @@ -516,7 +516,7 @@ memory: |---|---|---|---| | `contextPromotion.enabled` | boolean | `true` | Promote relevant earlier context. | | `compaction.enabled` | boolean | `true` | Automatic conversation compaction. | -| `compaction.strategy` | enum | `context-full` | `context-full`, `handoff`, `shake`, `snapcompact`, `off`. | +| `compaction.strategy` | enum | `snapcompact` | `context-full`, `handoff`, `shake`, `snapcompact`, `off`. | | `compaction.thresholdPercent` | number | `-1` | Percent-of-context trigger; `-1` = reserve-based default. | | `compaction.thresholdTokens` | number | `-1` | Fixed token trigger when `> 0`. | | `compaction.reserveTokens` | number | `16384` | Tokens reserved for the next turn. | diff --git a/packages/coding-agent/src/config/settings-schema.ts b/packages/coding-agent/src/config/settings-schema.ts index 4c8ea5efd..acd8b7ec1 100644 --- a/packages/coding-agent/src/config/settings-schema.ts +++ b/packages/coding-agent/src/config/settings-schema.ts @@ -413,7 +413,7 @@ export const SETTINGS_SCHEMA = { }, "advisor.immuneTurns": { type: "number", - default: 1, + default: 3, ui: { tab: "model", group: "Advisor", @@ -422,9 +422,9 @@ export const SETTINGS_SCHEMA = { "After an advisor concern or blocker interrupts, route further concerns/blockers non-interruptingly for this many primary turns.", options: [ { value: "0", label: "0 turns", description: "Allow every concern/blocker to interrupt." }, - { value: "1", label: "1 turn", description: "Default." }, + { value: "1", label: "1 turn" }, { value: "2", label: "2 turns" }, - { value: "3", label: "3 turns" }, + { value: "3", label: "3 turns", description: "Default." }, { value: "4", label: "4 turns" }, { value: "5", label: "5 turns" }, ], @@ -1653,7 +1653,7 @@ export const SETTINGS_SCHEMA = { "compaction.strategy": { type: "enum", values: ["context-full", "handoff", "shake", "snapcompact", "off"] as const, - default: "context-full", + default: "snapcompact", ui: { tab: "context", group: "Compaction",