Conversation
Review Summary by QodoReplace detached commit checkout with branch reset and reset-history tracking
WalkthroughsDescription• Replace detached HEAD checkout with guarded branch reset operation • Save pre-reset branch tips under internal reset-history refs • Include reset-history refs when loading commits for visibility • Update API and UI to support branch-aware reset operations Diagramflowchart LR
A["User selects commit<br/>in branch dropdown"] -->|emit resetBranchToCommit| B["API: resetGitBranchToCommit"]
B -->|checkout branch if needed| C["Ensure on target branch"]
C -->|save current HEAD| D["Create reset-history ref"]
D -->|git reset --hard| E["Reset branch to commit"]
E -->|load commits with refs| F["Include reset-history refs<br/>in git log"]
F -->|display commits| G["UI shows previous commits<br/>after reset"]
File Changes1. src/api/codexGateway.ts
|
Code Review by Qodo
1.
|
Summary
Tests