Skip to content

Commit b2cb241

Browse files
committed
Refactor checkpoint titles to consistently use "Accepted response preview" and remove the redundant "After changes approved" checkpoint creation
1 parent e59081e commit b2cb241

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎packages/vscode/src/commands/apply-chat-response-command/apply-chat-response-command.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export const apply_chat_response_command = (
242242
(c) => c.timestamp == before_checkpoint!.timestamp
243243
)
244244
if (checkpoint_to_update) {
245-
checkpoint_to_update.title = 'Before changes approved'
245+
checkpoint_to_update.title = 'Accepted response preview'
246246
checkpoint_to_update.response_history = history_for_checkpoint
247247
checkpoint_to_update.response_preview_item_created_at =
248248
created_at_for_preview
@@ -253,12 +253,6 @@ export const apply_chat_response_command = (
253253
}
254254
}
255255

256-
await create_checkpoint(
257-
workspace_provider,
258-
context,
259-
'After changes approved',
260-
args?.raw_instructions
261-
)
262256
before_checkpoint = undefined
263257
}
264258
}

‎packages/vscode/src/commands/checkpoints-command/actions/restore-checkpoint.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const restore_checkpoint = async (params: {
161161
}
162162

163163
if (
164-
params.checkpoint.title == 'Before changes approved' &&
164+
params.checkpoint.title == 'Accepted response preview' &&
165165
params.checkpoint.response_preview_item_created_at &&
166166
params.checkpoint.response_history
167167
) {

0 commit comments

Comments
 (0)