fix(server): show when an answer's delivery to the provider fails #14496
Closedsaphid(GitHub profile, opens in a new tab)wants to merge 6 commits into
main fromrefs/pull/14496/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/orchestration-v2/Orchestrator.ts line 10930Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -8943,3 +9010,5 @@89439010 case "runtime-request.respond":89449011 yield* dispatchRuntimeRequestRespond(command, events, effects);89459012 break;9013+ case "runtime-request.delivery.fail":9014+ yield* dispatchRuntimeRequestDeliveryFail(command, events);
- apps/server/src/orchestration-v2/EffectWorker.ts lines 345 to 353OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -328,0 +333,21 @@333+ willRetry ||334+ Cause.hasInterruptsOnly(cause) ||335+ effect.request.type !== "runtime-request.respond"336+ ? Effect.void337+ : threads338+ .dispatch({339+ type: "runtime-request.delivery.fail",340+ commandId: CommandId.make(`${effect.commandId}:delivery-failed`),341+ threadId: effect.threadId,342+ requestId: effect.request.requestId,343+ })344+ .pipe(345+ Effect.catchCause((reopenCause) =>346+ Effect.logWarning(347+ "Failed to record undelivered runtime request answer",348+ {349+ effectId: effect.id,350+ cause: reopenCause,351+ },352+ ),353+ ),
juliusmarminge added labelsmacroscope-review
juliusmarminge closed this
juliusmarminge added labelstriage:keep-open
juliusmarminge reopened this
- @@ -874,3 +878,15 @@874878 outline: none;875879 }876880881+ .surface-subheader {882+ @apply flex h-10 min-h-10 shrink-0 items-center border-b border-border/60 bg-background;883+ }884+885+ [data-preview-panel-mode="inline"] [data-right-panel-surface-content] [data-surface-subheader] {886+ height: calc(var(--spacing) * 7);887+ min-height: calc(var(--spacing) * 7);888+ margin-bottom: calc(var(--spacing) * 3);889+ border-bottom-color: transparent;890+ }891+892+ .chat-content-lane {
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge assignedjuliusmarminge
juliusmarminge added labelstakeover
juliusmarminge added labelspr:in-progress
juliusmarminge closed this
juliusmarminge removed labelspr:in-progress
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed