Skip to content

The agent that grows with you

fix(install-e2e): install and update journeys record first-run onboarding as done

Teknium5c0b7024e02a
diff --git a/tests-js/scripts/desktop-smoke.test.ts b/tests-js/scripts/desktop-smoke.test.ts
index ed188f56889..490dadc9345 100644
--- a/tests-js/scripts/desktop-smoke.test.ts
+++ b/tests-js/scripts/desktop-smoke.test.ts
@@ -84,6 +84,7 @@ test('provider reconfiguration preserves feed, plugins, history and explicit fix
// not this list; the entry names the same endpoint for `custom:<name>`.
custom_providers: [{ name: 'Mock', base_url: 'http://127.0.0.1:9001/v1', key_env: 'OPENAI_API_KEY' }],
auxiliary: { title_generation: { enabled: false } }, approvals: { mode: 'smart' }, display: { interim_assistant_messages: true },
+ onboarding: { run: false },
})
expect(fs.readFileSync(path.join(home, '.env'), 'utf8')).toBe('OTHER_TEST_VALUE=kept\nMOCK_API_KEY=e2e-mock-key\n')
expect(fs.readFileSync(path.join(home, 'state.db'), 'utf8')).toBe('history witness')
diff --git a/tests-js/scripts/mock-provider-config.ts b/tests-js/scripts/mock-provider-config.ts
index 5984ae17369..f6513d763e6 100644
--- a/tests-js/scripts/mock-provider-config.ts
+++ b/tests-js/scripts/mock-provider-config.ts
@@ -14,6 +14,7 @@ const configSchema = z.object({
auxiliary: z.object({ title_generation: section.optional() }).passthrough().optional(),
approvals: section.optional(),
display: section.optional(),
+ onboarding: section.optional(),
}).passthrough()
//: Entry name this writer owns in ``custom_providers``; reconfiguring replaces
@@ -71,6 +72,10 @@ export function writeMockProviderConfig(
],
auxiliary: { ...config.auxiliary, title_generation: { ...config.auxiliary?.title_generation, enabled: false } },
approvals: { ...config.approvals, mode: 'off' },
+ // A fresh desktop install opens the first-run onboarding chat, which takes the
+ // first message the smoke sends; these journeys test install and update, so
+ // the root config records onboarding as done.
+ onboarding: { ...config.onboarding, run: false },
...extra,
}
diff --git a/tests/install/windows-e2e.ps1 b/tests/install/windows-e2e.ps1
index 407739ae762..95d6ec86fd9 100644
--- a/tests/install/windows-e2e.ps1
+++ b/tests/install/windows-e2e.ps1
@@ -1006,6 +1006,13 @@ function Invoke-PhaseInstallGui {
$env:HERMES_HOME = $HermesHome
New-Item -ItemType Directory -Path $HermesHome -Force | Out-Null
+ # The installer launches the app, and a fresh desktop install opens the first-run
+ # onboarding chat with a live model turn that can hold the window open past the
+ # close below. This journey tests install and update: record onboarding as done.
+ $rootConfig = Join-Path $HermesHome 'config.yaml'
+ if (-not (Test-Path -LiteralPath $rootConfig)) {
+ Set-Content -LiteralPath $rootConfig -Value "onboarding:`n run: false" -Encoding ascii
+ }
$recorder = Start-DesktopRecorder (Join-Path $proof "desktop-frames")
$ahkLog = Join-Path $proof "ahk.log"