mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
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:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user