We got a bit of pull request feedback on the changes in this branch:…
Jump to turn (7)
- 1We got a bit of pull request feedback on the changes in this branch: readPromptF
- 2commit this
- 3When looking into this, I also saw some behavior where the process just "hung" a
- 4Would it make sense to add additional context checks while parsing files to be a
- 5convertTemporaryCheckpoint now filters via hasAnyChanges (tree hash comparison),
- 6convertTemporaryCheckpoint now filters via hasAnyChanges (tree hash comparison),
- 7[Request interrupted by user for tool use]
- User
We got a bit of pull request feedback on the changes in this branch:
readPromptFromMetadataTree hard-codes the metadata-branch directory layout (checkpoint subtree + numeric session dir + prompt.txt). That same layout is already defined by checkpoint.CheckpointSummary / SessionFilePaths (and similar logic exists in checkpoint.GitStore.ReadSessionContent). To reduce the chance of future divergence when the storage format evolves, consider moving this logic into a shared helper (e.g., in strategy or checkpoint) and using it from here (and any other callers that need prompt previews).
The new list-view prompt path (metadataTree != nil -> readPromptFromMetadataTree(...)) isn’t covered by a unit/integration test for committed checkpoints on entire/checkpoints/v1. Given this PR is fixing a correctness/perf regression in getBranchCheckpoints, it would be good to add a test that writes a committed checkpoint (with prompt.txt in the latest session subdir) and asserts getBranchCheckpoints populates RewindPoint.SessionPrompt from prompt.txt (and does not require reading/parsing the transcript).