Add checkpoint diff API and hydrate turn diffs in UI

- add server support to diff filesystem checkpoints, including root/HEAD fallbacks and lazy checkpoint initialization
- wire new `providers.getCheckpointDiff` WebSocket route through provider manager and contracts
- update web app to load per-turn diffs from checkpoints and improve diff panel behavior on narrow screens
This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-02-18 21:59:17 -08:00
1 parent 582615971e
commit cf8a2f03fc
27 files changed
+2265 -478

No files matched your search

+8
View File
@@ -668,6 +668,14 @@ describe("WebSocket Server", () => {
});
expect(revertResponse.result).toBeUndefined();
expect(revertResponse.error?.message).toContain("Unknown provider session");
const diffResponse = await sendRequest(ws, WS_METHODS.providersGetCheckpointDiff, {
sessionId: "missing-session",
fromTurnCount: 0,
toTurnCount: 1,
});
expect(diffResponse.result).toBeUndefined();
expect(diffResponse.error?.message).toContain("Unknown provider session");
});
it("routes terminal RPC methods and broadcasts terminal events", async () => {