test(server): remove no-op live activity tests (#8056)
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
643daa5161
commit
b60a2c0b99
1 file changed
-50
@@ -421,31 +421,6 @@ describe("superseded tool.updated snapshot dedup", () => {
|
||||
expect(projectedIds([anonymous, completed])).toEqual([anonymous.id, completed.id]);
|
||||
});
|
||||
|
||||
it("does not filter live activity-appended events", () => {
|
||||
const update = makeToolLifecycleActivity("upd-live-event", "tool.updated");
|
||||
const event = {
|
||||
sequence: 11,
|
||||
eventId: EventId.make("event-tool-updated"),
|
||||
aggregateKind: "thread",
|
||||
aggregateId: ThreadId.make("thread-projection"),
|
||||
occurredAt: "2026-07-27T00:00:03.000Z",
|
||||
commandId: null,
|
||||
causationEventId: null,
|
||||
correlationId: null,
|
||||
metadata: {},
|
||||
type: "thread.activity-appended",
|
||||
payload: {
|
||||
threadId: ThreadId.make("thread-projection"),
|
||||
activity: update,
|
||||
},
|
||||
} satisfies Extract<OrchestrationEvent, { type: "thread.activity-appended" }>;
|
||||
|
||||
const projected = projectActivityEvent(event);
|
||||
expect(
|
||||
projected.type === "thread.activity-appended" ? projected.payload.activity.id : undefined,
|
||||
).toEqual(update.id);
|
||||
});
|
||||
|
||||
it("leaves the collapsed work log identical to the full history", () => {
|
||||
const activities = [
|
||||
makeToolLifecycleActivity("upd-1", "tool.updated", { detail: "writing" }),
|
||||
@@ -566,29 +541,4 @@ describe("context-window snapshot dedup", () => {
|
||||
});
|
||||
expect(projected.thread.activities).toEqual([projectActivityPayload(fixtures[4]!)]);
|
||||
});
|
||||
|
||||
it("does not filter live activity-appended events", () => {
|
||||
const activity = makeContextWindowActivity("ctx-live", 4_000);
|
||||
const event = {
|
||||
sequence: 9,
|
||||
eventId: EventId.make("event-ctx"),
|
||||
aggregateKind: "thread",
|
||||
aggregateId: ThreadId.make("thread-projection"),
|
||||
occurredAt: "2026-07-27T00:00:02.000Z",
|
||||
commandId: null,
|
||||
causationEventId: null,
|
||||
correlationId: null,
|
||||
metadata: {},
|
||||
type: "thread.activity-appended",
|
||||
payload: {
|
||||
threadId: ThreadId.make("thread-projection"),
|
||||
activity,
|
||||
},
|
||||
} satisfies Extract<OrchestrationEvent, { type: "thread.activity-appended" }>;
|
||||
|
||||
const projected = projectActivityEvent(event);
|
||||
expect(
|
||||
projected.type === "thread.activity-appended" ? projected.payload.activity : undefined,
|
||||
).toEqual(activity);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user