Fetch command output the server left out, for the open row and Copy output

This commit is contained in:
Callum Alpass committed 2026-11-02 23:19:54 +11:00
1 parent 81a1ee942c
commit 3ef67c5b50
5 files changed
+103 -8

No files matched your search

+7
View File
@@ -4,6 +4,7 @@ import {
type OrchestrationGetFullThreadDiffInput,
type ReviewDiffFileContentsInput,
type OrchestrationV2Checkpoint,
type OrchestrationV2TurnItem,
type TurnItemId,
MessageId,
ORCHESTRATION_PROTOCOL_HEADER,
@@ -364,6 +365,12 @@ export class T3Session {
return Effect.runPromise(this.requireConnection().rpc[ORCHESTRATION_V2_WS_METHODS.getFullThreadDiff](input));
}
/** One turn item in full: the server leaves long command output out of the thread (`outputOmitted`). */
async turnItem(threadId: ThreadId, itemId: TurnItemId): Promise<OrchestrationV2TurnItem | null> {
const result = await Effect.runPromise(this.requireConnection().rpc[ORCHESTRATION_V2_WS_METHODS.getTurnItem]({ threadId, itemId }));
return result.item ?? null;
}
diffFileContents(input: ReviewDiffFileContentsInput) {
return Effect.runPromise(this.requireConnection().rpc[WS_METHODS.reviewGetDiffFileContents](input));
}