Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): restore composer tasks after relaunch #8097

Closedsethwebster(GitHub profile, opens in a new tab)wants to merge 20 commits intomain fromrefs/pull/8097/headopened View on GitHub

Showing 12 changed files with 183 additions and 3 deletions (loading 10).

x
0 of 12 viewed, 12 left
138 additions and 0 deletionsapps/server/src/orchestration/Layers/ProjectionSnapshotQuery.test.tsModified
View file
@@ -2405,6 +2405,144 @@
+ it.effect("preserves the latest active-turn plan outside the activity hydration limit", () =>
+ Effect.gen(function* () {
+ yield* seedFanOutThread();
+ const snapshotQuery = yield* ProjectionSnapshotQuery;
+ const sql = yield* SqlClient.SqlClient;
+​
+ yield* sql`DELETE FROM projection_thread_activities`;
+ yield* sql`
+ UPDATE projection_turns
+ SET state = 'running', completed_at = NULL
+ WHERE thread_id = 'thread-w' AND turn_id = 'turn-5'
+ `;
+ yield* sql`
+ INSERT INTO projection_thread_activities (
+ activity_id, thread_id, turn_id, tone, kind, summary, payload_json, sequence, created_at
+ )
+ VALUES (
+ 'active-plan', 'thread-w', 'turn-5', 'info', 'turn.plan.updated', 'Plan updated',
+ '{"plan":[{"step":"Keep working","status":"inProgress"}]}', 1,
+ '2026-03-01T00:04:00.000Z'
+ )
+ `;
+ yield* sql`
+ WITH RECURSIVE activity_rows(sequence) AS (
+ SELECT 2
+ UNION ALL