Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): attribute V2 turn diffs to the turn-start snapshot #11528

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/11528/headopened View on GitHub

Showing 32 changed files with 30 additions and 47 deletions (loading 30).

x
0 of 32 viewed, 32 left
26 additions and 0 deletionsapps/mobile/src/state/queries.test.tsModified
View file
@@ -35,6 +35,32 @@
});
});
​
+ it("routes a single-turn first range through the turn diff query", () => {
+ const environmentId = EnvironmentId.make("environment-a");
+ const threadId = ThreadId.make("thread-a");
+​
+ expect(
+ buildCheckpointDiffTargets({
+ environmentId,
+ threadId,
+ fromTurnCount: 0,
+ toTurnCount: 1,
+ ignoreWhitespace: false,
+ }),
+ ).toEqual({
+ fullThread: null,
+ turn: {
+ environmentId,
+ input: {
+ threadId,
+ fromTurnCount: 0,
+ toTurnCount: 1,
+ ignoreWhitespace: false,
+ },
+ },
+ });
+ });
+​