-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(checkpoints): create checkpoint when user sends a message #7713
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
Changes from 1 commit
1954d45
3fd4fa2
317e775
7b58980
cfaa471
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -890,6 +890,12 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike { | |
| this.askResponseText = text | ||
| this.askResponseImages = images | ||
|
|
||
| // 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. | ||
| if (askResponse === "messageResponse") { | ||
| void this.checkpointSave(true) | ||
|
||
| } | ||
|
|
||
| // Mark the last follow-up question as answered | ||
| if (askResponse === "messageResponse" || askResponse === "yesButtonClicked") { | ||
| // Find the last unanswered follow-up message using findLastIndex | ||
|
|
||
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.
Missing test coverage for this new checkpoint behavior. The existing Task.spec.ts doesn't test handleWebviewAskResponse with messageResponse triggering checkpoints. Could this lead to regressions? Perhaps I should add tests to verify: