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

推荐订阅源

博客园_首页
H
Help Net Security
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
A
About on SuperTechFans
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
I
InfoQ
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
U
Unit 42
The Cloudflare Blog
Y
Y Combinator Blog

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
test: tighten mattermost monitor assertions · openclaw/op...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -113,13 +113,15 @@ describe("mattermost mention gating", () => {

113113

const { resolver, decision } = evaluateMentionGateForMessage({ cfg });

114114

expect(decision.dropReason).toBeNull();

115115

expect(decision.shouldRequireMention).toBe(false);

116-

expect(resolver).toHaveBeenCalledWith(

117-

expect.objectContaining({

118-

accountId: "default",

119-

groupId: "chan-1",

120-

requireMentionOverride: false,

121-

}),

122-

);

116+

expect(resolver).toHaveBeenCalledTimes(1);

117+

const [resolverCall] = resolver.mock.calls[0] ?? [];

118+

expect(resolverCall).toStrictEqual({

119+

cfg,

120+

channel: "mattermost",

121+

accountId: "default",

122+

groupId: "chan-1",

123+

requireMentionOverride: false,

124+

});

123125

});

124126125127

it("accepts unmentioned thread replies in onmessage mode", () => {

@@ -475,12 +477,13 @@ describe("deliverMattermostReplyWithDraftPreview", () => {

475477

it("finalizes the preview in place when the final targets the same thread", async () => {

476478

const draftStream = createDraftStreamMock();

477479

const deliverFinal = vi.fn(async () => {});

480+

const client = createMattermostClientMock();

478481479482

await deliverMattermostReplyWithDraftPreview({

480483

payload: { text: "Final answer", replyToId: "child-post-789" } as never,

481484

info: { kind: "final" },

482485

kind: "channel",

483-

client: createMattermostClientMock(),

486+

client,

484487

draftStream,

485488

effectiveReplyToId: "thread-root-456",

486489

resolvePreviewFinalText: (text) => text?.trim(),

@@ -489,11 +492,11 @@ describe("deliverMattermostReplyWithDraftPreview", () => {

489492

deliverFinal,

490493

});

491494492-

expect(updateMattermostPostSpy).toHaveBeenCalledWith(

493-

expect.anything(),

494-

"preview-post-1",

495-

expect.objectContaining({ message: "Final answer" }),

496-

);

495+

expect(updateMattermostPostSpy).toHaveBeenCalledTimes(1);

496+

const [updateClient, updatePostId, updateParams] = updateMattermostPostSpy.mock.calls[0] ?? [];

497+

expect(updateClient).toBe(client);

498+

expect(updatePostId).toBe("preview-post-1");

499+

expect(updateParams).toStrictEqual({ message: "Final answer" });

497500

expect(draftStream.flush).toHaveBeenCalledTimes(1);

498501

expect(draftStream.seal).toHaveBeenCalledTimes(1);

499502

expect(draftStream.seal.mock.invocationCallOrder[0]).toBeLessThan(

@@ -525,11 +528,7 @@ describe("deliverMattermostReplyWithDraftPreview", () => {

525528526529

expect(draftStream.discardPending).toHaveBeenCalledTimes(1);

527530

expect(draftStream.clear).not.toHaveBeenCalled();

528-

expect(updateMattermostPostSpy).not.toHaveBeenCalledWith(

529-

expect.anything(),

530-

"preview-post-1",

531-

expect.objectContaining({ message: "↓ See below." }),

532-

);

531+

expect(updateMattermostPostSpy).not.toHaveBeenCalled();

533532

});

534533

});

535534