diff --git a/packages/coding-agent/src/modes/interactive-mode.ts b/packages/coding-agent/src/modes/interactive-mode.ts index 4eda89cf5..98d9c5770 100644 --- a/packages/coding-agent/src/modes/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive-mode.ts @@ -1934,9 +1934,7 @@ export class InteractiveMode implements InteractiveModeContext { // `search_tool_bm25` — re-activate it here whenever the registry built it // (issue #3165). `resolve` is hidden too; the standing handler below // consumes plan-approval calls through it. - const planAugmentations = ["resolve", "write"].filter( - name => this.session.getToolByName(name) !== undefined, - ); + const planAugmentations = ["resolve", "write"].filter(name => this.session.getToolByName(name) !== undefined); const uniquePlanTools = [...new Set([...previousTools, ...planAugmentations])]; this.#planModePreviousTools = previousTools; diff --git a/packages/coding-agent/test/interactive-mode-default-plan-mode.test.ts b/packages/coding-agent/test/interactive-mode-default-plan-mode.test.ts index 5275696e3..ee48677c9 100644 --- a/packages/coding-agent/test/interactive-mode-default-plan-mode.test.ts +++ b/packages/coding-agent/test/interactive-mode-default-plan-mode.test.ts @@ -120,10 +120,9 @@ describe("InteractiveMode plan.defaultOnStartup", () => { // not the initial active set. Plan-mode entry must force-activate it or // the agent only has `edit`, which fails on a non-existent file. const writeTool = makeTool("write"); - const created = createHarness( - Settings.isolated({ "plan.defaultOnStartup": true, "compaction.enabled": false }), - [writeTool], - ); + const created = createHarness(Settings.isolated({ "plan.defaultOnStartup": true, "compaction.enabled": false }), [ + writeTool, + ]); expect(session?.getActiveToolNames()).not.toContain("write");