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

推荐订阅源

J
Java Code Geeks
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
腾讯CDC
D
Docker
The Cloudflare Blog
量子位
爱范儿
爱范儿
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Vercel News
Vercel News
MyScale Blog
MyScale 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(agents): cover compatible empty retries · openclaw/o...
steipete · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

77

mockedGlobalHookRunner,

88

mockedLog,

99

mockedRunEmbeddedAttempt,

10+

mockedResolveModelAsync,

1011

overflowBaseRunParams,

1112

resetRunOverflowCompactionHarnessMocks,

1213

} from "./run.overflow-compaction.harness.js";

@@ -644,6 +645,19 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

644645
645646

it("retries empty openai-compatible stop turns even when the backend reports output tokens", async () => {

646647

mockedClassifyFailoverReason.mockReturnValue(null);

648+

mockedResolveModelAsync.mockResolvedValue({

649+

model: {

650+

id: "qwen3.6-27b",

651+

provider: "llamacpp",

652+

contextWindow: 200000,

653+

api: "openai-completions",

654+

},

655+

error: null,

656+

authStorage: {

657+

setRuntimeApiKey: () => undefined,

658+

},

659+

modelRegistry: {},

660+

});

647661

mockedRunEmbeddedAttempt.mockResolvedValueOnce(

648662

makeAttemptResult({

649663

assistantTexts: [],

Original file line numberDiff line numberDiff line change

@@ -79,6 +79,19 @@ export const mockedResolveContextEngine = vi.fn(async () => mockedContextEngine)

7979

export const mockedBuildAgentRuntimePlan = vi.fn(() => ({}));

8080

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

8181

export const mockedEnsureRuntimePluginsLoaded = vi.fn<(params?: unknown) => void>();

82+

export const mockedResolveModelAsync = vi.fn(async () => ({

83+

model: {

84+

id: "test-model",

85+

provider: "anthropic",

86+

contextWindow: 200000,

87+

api: "messages",

88+

},

89+

error: null,

90+

authStorage: {

91+

setRuntimeApiKey: vi.fn(),

92+

},

93+

modelRegistry: {},

94+

}));

8295

export const mockedPrepareProviderRuntimeAuth = vi.fn(async () => undefined);

8396

export const mockedRunEmbeddedAttempt =

8497

vi.fn<(params: unknown) => Promise<EmbeddedRunAttemptResult>>();

@@ -245,6 +258,20 @@ export function resetRunOverflowCompactionHarnessMocks(): void {

245258

});

246259
247260

mockedEnsureRuntimePluginsLoaded.mockReset();

261+

mockedResolveModelAsync.mockReset();

262+

mockedResolveModelAsync.mockResolvedValue({

263+

model: {

264+

id: "test-model",

265+

provider: "anthropic",

266+

contextWindow: 200000,

267+

api: "messages",

268+

},

269+

error: null,

270+

authStorage: {

271+

setRuntimeApiKey: vi.fn(),

272+

},

273+

modelRegistry: {},

274+

});

248275

mockedPrepareProviderRuntimeAuth.mockReset();

249276

mockedPrepareProviderRuntimeAuth.mockResolvedValue(undefined);

250277

mockedRunEmbeddedAttempt.mockReset();

@@ -463,19 +490,7 @@ export async function loadRunOverflowCompactionHarness(): Promise<{

463490

}));

464491
465492

vi.doMock("./model.js", () => ({

466-

resolveModelAsync: vi.fn(async () => ({

467-

model: {

468-

id: "test-model",

469-

provider: "anthropic",

470-

contextWindow: 200000,

471-

api: "messages",

472-

},

473-

error: null,

474-

authStorage: {

475-

setRuntimeApiKey: vi.fn(),

476-

},

477-

modelRegistry: {},

478-

})),

493+

resolveModelAsync: mockedResolveModelAsync,

479494

}));

480495
481496

vi.doMock("../model-auth.js", () => ({