style: bun run fix

This commit is contained in:
roboomp
2026-06-21 03:54:32 +00:00
parent 832810e212
commit a7662b4208
2 changed files with 4 additions and 7 deletions
@@ -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;
@@ -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");