Skip to content

Commit 7b58980

Browse files
committed
fix: only create checkpoint on user message when files have changed
- Changed allowEmpty from true to false in checkpointSave call - Checkpoints will now only be created when there are actual file changes - This avoids creating empty commits in the shadow git repository
1 parent 317e775 commit 7b58980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/task/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
894894
// Use allowEmpty=true to ensure a checkpoint is recorded even if there are no file changes.
895895
// Suppress the checkpoint_saved chat row for this particular checkpoint to keep the timeline clean.
896896
if (askResponse === "messageResponse") {
897-
void this.checkpointSave(true, true)
897+
void this.checkpointSave(false, true)
898898
}
899899

900900
// Mark the last follow-up question as answered

0 commit comments

Comments
 (0)