Skip to content

Commit c5bfc8a

Browse files
committed
test(channels): recognize matchesToolContextTarget as a threading capability
The surface contract required a declared threading surface to expose one of five functions, but core also consumes threading.matchesToolContextTarget directly (src/infra/outbound/source-reply-mirror.ts:364). Every existing implementer happened to pair that hook with resolveReplyToMode, so the gap stayed hidden until Twitch declared threading for target matching alone.
1 parent f913e54 commit c5bfc8a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/channels/plugins/contracts/test-helpers/surface-contract-suite.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ export function expectChannelSurfaceContract(params: {
115115
threading?.resolveAutoThreadId,
116116
threading?.resolveReplyTransport,
117117
threading?.resolveFocusedBinding,
118+
// Core reads this hook directly (source-reply-mirror.ts), so a channel may
119+
// declare threading for target matching alone without any reply-shaping hook.
120+
threading?.matchesToolContextTarget,
118121
].some((value) => typeof value === "function"),
119122
).toBe(true);
120123
return;

0 commit comments

Comments
 (0)