fix(server): keep failed threads out of automatic settlement #27058
Opendoublesharp(GitHub profile, opens in a new tab)wants to merge 6 commits into
main fromrefs/pull/27058/headopened View on GitHubPushed20e22b2
- @@ -8980,10 +8980,5 @@89808980 LIMIT 189818981 ) AS latest_resuming_message_at89828982 FROM orchestration_v2_projection_threads t8983- LEFT JOIN orchestration_v2_projection_runs r ON r.run_id = (8984- SELECT latest.run_id FROM orchestration_v2_projection_runs latest8985- WHERE latest.thread_id = t.thread_id8986- AND NOT ${isSilentShellRun("latest")}8987- ORDER BY latest.ordinal DESC, latest.run_id DESC8988- LIMIT 18989- )8983+ LEFT JOIN orchestration_v2_projection_runs r8984+ ON r.run_id = ${presentedShellRunId(sql.literal("t.thread_id"))}
Pusheded0fbaa
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) removed labelsneeds-rebase
Sign in to join this conversation.
coderabbitai[bot](GitHub profile, opens in a new tab) reviewed
Actionable comments posted: 1
ce2b8052-b2e9-490f-97e9-1d80202eb5cbReviewing files that changed from the base of the PR and between 9f5cb6eb710213b70d28b753dee266b4b56e7a26 and 20e22b218e1924be6df661b13a8f25c9f53237a0.
apps/server/src/orchestration-v2/ProjectionStore.tsapps/server/src/orchestration-v2/ThreadSettlementService.test.tsapps/server/src/orchestration-v2/ThreadSettlementService.tsdocs/user/thread-sidebar.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.