Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/task/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,9 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {

// Create a checkpoint whenever the user sends a message.
// Use allowEmpty=true to ensure a checkpoint is recorded even if there are no file changes.
// Suppress the checkpoint_saved chat row for this particular checkpoint to keep the timeline clean.
// Do not suppress the checkpoint_saved chat row so users can see and restore checkpoints.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on updating the comment to match the new behavior. This makes the intent clear for future maintainers.

if (askResponse === "messageResponse") {
void this.checkpointSave(false, true)
void this.checkpointSave(false, false)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the correct fix. Changing from true to false ensures checkpoint messages are visible in the UI, which directly addresses the issue reported in #7786.

However, would it be worth adding a test case specifically for this behavior? Something that verifies checkpointSave is called with suppressMessage=false when handling messageResponse. This would help prevent regression in the future.

}

// Mark the last follow-up question as answered
Expand Down
Loading