@@ -36,7 +36,8 @@ const DAEMON_MAX_REQUEST_TIMEOUT_MS: u64 = 120_000;
3636const DAEMON_STOP_WAIT_MS : u64 = 3_000 ;
3737const DAEMON_WAIT_POLL_MS : u64 = 200 ;
3838const SERVICE_ENSURE_WAIT_MS : u64 = 12_000 ;
39- const LOCAL_DAEMON_START_WAIT_MS : u64 = 8_000 ;
39+ const LOCAL_DAEMON_LOCK_WAIT_SECS : u64 = 15 ;
40+ const LOCAL_DAEMON_START_WAIT_MS : u64 = ( LOCAL_DAEMON_LOCK_WAIT_SECS * 1_000 ) + 2_000 ;
4041const AUTH_TOKEN_WAIT_MS : u64 = 1_500 ;
4142const AUTH_TOKEN_POLL_MS : u64 = 100 ;
4243const CONTROL_CENTER_LOCK_FILE : & str = "control-center.lock" ;
@@ -163,7 +164,10 @@ impl DaemonState {
163164 . env ( "CORTEX_DAEMON_OWNER_SOURCE" , "control-center-app" )
164165 . env ( "CORTEX_DAEMON_OWNER_MODE" , "app-managed-local" )
165166 . env ( "CORTEX_WAIT_FOR_DAEMON_LOCK" , "1" )
166- . env ( "CORTEX_DAEMON_LOCK_WAIT_SECS" , "15" )
167+ . env (
168+ "CORTEX_DAEMON_LOCK_WAIT_SECS" ,
169+ LOCAL_DAEMON_LOCK_WAIT_SECS . to_string ( ) ,
170+ )
167171 . stdin ( Stdio :: null ( ) )
168172 . stdout ( Stdio :: null ( ) )
169173 . stderr ( Stdio :: null ( ) ) ;
@@ -2939,7 +2943,8 @@ mod tests {
29392943 let targets = editor_targets ( home) ;
29402944 let codex = targets. iter ( ) . find ( |target| target. id == "codex" ) . unwrap ( ) ;
29412945
2942- let registration = cortex_mcp_registration ( codex, "C:/Users/testuser/.cortex/bin/cortex.exe" ) ;
2946+ let registration =
2947+ cortex_mcp_registration ( codex, "C:/Users/testuser/.cortex/bin/cortex.exe" ) ;
29432948 let cortex_entry = registration
29442949 . as_object ( )
29452950 . expect ( "registration should be an object" ) ;
0 commit comments