Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): retire stale provider request prompts #15778

ClosedAdamulek123(GitHub profile, opens in a new tab)wants to merge 14 commits intomain fromrefs/pull/15778/headopened View on GitHub

Showing 9 changed files with 46 additions and 16 deletions (loading 8).

x
0 of 9 viewed, 9 left
46 additions and 16 deletionsapps/server/src/orchestration-v2/EventSink.tsModified
View file
@@ -73,11 +73,13 @@
export interface EventSinkV2Shape {
readonly write: (input: {
readonly guardPendingUserInputCancellations?: boolean;
+ readonly guardPendingRuntimeRequestRetirements?: boolean;
readonly commandId?: CommandId;
readonly events: ReadonlyArray<OrchestrationV2DomainEvent>;
}) => Effect.Effect<ReadonlyArray<OrchestrationV2StoredEvent>, EventSinkV2Error>;
readonly writeWithEffects: (input: {
readonly guardPendingUserInputCancellations?: boolean;
+ readonly guardPendingRuntimeRequestRetirements?: boolean;
readonly commandId?: CommandId;
readonly events: ReadonlyArray<OrchestrationV2DomainEvent>;
readonly effects: ReadonlyArray<EffectOutbox.PendingOrchestrationEffectV2>;
@@ -120,6 +122,7 @@
EventSinkV2Error
readonly commitCommand: (input: {
+ readonly guardPendingRuntimeRequestRetirements?: boolean;
readonly commandId: CommandId;
readonly threadId: ThreadId;
readonly commandType: string;
@@ -261,17 +264,21 @@
});
​
- // A user can answer after terminal normalization reads the pending request.
+ // A user can answer after cleanup reads the pending request.