fix: widen progress draft preview lines

This commit is contained in:
Peter Steinberger
2026-05-11 14:01:38 +01:00
parent 08cffbb067
commit 0a92d7a8ff
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -19,6 +19,7 @@ Docs: https://docs.openclaw.ai
- Agents: add per-agent `tools.message.crossContext` overrides so sandboxed/public agents can restrict message sends to the current conversation without changing the global bot policy.
- Agents: add per-agent `tools.message.actions.allow` overrides so sandboxed/public agents can expose and enforce send-only message tools.
- Agents: omit the sandbox workspace marker from compact command progress previews while keeping internal sandbox diagnostics unchanged.
- Agents: widen progress draft command preview lines by 50% so Discord inline tool updates preserve more useful command context.
- Build: upgrade workspace package management to pnpm 11 and keep Docker, install, update, and release workflows on the pnpm 11 config surface. (#79414) Thanks @altaywtf.
- Build: align Telegram QA workflows and git source installs with the pnpm 11 workspace build allowlist surface. (#80588) Thanks @altaywtf.
- Models: add provider-level `localService` startup for on-demand local model servers before OpenAI-compatible requests, including one-shot model probes.
+4 -2
View File
@@ -253,7 +253,7 @@ describe("channel-streaming", () => {
lines: ["x".repeat(80)],
formatLine: (line) => `\`${line}\``,
}),
).toBe(`Shelling\n• \`${"x".repeat(71)}\``);
).toBe(`Shelling\n• \`${"x".repeat(107)}\``);
});
it("keeps compacted raw progress lines from leaking unmatched markdown backticks", () => {
@@ -274,7 +274,9 @@ describe("channel-streaming", () => {
lines: line ? [line] : [],
});
expect(text).toBe("Shelling\n🛠️ run node script…th/that/keeps/going/and/going/index…");
expect(text).toBe(
"Shelling\n🛠️ run node script…/some/really/deep/path/that/keeps/going/and/going/index…",
);
expect(text.match(/`/g) ?? []).toHaveLength(0);
});
+1 -1
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 = 72;
const DEFAULT_PROGRESS_DRAFT_MAX_LINE_CHARS = 108;
const NON_WORK_PROGRESS_TOOL_NAMES = new Set([
"message",