The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(remote): bump pairing-passcode TTL 5min -> 15min (stop mid-connect rotation)
purple62a84d89a5a4
diff --git a/src-tauri/src/commands/remote.rs b/src-tauri/src/commands/remote.rsindex 827dce4c..60ec3e0d 100644--- a/src-tauri/src/commands/remote.rs+++ b/src-tauri/src/commands/remote.rs@@ -25,7 +25,13 @@ const CREATE_NO_WINDOW: u32 = 0x08000000;// ─── Constants ───-const PASSCODE_TTL_SECS: u64 = 300; // 5 minutes — what the user types on the phone+// 15 minutes. The pairing code the user types on the phone. Was 5 min, but it+// auto-rotates on expiry, and 5 min silently rotated the code mid-connect when+// there was any delay between reading it and entering it (David 2026-06-15).+// 15 min gives a comfortable pairing window; the live panel still shows a+// countdown + the current code, and the JWT issued after pairing has its own+// (separate) lifetime, so this only widens the one-time pairing window.+const PASSCODE_TTL_SECS: u64 = 900;const JWT_TTL_SECS: u64 = 60 * 60; // 1 hour — how long an authenticated session lastsconst MAX_FAILED_ATTEMPTS: u32 = 3;const COOLDOWN_SECS: u64 = 60;