@@ -958,6 +958,7 @@ pub(crate) struct App {
958958 pub ( crate ) feedback : codex_feedback:: CodexFeedback ,
959959 feedback_audience : FeedbackAudience ,
960960 remote_app_server_url : Option < String > ,
961+ remote_app_server_auth_token : Option < String > ,
961962 /// Set when the user confirms an update; propagated on exit.
962963 pub ( crate ) pending_update_action : Option < UpdateAction > ,
963964
@@ -3115,6 +3116,7 @@ impl App {
31153116 is_first_run : bool ,
31163117 should_prompt_windows_sandbox_nux_at_startup : bool ,
31173118 remote_app_server_url : Option < String > ,
3119+ remote_app_server_auth_token : Option < String > ,
31183120 ) -> Result < AppExitInfo > {
31193121 use tokio_stream:: StreamExt ;
31203122 let ( app_event_tx, mut app_event_rx) = unbounded_channel ( ) ;
@@ -3326,6 +3328,7 @@ impl App {
33263328 feedback : feedback. clone ( ) ,
33273329 feedback_audience,
33283330 remote_app_server_url,
3331+ remote_app_server_auth_token,
33293332 pending_update_action : None ,
33303333 pending_shutdown_exit_thread_id : None ,
33313334 windows_sandbox : WindowsSandboxState :: default ( ) ,
@@ -3574,7 +3577,10 @@ impl App {
35743577 let picker_app_server = match crate :: start_app_server_for_picker (
35753578 & self . config ,
35763579 & match self . remote_app_server_url . clone ( ) {
3577- Some ( websocket_url) => crate :: AppServerTarget :: Remote ( websocket_url) ,
3580+ Some ( websocket_url) => crate :: AppServerTarget :: Remote {
3581+ websocket_url,
3582+ auth_token : self . remote_app_server_auth_token . clone ( ) ,
3583+ } ,
35783584 None => crate :: AppServerTarget :: Embedded ,
35793585 } ,
35803586 )
@@ -8082,6 +8088,7 @@ guardian_approval = true
80828088 feedback : codex_feedback:: CodexFeedback :: new ( ) ,
80838089 feedback_audience : FeedbackAudience :: External ,
80848090 remote_app_server_url : None ,
8091+ remote_app_server_auth_token : None ,
80858092 pending_update_action : None ,
80868093 pending_shutdown_exit_thread_id : None ,
80878094 windows_sandbox : WindowsSandboxState :: default ( ) ,
@@ -8134,6 +8141,7 @@ guardian_approval = true
81348141 feedback : codex_feedback:: CodexFeedback :: new ( ) ,
81358142 feedback_audience : FeedbackAudience :: External ,
81368143 remote_app_server_url : None ,
8144+ remote_app_server_auth_token : None ,
81378145 pending_update_action : None ,
81388146 pending_shutdown_exit_thread_id : None ,
81398147 windows_sandbox : WindowsSandboxState :: default ( ) ,
0 commit comments