-
Notifications
You must be signed in to change notification settings - Fork 321
fix: bugs found in checkpoint bugbash #3016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Updates: - Only works if the user has git installed - Supports auto initialization if the user is in a git repo, manual if not - UI ported over from dedicated file tools implementation
Updates: - The clean subcommand will delete the shadow repo - The description for turn-level checkpoints is a truncated version of the user's last message
Updates: - Running the clean subcommand now properly deletes the entire shadow repo for both automatic and manual modes
Updates: - Users can now view diffs between checkpoints - Fixed tool-level checkpoint display handling
Updates: - Checkpoints now (hopefully) correctly display the correct turn-specific user message - Added slash command auto completion
…an-garre/git-checkpoints
CI failure is unrelated to this PR |
I think this branch needs a rebase. |
Can we fix the formatting? |
if !output.stderr.is_empty() { | ||
bail!("Git command failed: {}", String::from_utf8_lossy(&output.stderr)); | ||
} else { | ||
bail!( | ||
"Git command failed with no error output. Command: git {}", | ||
args.join(" ") | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the user care about which git command failed? IOW, the error message we show to users should be something related to checkpoint feature, rather than git-commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment about the message we show to users
Issue #, if available:
Description of changes:
Updated git command handling: now correctly use the current working directory as work tree, fixing potential path issues and avoiding potential inconsistencies.
Added explicit error handling for cases where
git add -A
fails.Always unlock
message_locked
at the end of a turn (with or without tools). This ensures we reliably capture the first natural-language message of each turn and release the lock consistently.Improved CLI help text for checkpoint commands.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.