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

推荐订阅源

T
Tailwind CSS Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
L
LangChain Blog
博客园_首页
Recent Announcements
Recent Announcements
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
博客园 - 叶小钗
博客园 - 【当耐特】
The Cloudflare Blog
J
Java Code Geeks
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans

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(sessions_spawn): tolerate ACP-only fields for subagen...
vincentkoc · 2026-04-27 · via Recent Commits to openclaw:main

@@ -74,7 +74,7 @@ describe("sessions_spawn tool", () => {

7474

properties?: {

7575

runtime?: { enum?: string[] };

7676

resumeSessionId?: unknown;

77-

streamTo?: unknown;

77+

streamTo?: { description?: string };

7878

};

7979

};

8080

@@ -94,7 +94,7 @@ describe("sessions_spawn tool", () => {

9494

properties?: {

9595

runtime?: { enum?: string[] };

9696

resumeSessionId?: unknown;

97-

streamTo?: unknown;

97+

streamTo?: { description?: string };

9898

};

9999

};

100100

@@ -103,6 +103,7 @@ describe("sessions_spawn tool", () => {

103103

expect(schema.properties?.runtime?.enum).toEqual(["subagent", "acp"]);

104104

expect(schema.properties?.resumeSessionId).toBeDefined();

105105

expect(schema.properties?.streamTo).toBeDefined();

106+

expect(schema.properties?.streamTo?.description).toContain('Requires runtime="acp"');

106107

});

107108108109

it("hides ACP runtime affordances when the ACP backend is unhealthy", () => {

@@ -489,7 +490,7 @@ describe("sessions_spawn tool", () => {

489490

);

490491

});

491492492-

it("rejects resumeSessionId without runtime=acp", async () => {

493+

it("ignores resumeSessionId without runtime=acp", async () => {

493494

const tool = createSessionsSpawnTool({

494495

agentSessionKey: "agent:main:main",

495496

});

@@ -499,8 +500,20 @@ describe("sessions_spawn tool", () => {

499500

resumeSessionId: "7f4a78e0-f6be-43fe-855c-c1c4fd229bc4",

500501

});

501502502-

expect(JSON.stringify(result)).toContain("resumeSessionId is only supported for runtime=acp");

503-

expect(hoisted.spawnSubagentDirectMock).not.toHaveBeenCalled();

503+

expect(result.details).toMatchObject({

504+

status: "accepted",

505+

childSessionKey: "agent:main:subagent:1",

506+

runId: "run-subagent",

507+

});

508+

expect(hoisted.spawnSubagentDirectMock).toHaveBeenCalledWith(

509+

expect.objectContaining({

510+

task: "resume prior work",

511+

}),

512+

expect.any(Object),

513+

);

514+

expect(hoisted.spawnSubagentDirectMock.mock.calls[0]?.[0]).not.toHaveProperty(

515+

"resumeSessionId",

516+

);

504517

expect(hoisted.spawnAcpDirectMock).not.toHaveBeenCalled();

505518

});

506519

@@ -529,7 +542,7 @@ describe("sessions_spawn tool", () => {

529542

expect(hoisted.spawnSubagentDirectMock).not.toHaveBeenCalled();

530543

});

531544532-

it('rejects streamTo when runtime is not "acp"', async () => {

545+

it('ignores streamTo when runtime is not "acp"', async () => {

533546

const tool = createSessionsSpawnTool({

534547

agentSessionKey: "agent:main:main",

535548

});

@@ -541,12 +554,18 @@ describe("sessions_spawn tool", () => {

541554

});

542555543556

expect(result.details).toMatchObject({

544-

status: "error",

557+

status: "accepted",

558+

childSessionKey: "agent:main:subagent:1",

559+

runId: "run-subagent",

545560

});

546-

const details = result.details as { error?: string };

547-

expect(details.error).toContain("streamTo is only supported for runtime=acp");

548561

expect(hoisted.spawnAcpDirectMock).not.toHaveBeenCalled();

549-

expect(hoisted.spawnSubagentDirectMock).not.toHaveBeenCalled();

562+

expect(hoisted.spawnSubagentDirectMock).toHaveBeenCalledWith(

563+

expect.objectContaining({

564+

task: "analyze file",

565+

}),

566+

expect.any(Object),

567+

);

568+

expect(hoisted.spawnSubagentDirectMock.mock.calls[0]?.[0]).not.toHaveProperty("streamTo");

550569

});

551570552571

it("keeps attachment content schema unconstrained for llama.cpp grammar safety", () => {