feat(contracts): track thread title regeneration
- Add optional title regeneration request and start time to thread shells - Cover cache serialization on mobile and client runtime
This commit is contained in:
1 parent
402fde73dd
commit
8dcbdcac52
3 files changed
+26
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from "@effect/vitest";
|
||||
import {
|
||||
CommandId,
|
||||
EnvironmentId,
|
||||
MessageId,
|
||||
RuntimeRequestId,
|
||||
@@ -59,6 +60,10 @@ const shellSnapshotWithSummaries: OrchestrationV2ShellSnapshot = {
|
||||
},
|
||||
latestUserMessageAt: v2Now,
|
||||
settledAt: v2Now,
|
||||
titleRegeneration: {
|
||||
requestId: CommandId.make("title-regeneration-v2"),
|
||||
startedAt: v2Now,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -98,6 +103,11 @@ describe("orchestration cache envelopes", () => {
|
||||
? null
|
||||
: DateTime.formatIso(threadShell.settledAt),
|
||||
).toBe("2026-06-20T00:00:00.000Z");
|
||||
expect(
|
||||
threadShell?.titleRegeneration === null || threadShell?.titleRegeneration === undefined
|
||||
? null
|
||||
: DateTime.formatIso(threadShell.titleRegeneration.startedAt),
|
||||
).toBe("2026-06-20T00:00:00.000Z");
|
||||
expect(DateTime.formatIso(thread.snapshot.projection.thread.updatedAt)).toBe(
|
||||
"2026-06-20T00:00:00.000Z",
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user