Fix nil-pointer panic in checkpoint parent-load error path
main·
Commit

In FirstParentChainStoppingAt, when object.GetCommit fails to load a first parent it returns a nil commit, but the error message dereferenced commit.ParentHashes[0] — a guaranteed nil-pointer panic (and the wrong hash even if it didn't crash). Use the parent hash we tried to load instead.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: bb21edce625a
Checkpoints
Review the code changes against the base branch 'main'. The merge base commit for this comparison is 368750cee35f31935640a34ad199e889fc60f1a8. Run `git diff 368750cee35f31935640a34ad199e889fc60f1a8` t
CodexGPT-5.5
View sessionCheckpoint 1
Checkpoint 1
Review the code changes against the base branch 'main'. The merge base commit for this comparison is 368750cee35f31935640a34ad199e889fc60f1a8. Run `git diff 368750cee35f31935640a34ad199e889fc60f1a8` t
CodexGPT-5.5
View sessionCheckpoint 1
Review the code changes against the base branch 'main'. The merge base commit for this comparison is 368750cee35f31935640a34ad199e889fc60f1a8. Run `git diff 368750cee35f31935640a34ad199e889fc60f1a8` t
CodexGPT-5.5
View sessionCheckpoint 1
Review the code changes against the base branch 'main'. The merge base commit for this comparison is 368750cee35f31935640a34ad199e889fc60f1a8. Run `git diff 368750cee35f31935640a34ad199e889fc60f1a8` t
CodexGPT-5.5
View sessionCheckpoint 1
just remove .clawpatch from the commit but then just delete the folder, we don't need to keep it
Claude CodeOpus 4.8[1m]
View sessionCheckpoint 1