mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 12:00:15 +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
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Skip changelog display on fresh install (only show on upgrades)
|
||||||
|
|
||||||
## [0.45.4] - 2026-01-13
|
## [0.45.4] - 2026-01-13
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
||||||
|
|
@ -595,10 +595,9 @@ export class InteractiveMode {
|
||||||
const entries = parseChangelog(changelogPath);
|
const entries = parseChangelog(changelogPath);
|
||||||
|
|
||||||
if (!lastVersion) {
|
if (!lastVersion) {
|
||||||
if (entries.length > 0) {
|
// Fresh install - just record the version, don't show changelog
|
||||||
this.settingsManager.setLastChangelogVersion(VERSION);
|
this.settingsManager.setLastChangelogVersion(VERSION);
|
||||||
return entries.map((e) => e.content).join("\n\n");
|
return undefined;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
const newEntries = getNewEntries(entries, lastVersion);
|
const newEntries = getNewEntries(entries, lastVersion);
|
||||||
if (newEntries.length > 0) {
|
if (newEntries.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue