authorgravatar for 269035359+t3-code[bot]@users.noreply.github.comt3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> 2026-08-24 01:23:44-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-24 01:23:44-04:00
logb60a2c0b99c8d5d8f02b6705171da694d12e77e3
treef4c8dd2b3176245fbdbbe7becbac9fd5a2bd7b01
parent643daa51616d0bfcd4c8235ae6966a68f106dcfe
signature Signed by PGP key B5690EEEBB952194

test(server): remove no-op live activity tests (#8056)

Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>

1 files changed, 0 insertions(+), 50 deletions(-)

apps/server/test/ActivityPayloadProjection.test.ts-50
......@@ -421,31 +421,6 @@ describe("superseded tool.updated snapshot dedup", () => {
421421 expect(projectedIds([anonymous, completed])).toEqual([anonymous.id, completed.id]);
422422 });
423423
424 it("does not filter live activity-appended events", () => {
425 const update = makeToolLifecycleActivity("upd-live-event", "tool.updated");
426 const event = {
427 sequence: 11,
428 eventId: EventId.make("event-tool-updated"),
429 aggregateKind: "thread",
430 aggregateId: ThreadId.make("thread-projection"),
431 occurredAt: "2026-07-27T00:00:03.000Z",
432 commandId: null,
433 causationEventId: null,
434 correlationId: null,
435 metadata: {},
436 type: "thread.activity-appended",
437 payload: {
438 threadId: ThreadId.make("thread-projection"),
439 activity: update,
440 },
441 } satisfies Extract<OrchestrationEvent, { type: "thread.activity-appended" }>;
442
443 const projected = projectActivityEvent(event);
444 expect(
445 projected.type === "thread.activity-appended" ? projected.payload.activity.id : undefined,
446 ).toEqual(update.id);
447 });
448
449424 it("leaves the collapsed work log identical to the full history", () => {
450425 const activities = [
451426 makeToolLifecycleActivity("upd-1", "tool.updated", { detail: "writing" }),
......@@ -566,29 +541,4 @@ describe("context-window snapshot dedup", () => {
566541 });
567542 expect(projected.thread.activities).toEqual([projectActivityPayload(fixtures[4]!)]);
568543 });
569
570 it("does not filter live activity-appended events", () => {
571 const activity = makeContextWindowActivity("ctx-live", 4_000);
572 const event = {
573 sequence: 9,
574 eventId: EventId.make("event-ctx"),
575 aggregateKind: "thread",
576 aggregateId: ThreadId.make("thread-projection"),
577 occurredAt: "2026-07-27T00:00:02.000Z",
578 commandId: null,
579 causationEventId: null,
580 correlationId: null,
581 metadata: {},
582 type: "thread.activity-appended",
583 payload: {
584 threadId: ThreadId.make("thread-projection"),
585 activity,
586 },
587 } satisfies Extract<OrchestrationEvent, { type: "thread.activity-appended" }>;
588
589 const projected = projectActivityEvent(event);
590 expect(
591 projected.type === "thread.activity-appended" ? projected.payload.activity : undefined,
592 ).toEqual(activity);
593 });
594544});