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 { ORCHESTRATION_CACHE_SCHEMA_VERSION } from "@t3tools/client-runtime/platform";
|
||||
import {
|
||||
CommandId,
|
||||
EnvironmentId,
|
||||
ProjectId,
|
||||
ProviderInstanceId,
|
||||
@@ -74,6 +75,10 @@ const SHELL_SNAPSHOT: OrchestrationV2ShellSnapshot = {
|
||||
settledOverride: null,
|
||||
settledAt: NOW,
|
||||
lastVisitedAt: null,
|
||||
titleRegeneration: {
|
||||
requestId: CommandId.make("title-regeneration-1"),
|
||||
startedAt: NOW,
|
||||
},
|
||||
deletedAt: null,
|
||||
},
|
||||
],
|
||||
@@ -205,6 +210,9 @@ describe("mobile SQLite environment cache store", () => {
|
||||
expect(DateTime.formatIso(shell.threads[0]!.latestUserMessageAt!)).toBe(
|
||||
"2026-07-29T12:00:00.000Z",
|
||||
);
|
||||
expect(DateTime.formatIso(shell.threads[0]!.titleRegeneration!.startedAt)).toBe(
|
||||
"2026-07-29T12:00:00.000Z",
|
||||
);
|
||||
expect(DateTime.formatIso(thread.projection.thread.updatedAt)).toBe(
|
||||
"2026-07-29T12:00:00.000Z",
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user