diff --git a/src/plugin-sdk/channel-streaming.test.ts b/src/plugin-sdk/channel-streaming.test.ts index 002a37b964b..4dc5ed0935a 100644 --- a/src/plugin-sdk/channel-streaming.test.ts +++ b/src/plugin-sdk/channel-streaming.test.ts @@ -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); }); diff --git a/src/plugin-sdk/channel-streaming.ts b/src/plugin-sdk/channel-streaming.ts index 87b4b2cb1e2..45a516cf297 100644 --- a/src/plugin-sdk/channel-streaming.ts +++ b/src/plugin-sdk/channel-streaming.ts @@ -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",