Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client): load earlier turns works for MCP threads over T3 Connect #17599

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/17599/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 53 additions and 2 deletions (loading 1).

x
0 of 4 viewed, 4 left
4 additions and 1 deletionpackages/client-runtime/src/state/boundedThreadSnapshotHttp.tsModified
View file
@@ -40,7 +40,10 @@
group: "orchestration",
method: "GET",
url: (httpBaseUrl) =>
- environmentEndpointUrl(httpBaseUrl, `/api/orchestration/threads/${input.threadId}/bounded`),
+ environmentEndpointUrl(
+ httpBaseUrl,
+ `/api/orchestration/threads/${encodeURIComponent(input.threadId)}/bounded`,
+ ),
timeoutMs: input.timeoutMs ?? DEFAULT_BOUNDED_THREAD_SNAPSHOT_TIMEOUT_MS,
request: ({ client, headers }) =>
client.threadBoundedSnapshot({
45 additions and 0 deletionspackages/client-runtime/src/state/environmentHttpAuth.test.tsModified
View file
@@ -4,6 +4,7 @@
ORCHESTRATION_PROTOCOL_HEADER,
ORCHESTRATION_PROTOCOL_VERSION_TEXT,
ProjectId,
+ ThreadId,
type AuthSessionState,
type OrchestrationV2ShellSnapshot,
OrchestrationV2ThreadDetailSnapshot,
@@ -307,6 +308,50 @@
}),
​
+ // MCP-created thread ids contain ":", which the request path percent-encodes.