Commit 01d85af
committed
Fix stale failure handler overwriting resolved approvals and migration pending count
- ProjectionPipeline: add early return when existingRow is already resolved
in the stale failure code path, preventing decision from being overwritten
with null on already-resolved approvals.
- Migration step 4: add AND status = 'pending' condition so stale failure
backfill does not overwrite rows already resolved by earlier steps.
- Migration step 5: replace activity-based pending_approval_count derivation
with a direct count from projection_pending_approvals WHERE status = 'pending',
consistent with the runtime's refreshThreadShellSummary.
Applied via @cursor push command1 parent b6bcd14 commit 01d85af
2 files changed
Lines changed: 12 additions & 38 deletions
File tree
- apps/server/src
- orchestration/Layers
- persistence/Migrations
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1271 | 1274 | | |
1272 | 1275 | | |
1273 | 1276 | | |
| |||
Lines changed: 9 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 196 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
229 | 200 | | |
230 | 201 | | |
231 | 202 | | |
| |||
0 commit comments