


























@@ -53,10 +53,17 @@ describe("noteBootstrapFileSize", () => {
5353await noteBootstrapFileSize({} as OpenClawConfig);
5454expect(note).toHaveBeenCalledTimes(1);
5555const [message, title] = note.mock.calls[0] ?? [];
56-expect(String(title)).toBe("Bootstrap file size");
57-expect(String(message)).toContain("will be truncated");
58-expect(String(message)).toContain("AGENTS.md");
59-expect(String(message)).toContain("max/file");
56+expect(title).toBe("Bootstrap file size");
57+expect(message).toBe(
58+[
59+"Workspace bootstrap files exceed limits and will be truncated:",
60+"- AGENTS.md: 25,000 raw / 20,000 injected (20% truncated; max/file)",
61+"Total bootstrap injected chars: 20,000 (13% of max/total 150,000).",
62+"Total bootstrap raw chars (before truncation): 25,000.",
63+"",
64+"- Tip: tune `agents.defaults.bootstrapMaxChars` for per-file limits.",
65+].join("\n"),
66+);
6067});
61686269it("stays silent when files are comfortably within limits", async () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。