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

推荐订阅源

Forbes - Security
Forbes - Security
The Register - Security
The Register - Security
G
Google Developers Blog
罗磊的独立博客
WordPress大学
WordPress大学
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
Recorded Future
Recorded Future
Microsoft Azure Blog
Microsoft Azure Blog
Google DeepMind News
Google DeepMind News
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Full Disclosure
The Cloudflare Blog
B
Blog RSS Feed
S
Schneier on Security
T
Tenable Blog
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
T
Tor Project blog
N
Netflix TechBlog - Medium
T
Threatpost
NISL@THU
NISL@THU
Stack Overflow Blog
Stack Overflow Blog
N
News | PayPal Newsroom
N
News and Events Feed by Topic
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
P
Privacy & Cybersecurity Law Blog
C
CERT Recently Published Vulnerability Notes
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy International News Feed
博客园 - 【当耐特】
Help Net Security
Help Net Security
The Hacker News
The Hacker News
Hugging Face - Blog
Hugging Face - Blog
TaoSecurity Blog
TaoSecurity Blog
S
Secure Thoughts
C
Cisco Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: guard agent seven-hit mock calls · openclaw/openclaw@e4498e0
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -437,7 +437,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

437437

});

438438
439439

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(2);

440-

const secondCall = mockedRunEmbeddedAttempt.mock.calls[1]?.[0] as { prompt?: string };

440+

const secondCall = mockedRunEmbeddedAttempt.mock.calls.at(1)?.[0] as { prompt?: string };

441441

expect(secondCall.prompt).toContain(REASONING_ONLY_RETRY_INSTRUCTION);

442442

expectWarnMessageWith("reasoning-only assistant turn detected");

443443

});

@@ -472,7 +472,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

472472

});

473473
474474

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(1);

475-

const onlyCall = mockedRunEmbeddedAttempt.mock.calls[0]?.[0] as { prompt?: string };

475+

const onlyCall = mockedRunEmbeddedAttempt.mock.calls.at(0)?.[0] as { prompt?: string };

476476

expect(onlyCall.prompt).not.toContain(REASONING_ONLY_RETRY_INSTRUCTION);

477477

expect(onlyCall.prompt).not.toContain(EMPTY_RESPONSE_RETRY_INSTRUCTION);

478478

expectNoWarnMessageWith("reasoning-only assistant turn detected");

@@ -641,7 +641,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

641641

});

642642
643643

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(2);

644-

const secondCall = mockedRunEmbeddedAttempt.mock.calls[1]?.[0] as { prompt?: string };

644+

const secondCall = mockedRunEmbeddedAttempt.mock.calls.at(1)?.[0] as { prompt?: string };

645645

expect(secondCall.prompt).toContain(REASONING_ONLY_RETRY_INSTRUCTION);

646646

expectWarnMessageWith("reasoning-only assistant turn detected");

647647

});

@@ -681,7 +681,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

681681

});

682682
683683

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(2);

684-

const secondCall = mockedRunEmbeddedAttempt.mock.calls[1]?.[0] as { prompt?: string };

684+

const secondCall = mockedRunEmbeddedAttempt.mock.calls.at(1)?.[0] as { prompt?: string };

685685

expect(secondCall.prompt).toContain(EMPTY_RESPONSE_RETRY_INSTRUCTION);

686686

expectWarnMessageWith("empty response detected");

687687

});

@@ -735,7 +735,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

735735

});

736736
737737

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(2);

738-

const secondCall = mockedRunEmbeddedAttempt.mock.calls[1]?.[0] as { prompt?: string };

738+

const secondCall = mockedRunEmbeddedAttempt.mock.calls.at(1)?.[0] as { prompt?: string };

739739

expect(secondCall.prompt).toContain(EMPTY_RESPONSE_RETRY_INSTRUCTION);

740740

expectWarnMessageWith("empty response detected");

741741

});

@@ -804,7 +804,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

804804

});

805805
806806

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(2);

807-

const secondCall = mockedRunEmbeddedAttempt.mock.calls[1]?.[0] as { prompt?: string };

807+

const secondCall = mockedRunEmbeddedAttempt.mock.calls.at(1)?.[0] as { prompt?: string };

808808

expect(secondCall.prompt).toContain(EMPTY_RESPONSE_RETRY_INSTRUCTION);

809809

expectWarnMessageWith("empty response detected");

810810

});

@@ -1923,7 +1923,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

19231923

});

19241924
19251925

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(1);

1926-

const onlyCall = mockedRunEmbeddedAttempt.mock.calls[0]?.[0] as { prompt?: string };

1926+

const onlyCall = mockedRunEmbeddedAttempt.mock.calls.at(0)?.[0] as { prompt?: string };

19271927

expect(onlyCall.prompt).not.toContain(REASONING_ONLY_RETRY_INSTRUCTION);

19281928

expect(onlyCall.prompt).not.toContain(EMPTY_RESPONSE_RETRY_INSTRUCTION);

19291929

expect(result.payloads).toEqual([{ text: "NO_REPLY" }]);

Original file line numberDiff line numberDiff line change

@@ -257,7 +257,7 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {

257257

});

258258
259259

expect(mockedEnsureAuthProfileStore).not.toHaveBeenCalled();

260-

const authStoreCall = mockedEnsureAuthProfileStoreWithoutExternalProfiles.mock.calls[0] as

260+

const authStoreCall = mockedEnsureAuthProfileStoreWithoutExternalProfiles.mock.calls.at(0) as

261261

| [string | undefined, { allowKeychainPrompt?: boolean } | undefined]

262262

| undefined;

263263

expect(typeof authStoreCall?.[0]).toBe("string");

@@ -297,7 +297,7 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {

297297

expect(typeof forwardedTools.normalize).toBe("function");

298298

const forwardedTransport = expectRecordFields(forwardedPlan.transport, {});

299299

expect(typeof forwardedTransport.resolveExtraParams).toBe("function");

300-

const attemptParams = mockedRunEmbeddedAttempt.mock.calls[0]?.[0] as

300+

const attemptParams = mockedRunEmbeddedAttempt.mock.calls.at(0)?.[0] as

301301

| EmbeddedRunAttemptParams

302302

| undefined;

303303

expect(attemptParams?.runtimePlan).toBe(runtimePlan);

@@ -395,7 +395,7 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {

395395

forwardedAuthProfileId: "openai-codex:work",

396396

},

397397

});

398-

const harnessParams = pluginRunAttempt.mock.calls[0]?.[0];

398+

const harnessParams = pluginRunAttempt.mock.calls.at(0)?.[0];

399399

expect(harnessParams?.runtimePlan).toBe(runtimePlan);

400400

expect(Object.keys(harnessParams?.authProfileStore.profiles ?? {})).toEqual([

401401

"openai-codex:work",

@@ -472,7 +472,7 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {

472472

forwardedAuthProfileId: "openai-codex:work",

473473

},

474474

});

475-

const harnessParams = pluginRunAttempt.mock.calls[0]?.[0];

475+

const harnessParams = pluginRunAttempt.mock.calls.at(0)?.[0];

476476

expect(harnessParams?.runtimePlan).toBe(runtimePlan);

477477

expect(mockedMarkAuthProfileSuccess).toHaveBeenCalledTimes(1);

478478

const [[successParams]] = mockedMarkAuthProfileSuccess.mock.calls as unknown as Array<

@@ -549,7 +549,7 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {

549549

forwardedAuthProfileId: "openai-codex:default",

550550

},

551551

});

552-

const harnessParams = pluginRunAttempt.mock.calls[0]?.[0];

552+

const harnessParams = pluginRunAttempt.mock.calls.at(0)?.[0];

553553

expect(harnessParams?.runtimePlan).toBe(runtimePlan);

554554

});

555555

@@ -622,7 +622,7 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {

622622

forwardedAuthProfileId: "openai-codex:default",

623623

},

624624

});

625-

const harnessParams = pluginRunAttempt.mock.calls[0]?.[0];

625+

const harnessParams = pluginRunAttempt.mock.calls.at(0)?.[0];

626626

expect(harnessParams?.runtimePlan).toBe(runtimePlan);

627627

});

628628

@@ -707,7 +707,7 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {

707707

forwardedAuthProfileId: "openai:personal",

708708

},

709709

});

710-

const harnessParams = pluginRunAttempt.mock.calls[0]?.[0];

710+

const harnessParams = pluginRunAttempt.mock.calls.at(0)?.[0];

711711

expect(harnessParams?.runtimePlan).toBe(runtimePlan);

712712

expect(Object.keys(harnessParams?.authProfileStore.profiles ?? {})).toEqual([

713713

"openai:personal",

Original file line numberDiff line numberDiff line change

@@ -1308,7 +1308,7 @@ describe("compaction-safeguard recent-turn preservation", () => {

13081308
13091309

expect(result.cancel).not.toBe(true);

13101310

expect(mockSummarizeInStages).toHaveBeenCalledTimes(1);

1311-

const droppedCall = mockSummarizeInStages.mock.calls[0]?.[0];

1311+

const droppedCall = mockSummarizeInStages.mock.calls.at(0)?.[0];

13121312

expect(droppedCall?.customInstructions).toContain(

13131313

"Produce a compact, factual summary with these exact section headings:",

13141314

);

@@ -1351,7 +1351,7 @@ describe("compaction-safeguard recent-turn preservation", () => {

13511351
13521352

await compactionHandler(event, mockContext);

13531353
1354-

const call = mockSummarizeInStages.mock.calls[0]?.[0];

1354+

const call = mockSummarizeInStages.mock.calls.at(0)?.[0];

13551355

expect(call?.reserveTokens).toBe(128_000);

13561356

});

13571357

@@ -1539,7 +1539,7 @@ describe("compaction-safeguard recent-turn preservation", () => {

15391539
15401540

expect(result.cancel).not.toBe(true);

15411541

expect(mockSummarizeInStages).toHaveBeenCalledTimes(2);

1542-

const secondCall = mockSummarizeInStages.mock.calls[1]?.[0];

1542+

const secondCall = mockSummarizeInStages.mock.calls.at(1)?.[0];

15431543

expect(secondCall?.customInstructions).toContain("Quality check feedback");

15441544

expect(secondCall?.customInstructions).toContain("missing_section:## Decisions");

15451545

});

@@ -1626,7 +1626,7 @@ describe("compaction-safeguard recent-turn preservation", () => {

16261626
16271627

expect(result.cancel).not.toBe(true);

16281628

expect(mockSummarizeInStages).toHaveBeenCalledTimes(2);

1629-

const secondCall = mockSummarizeInStages.mock.calls[1]?.[0];

1629+

const secondCall = mockSummarizeInStages.mock.calls.at(1)?.[0];

16301630

expect(secondCall?.customInstructions).toContain("latest_user_ask_not_reflected");

16311631

});

16321632

@@ -1817,7 +1817,7 @@ describe("compaction-safeguard recent-turn preservation", () => {

18171817
18181818

expect(result.cancel).not.toBe(true);

18191819

expect(mockSummarizeInStages).toHaveBeenCalledTimes(1);

1820-

const call = mockSummarizeInStages.mock.calls[0]?.[0];

1820+

const call = mockSummarizeInStages.mock.calls.at(0)?.[0];

18211821

expect(call?.previousSummary).toBeUndefined();

18221822

expect(JSON.stringify(call?.messages[0])).toContain("<previous-compaction-summary>");

18231823

expect(JSON.stringify(call?.messages[0])).toContain("Old duplicated section");

@@ -1880,14 +1880,14 @@ describe("compaction-safeguard recent-turn preservation", () => {

18801880

const compaction = expectCompactionResult(result);

18811881

expect(getApiKeyAndHeadersMock).not.toHaveBeenCalled();

18821882

expect(mockSummarizeInStages).not.toHaveBeenCalled();

1883-

const providerInput = providerSummarize.mock.calls[0]?.[0];

1883+

const providerInput = providerSummarize.mock.calls.at(0)?.[0];

18841884

expect(providerInput?.previousSummary).toBe("previous provider summary");

18851885

expect(providerInput?.customInstructions).toContain("Keep milestone names.");

18861886

expect(providerInput?.summarizationInstructions).toEqual({

18871887

identifierPolicy: "custom",

18881888

identifierInstructions: "Preserve ticket IDs exactly.",

18891889

});

1890-

const providerMessages = providerSummarize.mock.calls[0]?.[0]?.messages ?? [];

1890+

const providerMessages = providerSummarize.mock.calls.at(0)?.[0]?.messages ?? [];

18911891

expect(JSON.stringify(providerMessages)).not.toContain("openclaw.runtime-context");

18921892

expect(JSON.stringify(providerMessages)).not.toContain("secret runtime context");

18931893

expect(compaction.summary).toContain("provider summary body");

Original file line numberDiff line numberDiff line change

@@ -115,7 +115,7 @@ function expectFields(value: unknown, expected: Record<string, unknown>): void {

115115

}

116116
117117

function firstCallArg(mock: ReturnType<typeof vi.fn>): Record<string, unknown> {

118-

const [arg] = mock.mock.calls[0] ?? [];

118+

const [arg] = mock.mock.calls.at(0) ?? [];

119119

if (!arg || typeof arg !== "object") {

120120

throw new Error("expected first call argument object");

121121

}

@@ -206,8 +206,8 @@ describe("subagent registry lifecycle hardening", () => {

206206

).resolves.toBeUndefined();

207207
208208

expect(warn).toHaveBeenCalledTimes(1);

209-

expect(warn.mock.calls[0]?.[0]).toBe("failed to finalize subagent background task state");

210-

expectFields(warn.mock.calls[0]?.[1], {

209+

expect(warn.mock.calls.at(0)?.[0]).toBe("failed to finalize subagent background task state");

210+

expectFields(warn.mock.calls.at(0)?.[1], {

211211

error: { name: "Error", message: "task store boom" },

212212

runId: "***",

213213

childSessionKey: "agent:main:…",

@@ -250,10 +250,10 @@ describe("subagent registry lifecycle hardening", () => {

250250

).resolves.toBeUndefined();

251251
252252

expect(warn).toHaveBeenCalledTimes(1);

253-

expect(warn.mock.calls[0]?.[0]).toBe(

253+

expect(warn.mock.calls.at(0)?.[0]).toBe(

254254

"failed to update subagent background task delivery state",

255255

);

256-

expectFields(warn.mock.calls[0]?.[1], {

256+

expectFields(warn.mock.calls.at(0)?.[1], {

257257

error: { name: "Error", message: "delivery state boom" },

258258

runId: "***",

259259

childSessionKey: "agent:main:…",

@@ -677,10 +677,10 @@ describe("subagent registry lifecycle hardening", () => {

677677

).resolves.toBeUndefined();

678678
679679

expect(warn).toHaveBeenCalledTimes(1);

680-

expect(warn.mock.calls[0]?.[0]).toBe(

680+

expect(warn.mock.calls.at(0)?.[0]).toBe(

681681

"failed to update subagent background task delivery state",

682682

);

683-

expectFields(warn.mock.calls[0]?.[1], {

683+

expectFields(warn.mock.calls.at(0)?.[1], {

684684

error: { name: "Error", message: "delivery status boom" },

685685

deliveryStatus: "delivered",

686686

});