The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(e2e): the Desktop update harness keeps the seed's channel record
Teknium1c9135d5c28d
diff --git a/apps/desktop/e2e/update/harness.ts b/apps/desktop/e2e/update/harness.tsindex 337f0be17e3..816f1dafaa5 100644--- a/apps/desktop/e2e/update/harness.ts+++ b/apps/desktop/e2e/update/harness.ts@@ -208,7 +208,11 @@ export function appEnv(facts: InstallFacts, extra: Record<string, string> = {}):/** A user who configured a custom OpenAI-compatible endpoint (the scripted provider). */export function configureProvider(facts: InstallFacts, providerUrl: string): void {- fs.writeFileSync(path.join(facts.hermesHome, 'config.yaml'), providerConfigYaml(providerUrl))+ const config = path.join(facts.hermesHome, 'config.yaml')+ // Keep the seed's top-level `update:` block (the install's `--set-channel main` record): the+ // specs publish commits on main, never a release, so the stable default would offer nothing.+ const update = /^update:\n(?:[ \t].*\n?)*/m.exec(readText(config))?.[0] ?? ''+ fs.writeFileSync(config, providerConfigYaml(providerUrl, update.endsWith('\n') || !update ? update : `${update}\n`))fs.writeFileSync(path.join(facts.hermesHome, '.env'), 'MOCK_API_KEY=update-e2e-key\n')}