refactor(agents): use silent token constant in prompts

This commit is contained in:
sebslight
2026-02-16 08:19:15 -05:00
parent e3e8046a93
commit 553d17f8af
7 changed files with 65 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import { describe, expect, it } from "vitest";
import { SILENT_REPLY_TOKEN } from "../auto-reply/tokens.js";
import { buildSubagentSystemPrompt } from "./subagent-announce.js";
import { buildAgentSystemPrompt, buildRuntimeLine } from "./system-prompt.js";
@@ -367,7 +368,7 @@ describe("buildAgentSystemPrompt", () => {
expect(prompt).toContain("message: Send messages and channel actions");
expect(prompt).toContain("### message tool");
expect(prompt).toContain("respond with ONLY: NO_REPLY");
expect(prompt).toContain(`respond with ONLY: ${SILENT_REPLY_TOKEN}`);
});
it("includes runtime provider capabilities when present", () => {