Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): stop stale settlement notifications #9081

ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/9081/headopened View on GitHub

Showing 2 changed files with 37 additions and 7 deletions.

x
0 of 2 viewed, 2 left
21 additions and 6 deletionspackages/shared/src/agentAwareness.test.tsModified
View file
@@ -12,6 +12,7 @@
import { projectThreadAwareness } from "./agentAwareness.ts";
​
const NOW = "2026-05-22T12:00:00.000Z";
+const TERMINAL_AT = "2026-05-21T12:00:00.000Z";
​
const project = {
title: "t3code",
@@ -106,15 +107,26 @@
const finishedTurn = {
turnId: "turn-1" as TurnId,
state: "interrupted" as const,
- requestedAt: NOW,
- startedAt: NOW,
- completedAt: NOW,
+ requestedAt: TERMINAL_AT,
+ startedAt: TERMINAL_AT,
+ completedAt: TERMINAL_AT,
assistantMessageId: null,
const state = projectThreadAwareness({
environmentId: "env-1" as EnvironmentId,
project,
- thread: thread({ latestTurn: finishedTurn }),
+ thread: thread({
+ latestTurn: finishedTurn,
+ session: {
+ threadId: "thread-1" as ThreadId,
+ status: "stopped",