Skip to content

Commit 174c64e

Browse files
committed
fix the bug when exit tangent mode, cannot create a new checkpoint
1 parent a313dfd commit 174c64e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/chat-cli/src/cli/chat/conversation.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ impl ConversationState {
253253
self.transcript = checkpoint.main_transcript;
254254
self.latest_summary = checkpoint.main_latest_summary;
255255
self.valid_history_range = (0, self.history.len());
256+
if let Some(manager) = self.checkpoint_manager.as_mut() {
257+
manager.message_locked = false;
258+
manager.pending_user_message = None;
259+
}
256260
}
257261

258262
/// Enter tangent mode - creates checkpoint of current state

0 commit comments

Comments
 (0)