fix(agent): keep session scout notices live
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { afterEach, describe, expect, it, vi } from "bun:test";
|
||||
import { Settings } from "../../src/config/settings";
|
||||
import initAgentPrompt from "../../src/prompts/agents/init.md" with { type: "text" };
|
||||
import * as taskDiscovery from "../../src/task/discovery";
|
||||
import { TaskTool } from "../../src/task/index";
|
||||
import { isScoutSpawnable } from "../../src/task/spawn-policy";
|
||||
@@ -130,3 +131,10 @@ describe("task tool description scout gating", () => {
|
||||
expect(description).toContain("### reviewer");
|
||||
});
|
||||
});
|
||||
|
||||
describe("bundled agent prompt scout gating", () => {
|
||||
it("does not hard-code scout in the init agent prompt", () => {
|
||||
expect(initAgentPrompt.toLowerCase()).not.toContain("scout");
|
||||
expect(initAgentPrompt).toContain("multiple research agents");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user