-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Disable checkpoint if nested git repos are detected #4509
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
Conversation
|
|
||
| if (hasNestedGitRepos) { | ||
| throw new Error( | ||
| "Checkpoints are disabled because nested git repositories were detected in the workspace. " + |
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.
This is user-facing right? Should probably internationalize.
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.
This is not currently user facing; it just shows up in the logs. I posed the question about surfacing this to users above; it sounds like you'd be supportive of that?
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.
Will do this as a follow-up.
mrubens
left a comment
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.
Looks good aside from the point on internationalization!
|
It would be interesting if you can take a quick look at #4494 since it seems related to the nested git repos |
Will take a look this week. |
Description
The logic to rename .git has always been a bit dodgy; this seems like a safer approach until we re-visit checkpoints.
I tested multi-root workspaces as well and found that VSCode will set the cwd to be the path of the first root in the workspace, so if we want to handle that case then some additional logic will be required (which is probably worth doing since the checkpoints will only apply to the first root in the workspace which will be confusing for people).
Open question: Should we display something in the UI if checkpoints are disabled due to one of the conditions that makes the checkpoint initialization throw?
Important
Disable checkpoints in
ShadowCheckpointServiceif nested git repositories are detected, and update related tests and logging.ShadowCheckpointService..gitdirectories.[Cline#...]to[Task#...]inpresentAssistantMessage.ts,index.ts, andgetEnvironmentDetails.ts.ShadowCheckpointService.test.tsto test for detection of nested git repositories instead of renaming logic..gitdirectories inexcludes.test.ts.This description was created by
for 4093faa. You can customize this summary. It will automatically update as commits are pushed.