惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
B
Blog RSS Feed
I
InfoQ
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
H
Help Net Security
L
LangChain Blog
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(mattermost): suppress draft progress chatter · opencl...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -62,6 +62,7 @@ Docs: https://docs.openclaw.ai

6262

- Discord/Slack/Mattermost: align draft preview tool-progress config help with the runtime behavior that hides interim tool updates when `streaming.preview.toolProgress` is false. Thanks @vincentkoc.

6363

- Feishu: use the shared channel progress formatter for streaming-card tool status lines, including raw command/detail output and message-tool filtering. Thanks @vincentkoc.

6464

- Mattermost: use the shared progress draft formatter for tool status previews, including raw command/detail output when `agents.defaults.toolProgressDetail: "raw"` is enabled. Thanks @vincentkoc.

65+

- Mattermost: suppress standalone default tool-progress messages while draft previews are active, including when draft tool lines are disabled. Thanks @vincentkoc.

6566

- OpenAI Codex: honor `auth.order.openai-codex` when starting app-server clients without an explicit auth profile, so status/model probes and implicit startup use the configured Codex account instead of falling back to the default profile. Thanks @vincentkoc.

6667

- OpenAI Codex: let SSRF-guarded provider requests inherit OpenClaw's undici IPv4/IPv6 fallback policy, so ChatGPT-backed Codex runs recover on IPv4-working hosts when DNS still returns unreachable IPv6 addresses. Fixes #76857. Thanks @jplavoiemtl and @SymbolStar.

6768

- Gateway/systemd: preserve operator-added secrets in the Gateway env file across re-stage while clearing OpenClaw-managed keys (such as `OPENCLAW_GATEWAY_TOKEN`) so a fresh staging value is never shadowed by a stale env-file copy; operator secrets are also retained when the state-dir `.env` is empty. Fixes #76860. Thanks @hclsys.

Original file line numberDiff line numberDiff line change

@@ -17,6 +17,7 @@ import {

1717

resolveMattermostThreadSessionContext,

1818

shouldFinalizeMattermostPreviewAfterDispatch,

1919

shouldClearMattermostDraftPreview,

20+

shouldSuppressMattermostDefaultToolProgressMessages,

2021

shouldUpdateMattermostDraftToolProgress,

2122

type MattermostMentionGateInput,

2223

type MattermostRequireMentionResolverInput,

@@ -314,6 +315,37 @@ describe("shouldUpdateMattermostDraftToolProgress", () => {

314315

});

315316

});

316317
318+

describe("shouldSuppressMattermostDefaultToolProgressMessages", () => {

319+

type MattermostConfig = NonNullable<NonNullable<OpenClawConfig["channels"]>["mattermost"]>;

320+
321+

function resolveSuppressDefaultProgress(mattermostConfig: MattermostConfig) {

322+

const account = resolveMattermostAccount({

323+

cfg: {

324+

channels: {

325+

mattermost: mattermostConfig,

326+

},

327+

},

328+

accountId: "default",

329+

allowUnresolvedSecretRef: true,

330+

});

331+

return shouldSuppressMattermostDefaultToolProgressMessages(account);

332+

}

333+
334+

it("suppresses standalone progress messages while draft previews are active", () => {

335+

expect(resolveSuppressDefaultProgress({ enabled: true })).toBe(true);

336+

});

337+
338+

it("keeps standalone progress messages available when draft streaming is off", () => {

339+

expect(

340+

resolveSuppressDefaultProgress({

341+

streaming: {

342+

mode: "off",

343+

},

344+

}),

345+

).toBe(false);

346+

});

347+

});

348+
317349

describe("shouldClearMattermostDraftPreview", () => {

318350

it("deletes the preview after successful normal final delivery", () => {

319351

expect(

Original file line numberDiff line numberDiff line change

@@ -127,6 +127,12 @@ export function shouldUpdateMattermostDraftToolProgress(

127127

);

128128

}

129129
130+

export function shouldSuppressMattermostDefaultToolProgressMessages(

131+

account: Pick<ResolvedMattermostAccount, "streamingMode">,

132+

): boolean {

133+

return account.streamingMode !== "off";

134+

}

135+
130136

type MediaKind = "image" | "audio" | "video" | "document" | "unknown";

131137
132138

type MattermostReaction = {

@@ -1648,6 +1654,8 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}

16481654

});

16491655

const draftPreviewEnabled = account.streamingMode !== "off";

16501656

const draftToolProgressEnabled = shouldUpdateMattermostDraftToolProgress(account);

1657+

const suppressDefaultToolProgressMessages =

1658+

shouldSuppressMattermostDefaultToolProgressMessages(account);

16511659

const draftStream = draftPreviewEnabled

16521660

? createMattermostDraftStream({

16531661

client,

@@ -1844,6 +1852,9 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}

18441852

replyOptions: {

18451853

...replyOptions,

18461854

disableBlockStreaming: true,

1855+

...(suppressDefaultToolProgressMessages

1856+

? { suppressDefaultToolProgressMessages: true }

1857+

: {}),

18471858

onModelSelected,

18481859

onPartialReply: (payload) => {

18491860

if (account.streamingMode !== "progress") {