Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: rewind conversations while keeping file changes #11358

Mergedmaria-rcksmerged 3 commits intomain fromrefs/pull/11358/headmerged by maria-rcks View on GitHub

Showing 10 changed files with 120 additions and 74 deletions (loading 9).

x
0 of 10 viewed, 10 left
120 additions and 74 deletionsapps/server/src/orchestration/Layers/CheckpointReactor.test.tsModified
View file
@@ -1683,86 +1683,132 @@
- it("executes provider revert and emits thread.reverted for checkpoint revert requests", async () => {
- const harness = await createHarness();
- const createdAt = "2026-01-01T00:00:00.000Z";
+ it.each([
+ { commandType: "thread.checkpoint.revert", initializeGit: true },
+ { commandType: "thread.conversation.revert", initializeGit: true },
+ { commandType: "thread.conversation.revert", initializeGit: false },
+ ] as const)(
+ "$commandType rewinds history with the requested filesystem behavior (git: $initializeGit)",
+ async ({ commandType, initializeGit }) => {
+ const harness = await createHarness({
+ initializeGit,
+ seedFilesystemCheckpoints: initializeGit,
+ });
+ const createdAt = "2026-01-01T00:00:00.000Z";
- await Effect.runPromise(
- harness.engine.dispatch({
- type: "thread.session.set",
- commandId: CommandId.make("cmd-session-set"),
- threadId: ThreadId.make("thread-1"),
- session: {
+ await Effect.runPromise(
+ harness.engine.dispatch({
+ type: "thread.session.set",
+ commandId: CommandId.make("cmd-session-set"),