feat(web): pin turn diff baselines #10150
Closedsarjann(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/10150/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -612,3 +655,8 @@612655 })}613656 </DropdownMenuSubContent>614657 </DropdownMenuSub>658+ <DropdownMenuSub>659+ <DropdownMenuSubTrigger>Pin baseline</DropdownMenuSubTrigger>660+ <DropdownMenuSubContent className="w-64">661+ <DropdownMenuItem662+ disabled={!latestTurn}
- @@ -197,7 +202,19 @@202+ if (!routeThreadRef || !activeThread || diffSelection.kind !== "turn") return;197203 useDiffPanelStore.getState().reconcileTurnSelection(198204 routeThreadRef,199205 orderedTurnDiffSummaries.map((summary) => summary.turnId),200206 );201- }, [diffSelection, orderedTurnDiffSummaries, routeThreadRef]);207+ }, [activeThread, diffSelection, orderedTurnDiffSummaries, routeThreadRef]);202208203- const selectedTurnId = diffSelection.kind === "turn" ? diffSelection.turnId : null;209+ const selectedTurnId =210+ diffSelection.kind === "turn"211+ ? diffSelection.followLatest212+ ? (orderedTurnDiffSummaries[0]?.turnId ?? diffSelection.turnId)213+ : diffSelection.turnId214+ : null;215+ const baselineTurnId = diffSelection.kind === "turn" ? diffSelection.baselineTurnId : undefined;216+ const baselineTurn = orderedTurnDiffSummaries.find(217+ (summary) => summary.turnId === baselineTurnId,218+ );219+ const baselineTurnCount =220+ baselineTurnId === THREAD_START_DIFF_BASELINE ? 0 : baselineTurn?.checkpointTurnCount;
juliusmarminge closed this
Sign in to join this conversation.
Codex Review Summary#
This comment shows the latest Codex review activity on this pull request.
00f8001ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.