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

推荐订阅源

云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
爱范儿
爱范儿
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
博客园_首页
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园 - Franky
量子位
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence

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: invoke captured test callbacks · openclaw/openclaw@...
steipete · 2026-05-08 · via Recent Commits to openclaw:main

File tree

  • src

    • agents/pi-embedded-runner

      • auto-reply

      • media-understanding

      • plugins

        • contracts

    Original file line numberDiff line numberDiff line change

    @@ -26,7 +26,9 @@ function applyAndExpectWrapped(params: {

    2626

    params.model,

    2727

    );

    2828
    29-

    expect(agent.streamFn).toEqual(expect.any(Function));

    29+

    if (!agent.streamFn) {

    30+

    throw new Error("expected extra params to wrap streamFn");

    31+

    }

    3032

    }

    3133
    3234

    // Mock the logger to avoid noise in tests

    Original file line numberDiff line numberDiff line change

    @@ -236,7 +236,9 @@ describe("withReplyDispatcher", () => {

    236236

    });

    237237
    238238

    const dispatcherOptions = hoisted.createReplyDispatcherMock.mock.calls[0]?.[0];

    239-

    expect(dispatcherOptions?.beforeDeliver).toEqual(expect.any(Function));

    239+

    if (!dispatcherOptions?.beforeDeliver) {

    240+

    throw new Error("expected beforeDeliver hook");

    241+

    }

    240242
    241243

    const payload = await dispatcherOptions.beforeDeliver(

    242244

    { text: "original reply" },

    Original file line numberDiff line numberDiff line change

    @@ -537,8 +537,10 @@ describe("describeImageWithModel", () => {

    537537

    });

    538538

    expect(completeMock).toHaveBeenCalledTimes(2);

    539539

    const [, , retryOptions] = completeMock.mock.calls[1] ?? [];

    540-

    expect(retryOptions?.onPayload).toEqual(expect.any(Function));

    541-

    const retryPayload = await retryOptions?.onPayload?.(

    540+

    if (!retryOptions?.onPayload) {

    541+

    throw new Error("expected retry payload mapper");

    542+

    }

    543+

    const retryPayload = await retryOptions.onPayload(

    542544

    {

    543545

    reasoning: { effort: "high", summary: "auto" },

    544546

    reasoning_effort: "high",

    Original file line numberDiff line numberDiff line change

    @@ -519,7 +519,7 @@ describe("plugin-sdk root alias", () => {

    519519

    throw new Error("expected onDiagnosticEvent export");

    520520

    }

    521521

    const unsubscribe = (value as (listener: () => void) => () => void)(() => undefined);

    522-

    expect(unsubscribe).toEqual(expect.any(Function));

    522+

    unsubscribe();

    523523

    },

    524524

    },

    525525

    ])("$name", ({ exportName, exportValue, expectIdentity, assertForwarded }) => {

    Original file line numberDiff line numberDiff line change

    @@ -493,7 +493,10 @@ describe("plugin interactive handlers", () => {

    493493

    inflightCallbackDedupe?: Set<string>;

    494494

    };

    495495

    expect(hydrated.interactiveHandlers).toBeInstanceOf(Map);

    496-

    expect(hydrated.callbackDedupe?.clear).toEqual(expect.any(Function));

    496+

    if (!hydrated.callbackDedupe) {

    497+

    throw new Error("expected hydrated callback dedupe");

    498+

    }

    499+

    expect(() => hydrated.callbackDedupe?.clear()).not.toThrow();

    497500

    expect(hydrated.inflightCallbackDedupe).toBeInstanceOf(Set);

    498501
    499502

    const handler = vi.fn(async () => ({ handled: true }));