Skip to content

Commit cb14519

Browse files
matt2eclaude
andauthored
fix(staged): use completedAt for commit prefill timeline ranking (#590)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b2adb04 commit cb14519

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/staged/src/lib/features/branches/BranchCard.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@
212212
213213
for (const review of timeline.reviews) {
214214
if (review.sessionStatus === 'running') continue;
215-
const ts = Math.floor(review.createdAt / 1000);
215+
const ts = Math.floor((review.completedAt ?? review.createdAt) / 1000);
216216
candidates.push({ kind: 'review', commentCount: review.commentCount, timestamp: ts });
217217
}
218218
219219
for (const note of timeline.notes) {
220220
if (note.sessionStatus === 'running') continue;
221-
const ts = Math.floor(note.createdAt / 1000);
221+
const ts = Math.floor((note.completedAt ?? note.createdAt) / 1000);
222222
candidates.push({ kind: 'note', title: note.title, timestamp: ts });
223223
}
224224

0 commit comments

Comments
 (0)