Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): switching providers no longer revokes the other provider's T3 tool access #36801

ClosedAlb11747(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/36801/headopened View on GitHub

Showing 12 changed files with 6 additions and 6 deletions (loading 10).

x
0 of 12 viewed, 12 left
1 addition and 1 deletionapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsModified
View file
@@ -12348,7 +12348,7 @@
nativeThreadId: string,
queryPolicy: Effect.Success<ReturnType<typeof queryPolicyForTurn>>,
- const mcpSession = yield* mcpSessions.read(turnInput.threadId);
+ const mcpSession = yield* mcpSessions.read(turnInput.threadId, adapterOptions.instanceId);
const mcpOverrides = claudeMcpQueryOverrides({
mcpSession,
readOnlySandbox:
5 additions and 5 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.tsModified
View file
@@ -1854,7 +1854,7 @@
const mcpSessions = yield* McpProviderSessions.McpProviderSessions;
const readMcpSession = (threadId: ThreadId | null) =>
- threadId === null ? Effect.undefined : mcpSessions.read(threadId);
+ threadId === null ? Effect.undefined : mcpSessions.read(threadId, adapterOptions.instanceId);
const { clientFactory, digest, fileSystem, idAllocator, serverConfig } = adapterOptions;
const continuationRequests = adapterOptions.continuationRequests;
@@ -6439,7 +6439,7 @@
event.status === "completed" &&
nativeThreadId != null
- const hasPendingWake = (yield* mcpSessions.read(input.context.input.threadId))
+ const hasPendingWake = (yield* readMcpSession(input.context.input.threadId))
?.hasPendingWake;