File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ export const Chat = () => {
571571 return false ;
572572 }
573573
574- const shouldUsePopup = message . content ?. use_popup !== false ;
574+ const shouldUsePopup = ! message . content ?. use_redirect ;
575575 if ( shouldUsePopup ) {
576576 const popup = window . open (
577577 oauthUrl ,
@@ -822,7 +822,7 @@ export const Chat = () => {
822822 if ( oauthUrl ) {
823823 // Validate URL before opening to prevent Open Redirect attacks
824824 if ( isValidConsentPromptURL ( oauthUrl ) ) {
825- const shouldUsePopup = message ?. content ?. use_popup !== false ;
825+ const shouldUsePopup = ! message ?. content ?. use_redirect ;
826826 if ( shouldUsePopup ) {
827827 if ( oauthPopupCancelledRef . current ) return ;
828828 // Open the validated OAuth URL in a new tab
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export interface SystemInteractionMessage extends WebSocketMessageBase {
4444 text ?: string ;
4545 timeout ?: number | null ;
4646 error ?: string | null ;
47- use_popup ?: boolean ;
47+ use_redirect ?: boolean ;
4848 } ;
4949 thread_id ?: string ;
5050}
You can’t perform that action at this time.
0 commit comments