Files
oh-my-pi/packages/coding-agent/test/core/system-prompt.python.test.ts
T
can1357 d676150f9c refactor(coding-agent/core): simplified Python gateway coordination by removing reference counting
- Simplified Python gateway coordination by removing reference counting and idle timeout functionality.
- Updated Python kernel initialization to support environment variable setup and working directory configuration.
- Modified interactive status display to show Python and venv paths instead of client counts.
- Updated system prompt to clarify CHECKPOINT step 0 timing after user request completion.
2026-01-23 09:31:40 +01:00

18 lines
494 B
TypeScript

import { describe, expect, it } from "bun:test";
import { buildSystemPrompt } from "../../src/core/system-prompt";
describe("buildSystemPrompt", () => {
it("includes python tool details when enabled", async () => {
const prompt = await buildSystemPrompt({
cwd: "/tmp",
toolNames: ["python"],
contextFiles: [],
skills: [],
rules: [],
});
expect(prompt).toContain("**python:** stateful scripting and REPL work");
expect(prompt).toContain("What python IS for");
});
});