Skip to content

Commit 1ac42ea

Browse files
fix(build): pass notice delivery and lineage through the generated MCP server together after rebasing onto main
1 parent 980fd90 commit 1ac42ea

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/agent-bundle/src/mcp-server-runtime.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,9 @@ const installNoticeInboxSubscriptions = (
611611
context: GeneratedRouteRequestContext,
612612
) => {
613613
assertInboxUri(request.params.uri);
614-
const identity = requestIdentity(context, protocol.getClientVersion()?.name);
614+
// Subscriptions are not tool calls: no pre-tool hook precedes them, so
615+
// there is no correlation window to resolve lineage through.
616+
const identity = requestIdentity(context, protocol.getClientVersion()?.name, unavailable<AgentLineage>('not-provided'));
615617
try {
616618
await notices.subscribe({
617619
actor: identity.actor ?? unavailable(),
@@ -676,6 +678,7 @@ const installNoticeInboxSubscriptions = (
676678
else owed = true;
677679
return Promise.resolve();
678680
};
681+
};
679682

680683
const lineageHostFor = (target: string): LineageHost | undefined =>
681684
target === 'claude' || target === 'codex' || target === 'cursor' ? target : undefined;

0 commit comments

Comments
 (0)