From 44d5b4b25e0831769c1bd4e5426ef498d0bd3c74 Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Fri, 9 Oct 2026 02:21:21 +0000 Subject: [PATCH] test(artifacts): assert asset-catalog target refusal only on macOS Outside Darwin the session reports inspect_asset_catalog as unavailable on the host before the provider checks the target kind, so the Linux test shards would see capability_unavailable rather than unsupported_target. Co-Authored-By: Claude Opus 5.5 --- tests/boundary/mcp/dylibResolutionMcp.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/boundary/mcp/dylibResolutionMcp.test.ts b/tests/boundary/mcp/dylibResolutionMcp.test.ts index 02d75c45d..e07f9dde0 100644 --- a/tests/boundary/mcp/dylibResolutionMcp.test.ts +++ b/tests/boundary/mcp/dylibResolutionMcp.test.ts @@ -141,7 +141,13 @@ it("reports target kinds that artifact operations cannot inspect as unsupported" await withClient(async (client) => { for (const [path, operation, requirement] of [ [plist, "decode_interface_builder", "requires an active .app bundle"], - [plist, "inspect_asset_catalog", "requires an active .app bundle"], + // Elsewhere the session reports asset catalogs as unavailable on the + // host before the provider checks the target kind. + ...(process.platform === "darwin" + ? ([ + [plist, "inspect_asset_catalog", "requires an active .app bundle"], + ] as const) + : []), [tool, "inspect_keyed_archive", "requires an active plist or .app"], ] as const) { const open = { name: "open_binary", arguments: { path } };