From d587249ce9ef43aa88f83760e15594eb319e47f4 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Thu, 8 Oct 2026 11:02:52 -0700 Subject: [PATCH] fix(setup): stop presenting ChatGPT OAuth as the default voice fallback Doctor and dev-fresh told every user without an OpenAI key that voice could use ChatGPT OAuth, whether or not Codex was installed. Say voice is off until a key is added or a Codex sign-in is selected, and mark that path experimental. --- scripts/dev-fresh.sh | 2 +- scripts/setup-doctor.mjs | 2 +- src/setupDoctor.test.mjs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/dev-fresh.sh b/scripts/dev-fresh.sh index 8c134c745..69d3ac319 100755 --- a/scripts/dev-fresh.sh +++ b/scripts/dev-fresh.sh @@ -347,7 +347,7 @@ case "${OPENSKY_AUTH_MODE}" in echo "OpenSky auth: disabled (anonymous mode)" ;; esac -[[ -n "${OPENAI_API_KEY}" ]] && echo "OpenAI key (voice + HUD summary): configured" || echo "OpenAI key: not set — GEV MIC can use ChatGPT OAuth from Provider Settings" +[[ -n "${OPENAI_API_KEY}" ]] && echo "OpenAI key (voice + HUD summary): configured" || echo "OpenAI key (voice + HUD summary): not set — GEV MIC off unless a Codex ChatGPT sign-in is selected in Provider Settings (experimental)" [[ -n "${AISSTREAM_API_KEY}" ]] && echo "AISStream key (live vessels): configured" || echo "AISStream key (live vessels): not set — ships layer empty" if [[ -n "${GOOGLE_MAPS_API_KEY}" ]]; then echo "Startup map: Google Photorealistic 3D Tiles (direct)" diff --git a/scripts/setup-doctor.mjs b/scripts/setup-doctor.mjs index 9e52bac40..49c6722c2 100644 --- a/scripts/setup-doctor.mjs +++ b/scripts/setup-doctor.mjs @@ -178,7 +178,7 @@ export function buildCapabilitySummary( flights, voice: configured('OPENAI_API_KEY') ? 'available' - : 'ChatGPT/Codex OAuth can be selected at runtime', + : 'off until an OpenAI key is added, or a Codex ChatGPT sign-in is selected in Provider Settings (experimental)', vessels: configured('AISSTREAM_API_KEY') ? 'live AISStream feed' : 'off until an AISStream key is added', fires: configured('FIRMS_MAP_KEY') ? 'live NASA FIRMS feed' : 'off until a FIRMS key is added', traffic: configured('TOMTOM_API_KEY') ? 'live TomTom flow' : 'built-in traffic simulation', diff --git a/src/setupDoctor.test.mjs b/src/setupDoctor.test.mjs index 59d4cbde1..71c6e44af 100644 --- a/src/setupDoctor.test.mjs +++ b/src/setupDoctor.test.mjs @@ -279,7 +279,7 @@ test('doctor describes the credential ladder without exposing values', () => { ...credentials, OPENAI_API_KEY: { configured: false }, }).voice, - 'ChatGPT/Codex OAuth can be selected at runtime', + 'off until an OpenAI key is added, or a Codex ChatGPT sign-in is selected in Provider Settings (experimental)', ); assert.match(capabilities.missions, /token allowance/); assert.equal(