docs: add gateway self-update prompt guidance

This commit is contained in:
Peter Steinberger
2026-01-08 01:36:55 +01:00
parent 1bc4e1ae88
commit 56310bad44
2 changed files with 24 additions and 1 deletions

View File

@@ -71,4 +71,15 @@ describe("buildAgentSystemPromptAppend", () => {
expect(prompt).toContain("Prefer aliases when specifying model overrides");
expect(prompt).toContain("- Opus: anthropic/claude-opus-4-5");
});
it("adds gateway self-update guidance when gateway tool is available", () => {
const prompt = buildAgentSystemPromptAppend({
workspaceDir: "/tmp/clawd",
toolNames: ["gateway", "bash"],
});
expect(prompt).toContain("## Gateway Self-Update");
expect(prompt).toContain("config.apply");
expect(prompt).toContain("update.run");
});
});