mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
fix: skip changelog display on fresh install
Only show changelog when upgrading from a previous version, not on first run.
This commit is contained in:
parent
3a1228c0b5
commit
6ab3e7c91f
2 changed files with 7 additions and 4 deletions
|
|
@ -595,10 +595,9 @@ export class InteractiveMode {
|
|||
const entries = parseChangelog(changelogPath);
|
||||
|
||||
if (!lastVersion) {
|
||||
if (entries.length > 0) {
|
||||
this.settingsManager.setLastChangelogVersion(VERSION);
|
||||
return entries.map((e) => e.content).join("\n\n");
|
||||
}
|
||||
// Fresh install - just record the version, don't show changelog
|
||||
this.settingsManager.setLastChangelogVersion(VERSION);
|
||||
return undefined;
|
||||
} else {
|
||||
const newEntries = getNewEntries(entries, lastVersion);
|
||||
if (newEntries.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue