GeezerVison is showing github.com — test(server): trigger the shell summary refresh with a lifecycle acti… · pingdotgg/t3code@c5ce425
File treeExpand file treeCollapse file tree Open diff view settings apps/server/src/orchestration/Layers
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/server/src/orchestration/Layers/ProjectionPipeline.test.ts +16-25Lines changed: 16 additions & 25 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2422,44 +2422,35 @@ it.layer(BaseTestLayer)("OrchestrationProjectionPipeline", (it) => { | 2422 | 2422 | json_object('requestId', 'user-input-active'), | 2423 | 2423 | NULL, | 2424 | 2424 | '2026-02-26T12:35:07.000Z' | 2425 | | - ), | 2426 | | - ( | 2427 | | - 'activity-user-input-active-failed', | 2428 | | - 'thread-stale-user-input', | 2429 | | - NULL, | 2430 | | - 'error', | 2431 | | - 'provider.user-input.respond.failed', | 2432 | | - 'Provider user input response failed', | 2433 | | - json_object( | 2434 | | - 'requestId', | 2435 | | - 'user-input-active', | 2436 | | - 'detail', | 2437 | | - 'Provider is temporarily unavailable' | 2438 | | - ), | 2439 | | - NULL, | 2440 | | - '2026-02-26T12:35:08.000Z' | 2441 | 2425 | ) | 2442 | 2426 | `; | 2443 | 2427 |
| | 2428 | + // A user-input lifecycle activity is one of the events that still | | 2429 | + // refreshes the shell summary, so it forces the read under test. | 2444 | 2430 | yield* appendAndProject({ | 2445 | | - type: "thread.message-sent", | | 2431 | + type: "thread.activity-appended", | 2446 | 2432 | eventId: EventId.make("evt-stale-user-input-3"), | 2447 | 2433 | aggregateKind: "thread", | 2448 | 2434 | aggregateId: ThreadId.make("thread-stale-user-input"), | 2449 | | - occurredAt: "2026-02-26T12:35:09.000Z", | | 2435 | + occurredAt: "2026-02-26T12:35:08.000Z", | 2450 | 2436 | commandId: CommandId.make("cmd-stale-user-input-3"), | 2451 | 2437 | causationEventId: null, | 2452 | 2438 | correlationId: CorrelationId.make("cmd-stale-user-input-3"), | 2453 | 2439 | metadata: {}, | 2454 | 2440 | payload: { | 2455 | 2441 | threadId: ThreadId.make("thread-stale-user-input"), | 2456 | | - messageId: MessageId.make("message-stale-user-input"), | 2457 | | - role: "user", | 2458 | | - text: "Continue", | 2459 | | - turnId: null, | 2460 | | - streaming: false, | 2461 | | - createdAt: "2026-02-26T12:35:09.000Z", | 2462 | | - updatedAt: "2026-02-26T12:35:09.000Z", | | 2442 | + activity: { | | 2443 | + id: EventId.make("activity-user-input-active-failed"), | | 2444 | + tone: "error", | | 2445 | + kind: "provider.user-input.respond.failed", | | 2446 | + summary: "Provider user input response failed", | | 2447 | + payload: { | | 2448 | + requestId: "user-input-active", | | 2449 | + detail: "Provider is temporarily unavailable", | | 2450 | + }, | | 2451 | + turnId: null, | | 2452 | + createdAt: "2026-02-26T12:35:08.000Z", | | 2453 | + }, | 2463 | 2454 | }, | 2464 | 2455 | }); | 2465 | 2456 |
| |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/orchestration/Layers/ProjectionPipeline.ts -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -893,10 +893,6 @@ const makeOrchestrationProjectionPipeline = Effect.fn("makeOrchestrationProjecti | 893 | 893 | return; | 894 | 894 | } | 895 | 895 |
| 896 | | - // Message events cannot change any derived summary field except | 897 | | - // latestUserMessageAt, which is a monotonic maximum that folds in | 898 | | - // directly — the full refresh would re-read every message, plan, | 899 | | - // activity, and approval on each streaming assistant delta. | 900 | 896 | // A message cannot change any summary field except latestUserMessageAt, | 901 | 897 | // which is a monotonic maximum that folds in directly. The full refresh | 902 | 898 | // would re-read every message body in the thread per user message. | |
|