Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Claude subagent progress no longer re-stores the unchanged prompt #18375

MergedGigioxx(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/18375/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 3 changed files with 196 additions and 0 deletions (loading 1).

x
0 of 3 viewed, 3 left
1 addition and 0 deletionsapps/server/src/orchestration-v2/ProjectionMaintenance.tsModified
View file
@@ -230,6 +230,7 @@
​
const supersedableThreadEventTypes = new Set(SUPERSEDABLE_THREAD_EVENT_TYPES);
+ // Keep subagent.updated and turn-item.updated rows: slimmed payloads reference their prompts.
const COMPACTION_PAGE_SIZE = 500;
​
/**
195 additions and 0 deletionsapps/server/src/persistence/OrchestrationEventStore.test.tsModified
View file
@@ -3,7 +3,9 @@
import {
CommandId,
EventId,
+ NodeId,
ProjectId,
+ ProviderDriverKind,
ProviderInstanceId,
ThreadId,
TurnItemId,
@@ -103,6 +105,199 @@
​
+ it.effect("stores an unchanged subagent prompt once and replays it on every update", () =>
+ Effect.gen(function* () {
+ const store = yield* OrchestrationEventStore.OrchestrationEventStore;