Merge pull request #448 from diegosouzapw/fix/issue-437-447-435-login-healthcheck-gemini

fix: login default password hint + Windows CLI healthcheck shell resolution
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-03-18 14:51:19 -03:00
committed by GitHub
3 changed files with 11 additions and 2 deletions

View File

@@ -203,6 +203,7 @@ export default function LoginPage() {
{error}
</p>
)}
<p className="text-xs text-text-muted/60 pt-0.5">{t("defaultPasswordHint")}</p>
</div>
<Button

View File

@@ -2293,7 +2293,8 @@
"orRemovePasswordHashField": "or remove the passwordHash field",
"restartServerWithNewPassword": "Restart the server - it will use the new password",
"backToLogin": "Back to Login",
"forgotPassword": "Forgot password?"
"forgotPassword": "Forgot password?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
},
"landing": {
"brandName": "OmniRoute",

View File

@@ -121,7 +121,14 @@ const runProcess = (
let timedOut = false;
let settled = false;
const child = spawn(command, args, { env, stdio: ["ignore", "pipe", "pipe"] });
const child = spawn(command, args, {
env,
stdio: ["ignore", "pipe", "pipe"],
// On Windows, npm installs CLI wrappers as .cmd scripts (e.g. claude.cmd).
// Without shell:true, spawn cannot resolve them via PATHEXT and the
// healthcheck fails even when the CLI is correctly installed (#447).
...(isWindows() ? { shell: true } : {}),
});
const timer = setTimeout(() => {
timedOut = true;
child.kill("SIGKILL");