
















@@ -388,7 +388,10 @@ describe("bootstrap prompt warnings", () => {
388388previousSignature: signature,
389389});
390390expect(always.warningShown).toBe(true);
391-expect(always.lines.length).toBeGreaterThan(0);
391+expect(always.lines).toStrictEqual([
392+"AGENTS.md: 150 raw -> 100 injected (~33% removed; max/file).",
393+"If unintentional, raise agents.defaults.bootstrapMaxChars and/or agents.defaults.bootstrapTotalMaxChars.",
394+]);
392395});
393396394397it("uses file path in signature to avoid collisions for duplicate names", () => {
@@ -452,7 +455,7 @@ describe("bootstrap prompt warnings", () => {
452455expect(meta.warningMode).toBe("once");
453456expect(meta.warningShown).toBe(true);
454457expect(meta.truncatedFiles).toBe(1);
455-expect(meta.nearLimitFiles).toBeGreaterThanOrEqual(1);
458+expect(meta.nearLimitFiles).toBe(1);
456459expect(meta.promptWarningSignature).toBe(warning.signature);
457460expect(meta.warningSignaturesSeen).toEqual([warning.signature]);
458461});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。