Skip to content

Commit 6869ee6

Browse files
test(server): drop unrelated decoder rename from thread-read test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 0876513 commit 6869ee6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/server/src/mcp/OrchestratorMcpToolkit.integration.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
type ModelSelection,
1111
OrchestratorMcpDelegateTaskResult,
1212
OrchestratorMcpThreadInterruptResult,
13-
OrchestratorMcpThreadReadResult,
1413
OrchestratorMcpThreadSendResult,
14+
OrchestratorMcpThreadReadResult,
1515
ProjectId,
1616
ProviderDriverKind,
1717
ProviderInstanceId,
@@ -80,13 +80,13 @@ const delegatedResult = "Delegated API boundary inspected.";
8080
const cancellationPrompt = "Remain active until the parent cancels this delegated task.";
8181
const queuedFollowupPrompt = "Complete the queued follow-up and return the final result.";
8282
const queuedFollowupResult = "Queued delegated follow-up completed.";
83+
const decodeThreadRead = Schema.decodeUnknownEffect(OrchestratorMcpThreadReadResult);
8384
const longFollowupResult = "Long delegated follow-up line. ".repeat(1_500);
8485

8586
const decodeDelegateTaskResult = Schema.decodeUnknownEffect(OrchestratorMcpDelegateTaskResult);
8687
const decodeThreadInterruptResult = Schema.decodeUnknownEffect(
8788
OrchestratorMcpThreadInterruptResult,
8889
);
89-
const decodeThreadReadResult = Schema.decodeUnknownEffect(OrchestratorMcpThreadReadResult);
9090
const decodeThreadSendResult = Schema.decodeUnknownEffect(OrchestratorMcpThreadSendResult);
9191

9292
const codexSelection = {
@@ -732,7 +732,7 @@ describe("orchestrator MCP toolkit", () => {
732732
}).pipe(Effect.withTracer(tracer));
733733
expect(read.isError).not.toBe(true);
734734
expect(transferReads.length).toBeGreaterThan(0);
735-
const firstPage = yield* decodeThreadReadResult(read.structuredContent);
735+
const firstPage = yield* decodeThreadRead(read.structuredContent);
736736
const finalItem = firstPage.items.find((item) => item.text === result.slice(0, 500));
737737
expect(finalItem).toBeDefined();
738738
if (result.length > 500) {
@@ -758,7 +758,7 @@ describe("orchestrator MCP toolkit", () => {
758758
textOffset: nextTextOffset,
759759
maxCharsPerItem: 50_000,
760760
}).pipe(Effect.withTracer(tracer));
761-
const nextPage = yield* decodeThreadReadResult(continuation.structuredContent);
761+
const nextPage = yield* decodeThreadRead(continuation.structuredContent);
762762
text += nextPage.items[0]?.text ?? "";
763763
nextTextOffset = nextPage.items[0]?.nextTextOffset ?? null;
764764
}

0 commit comments

Comments
 (0)