session-system-prompt.test.ts 406 B

12345678
  1. import { expect, test } from "bun:test"
  2. import { SessionSystemPrompt } from "@opencode-ai/core/session/system-prompt"
  3. test("renders the default system prompt instructions", () => {
  4. const prompt = SessionSystemPrompt.make(["edit", "read", "shell"])
  5. expect(prompt).not.toContain("${OPENCODE_TOOL_GUIDANCE}")
  6. expect(prompt).toContain("Use the edit tool for targeted changes to existing text files")
  7. })