fix(mcp): validate delivery detail before removing it

This commit is contained in:
morluto
2026-10-14 02:40:06 +08:00
parent da49ea2692
commit a92b960f6f
2 changed files with 11 additions and 0 deletions
@@ -67,6 +67,14 @@ mcpTest(
const app = await fixtureApp();
const client = await openProductionTarget(mcp, onTestFinished, app);
const invalidDetail = await client.callTool({
name: "decode_interface_builder",
arguments: { detail: "brief" },
});
expect(parseMcpToolError(invalidDetail)).toMatchObject({
error: { code: "invalid_request" },
});
// Summary first: its own retained parent must serve every later page.
const summarized = await client.callTool({
name: "decode_interface_builder",