Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

fix(open-knowledge): skip whats-new notice on fresh install (PRD-7014) (#1833)

Andrew Mikofalvy228975623d8c
diff --git a/.changeset/fresh-install-skips-whats-new.md b/.changeset/fresh-install-skips-whats-new.md
new file mode 100644
index 000000000..215eabcbd
--- /dev/null
+++ b/.changeset/fresh-install-skips-whats-new.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Skip the "Updated to Version ..." release-notes notice on a fresh install. A brand-new install has no prior version, so everything is new — popping release notes at first launch was noise. The first launch now silently records the installed version as the baseline; the notice fires only on a real version transition (the next update).
diff --git a/packages/desktop/src/main/auto-updater.ts b/packages/desktop/src/main/auto-updater.ts
index 6d1d71f9c..cdfb6ce7c 100644
--- a/packages/desktop/src/main/auto-updater.ts
+++ b/packages/desktop/src/main/auto-updater.ts
@@ -570,7 +570,8 @@ export function startAutoUpdater(opts: StartAutoUpdaterOpts): StartAutoUpdaterHa
}
}
- const shouldShowVersionNotice = state.lastSeenVersion !== currentVersion;
+ const shouldShowVersionNotice =
+ state.lastSeenVersion !== null && state.lastSeenVersion !== currentVersion;
const needsStateAdvance = state.lastSeenVersion !== currentVersion;
if (needsStateAdvance) {
diff --git a/packages/desktop/tests/integration/auto-updater.test.ts b/packages/desktop/tests/integration/auto-updater.test.ts
index e0d137aca..08c4b94a4 100644
--- a/packages/desktop/tests/integration/auto-updater.test.ts
+++ b/packages/desktop/tests/integration/auto-updater.test.ts
@@ -696,14 +696,11 @@ describe('first-launch version notice (Toast B — AC7, D9)', () => {
expect(rig.state.lastSeenVersion).toBe('0.3.1');
});
- test('lastSeenVersion is null (first launch) → dispatch whats-new + state advances', () => {
+ test('lastSeenVersion is null (fresh install) → no dispatch, state seeds silently', () => {
const { rig } = makeRig({ lastSeenVersion: null, appVersion: '0.3.1' });
const whatsNew = rig.captured.filter((c) => c.channel === 'ok:update:whats-new');
- expect(whatsNew).toHaveLength(1);
- expect(whatsNew[0]?.payload).toEqual({
- version: '0.3.1',
- releaseUrl: releaseUrlFor('0.3.1'),
- });
+ expect(whatsNew).toHaveLength(0);
+ expect(rig.dispatches).not.toContain('whats-new-toast-b' as DispatchKind);
expect(rig.state.lastSeenVersion).toBe('0.3.1');
});