- Enhance passthrough function to support response inspection

- Add cursor tool configuration and update related components
This commit is contained in:
decolua
2026-03-19 15:32:29 +07:00
parent 9877f32efa
commit fd4ec9e5b8
12 changed files with 153 additions and 116 deletions
+5
View File
@@ -464,6 +464,11 @@ async function startServer(apiKey, sudoPassword) {
err(msg);
startError = msg;
}
// Detect wrong/missing password — clear cache and stop retry loop
if (!IS_WIN && (msg.includes("incorrect password") || msg.includes("no password was provided"))) {
setCachedPassword(null);
mitmIsRestarting = true; // prevent scheduleMitmRestart from firing
}
});
serverProcess.on("exit", (code) => {
log(`Server exited (code: ${code})`);