Skip to content

The agent that grows with you

fix(install-e2e): auth add a built-in provider, not 'mock'

ethernetdc07534642c0
diff --git a/tests/install/e2e-assets/user-state-actions.sh b/tests/install/e2e-assets/user-state-actions.sh
index 3f64e49d6e0..b4f289894b2 100644
--- a/tests/install/e2e-assets/user-state-actions.sh
+++ b/tests/install/e2e-assets/user-state-actions.sh
@@ -71,9 +71,11 @@ user_state_produce() {
fi
# --- a pooled credential -------------------------------------------------
+ # Provider id must exist at EVERY vintage (auth add resolves it through the
+ # same registry/gate as chat), so use a built-in one, never 'mock'.
if [ ! -f "$HERMES_HOME/auth.json" ]; then
HERMES_DISABLE_LAZY_INSTALLS=1 \
- "$hermes" auth add mock --type api-key --api-key "e2e-preservation-not-a-real-key" \
+ "$hermes" auth add openai --type api-key --api-key "e2e-preservation-not-a-real-key" \
> "$LOG_DIR/user-state-auth.log" 2>&1 \
|| fail "hermes auth add failed; see $LOG_DIR/user-state-auth.log"
[ -s "$HERMES_HOME/auth.json" ] || fail "hermes auth add produced no auth.json"
diff --git a/tests/install/windows-e2e.ps1 b/tests/install/windows-e2e.ps1
index 55e7126982b..3f966d7e5f9 100644
--- a/tests/install/windows-e2e.ps1
+++ b/tests/install/windows-e2e.ps1
@@ -987,7 +987,9 @@ function Invoke-UserStateActions {
Write-Host " a real turn created a session (state.db sessions $before -> $after)"
if (-not (Test-Path -LiteralPath (Join-Path $HermesHome 'auth.json'))) {
- & $hermes auth add mock --type api-key --api-key 'e2e-preservation-not-a-real-key' 2>&1 |
+ # A built-in provider id: `auth add` resolves it through the same
+ # registry gate as chat, so 'mock' would fail on any vintage.
+ & $hermes auth add openai --type api-key --api-key 'e2e-preservation-not-a-real-key' 2>&1 |
Out-File -Encoding UTF8 (Join-Path $WorkRoot 'logs\user-state-auth.log')
if ($LASTEXITCODE -ne 0) { throw 'hermes auth add failed' }
if (-not (Test-Path -LiteralPath (Join-Path $HermesHome 'auth.json'))) {