From 3b682217df0d5a88315aa28f5cbd03beef9dae73 Mon Sep 17 00:00:00 2001 From: Kirat0201 Date: Thu, 12 Nov 2026 15:21:09 +0530 Subject: [PATCH] fix(server): explain recovery for restricted linked threads Explain that linked work keeps its recorded access through re-pairing and forks, and direct callers to start a fresh thread in the environment or through a full-access link. Refs pingdotgg/t3code#34761. Verified the production guard response, existing link-origin integration tests, and check:changed on Node 26.12.1. GPT-6 in Codex. --- apps/server/src/mcp/linkOrigin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/mcp/linkOrigin.ts b/apps/server/src/mcp/linkOrigin.ts index 7373fd51d2bd4..5311310b51c23 100644 --- a/apps/server/src/mcp/linkOrigin.ts +++ b/apps/server/src/mcp/linkOrigin.ts @@ -37,7 +37,7 @@ const fencingLinkOrigin = (caller: Pick) => { const outsideLink = (origin: OrchestrationV2LinkOrigin, message: string) => new OrchestratorMcpFailure({ code: "capability_denied", - message: `This work was started from ${origin.label} through a linked environment, so ${message} A link paired with full access is not limited this way.`, + message: `This work was started from ${origin.label} through a linked environment, so ${message} Its access level was recorded when it started. Re-pairing applies to new threads, and forks keep the original restriction. Start a new thread directly in this environment or through a link already paired with full access.`, }); /** A thread a fenced caller may change: one its own link started. */