fix(plugin-sdk): restore compact progress draft cap

This commit is contained in:
Peter Steinberger
2026-05-11 14:31:12 +01:00
parent b2153e01d8
commit f3f1509ee9
2 changed files with 3 additions and 5 deletions

View File

@@ -253,7 +253,7 @@ describe("channel-streaming", () => {
lines: ["x".repeat(160)],
formatLine: (line) => `\`${line}\``,
}),
).toBe(`Shelling\n• \`${"x".repeat(107)}\``);
).toBe(`Shelling\n• \`${"x".repeat(71)}\``);
});
it("keeps compacted raw progress lines from leaking unmatched markdown backticks", () => {
@@ -274,9 +274,7 @@ describe("channel-streaming", () => {
lines: line ? [line] : [],
});
expect(text).toBe(
"Shelling\n🛠 run node script…/some/really/deep/path/that/keeps/going/and/going/index…",
);
expect(text).toBe("Shelling\n🛠 run node script…th/that/keeps/going/and/going/index…");
expect(text.match(/`/g) ?? []).toHaveLength(0);
});

View File

@@ -113,7 +113,7 @@ export const DEFAULT_PROGRESS_DRAFT_LABELS = [
] as const;
export const DEFAULT_PROGRESS_DRAFT_INITIAL_DELAY_MS = 5_000;
const DEFAULT_PROGRESS_DRAFT_MAX_LINE_CHARS = 108;
const DEFAULT_PROGRESS_DRAFT_MAX_LINE_CHARS = 72;
const NON_WORK_PROGRESS_TOOL_NAMES = new Set([
"message",