Skip to content

Commit 28f7072

Browse files
refactor(server): drop redundant handoff projection in bounded snapshot
loadThreadSnapshotWindow already projects the thread for the wire. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 21dd7da commit 28f7072

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • apps/server/src/orchestration-v2

‎apps/server/src/orchestration-v2/http.ts‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import * as ThreadManagementService from "./ThreadManagementService.ts";
3333
import * as ProjectStore from "./ProjectStore.ts";
3434
import { loadSubscriberShellSnapshot } from "./ShellStream.ts";
3535
import { boundedSnapshotResponseFields } from "./ThreadStream.ts";
36-
import { projectContextHandoffForWire, projectThreadProjectionForWire } from "./WireProjection.ts";
36+
import { projectThreadProjectionForWire } from "./WireProjection.ts";
3737

3838
const isThreadTranscriptTooLargeError = Schema.is(
3939
ThreadManagementService.ThreadTranscriptTooLargeError,
@@ -227,12 +227,7 @@ export const layer = HttpApiBuilder.group(
227227
args.query.deferWork === "1",
228228
).pipe(traceLocalHandlerWork);
229229
const bounded = buildBoundedThreadProjection({
230-
projection: {
231-
...snapshot.projection,
232-
contextHandoffs: snapshot.projection.contextHandoffs.map(
233-
projectContextHandoffForWire,
234-
),
235-
},
230+
projection: snapshot.projection,
236231
snapshotSequence: snapshot.snapshotSequence,
237232
});
238233
return {

0 commit comments

Comments
 (0)