mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-17 02:37:33 +00:00
fix(plugin-sdk): restore compact progress draft cap
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user