fix(codex): use actual CODEX_HOME in auth detail message

Show the configured CODEX_HOME path instead of hardcoded ~/.codex
when the email fallback message is displayed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Devin Foley 2026-03-24 10:54:05 -07:00
parent 58c511af9a
commit 0ce4134ce1

View file

@ -116,7 +116,7 @@ export async function testEnvironment(
code: "codex_native_auth_present",
level: "info",
message: "Codex is authenticated via its own auth configuration.",
detail: codexAuth.email ? `Logged in as ${codexAuth.email}.` : "Credentials found in ~/.codex/auth.json.",
detail: codexAuth.email ? `Logged in as ${codexAuth.email}.` : `Credentials found in ${codexHome ?? "~/.codex"}/auth.json.`,
});
} else {
checks.push({