style: bun run fix
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user