Skip to content

Commit d5da2af

Browse files
committed
delete extra data value
1 parent c1a4b81 commit d5da2af

File tree

1 file changed

+7
-1
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,13 @@ impl ChatSession {
11861186
// Check if version changed or if we haven't shown it max times yet
11871187
let should_show = match &last_version {
11881188
Some(last) if last == current_version => show_count < CHANGELOG_MAX_SHOW_COUNT,
1189-
_ => true, // New version or no previous version
1189+
Some(_) => true, // New version only
1190+
None => {
1191+
// Don't show on first time but record the version
1192+
os.database.set_changelog_last_version(current_version)?;
1193+
os.database.set_changelog_show_count(0)?;
1194+
false
1195+
},
11901196
};
11911197

11921198
if should_show {

0 commit comments

Comments
 (0)