@@ -71,10 +71,25 @@ export function RemoteSession({ host, password, protocol, onStatusChange, onBrid
7171 } ;
7272 } , [ connect ] ) ;
7373
74+ // Debug overlay — remove after debugging mobile blank page
75+ const debugBanner = (
76+ < div style = { {
77+ position : 'fixed' , bottom : 0 , left : 0 , right : 0 , zIndex : 99999 ,
78+ background : '#1a1a2e' , color : '#0f0' , fontSize : '11px' , padding : '6px 10px' ,
79+ fontFamily : 'monospace' , borderTop : '1px solid #333' , maxHeight : '30vh' , overflow : 'auto' ,
80+ } } >
81+ < div > status: < b > { state . status } </ b > </ div >
82+ < div > host: { host } | protocol: { protocol ?? 'auto' } </ div >
83+ { state . status === 'error' && < div style = { { color : '#f44' } } > error: { state . message } </ div > }
84+ < div > bridge connected: { String ( bridgeRef . current ?. isConnected ( ) ?? false ) } </ div >
85+ </ div >
86+ ) ;
87+
7488 if ( state . status === 'connected' ) {
7589 return (
7690 < div className = "remote-session" >
7791 < WebviewApp />
92+ { debugBanner }
7893 </ div >
7994 ) ;
8095 }
@@ -89,6 +104,7 @@ export function RemoteSession({ host, password, protocol, onStatusChange, onBrid
89104 < button className = "remote-session-retry" onClick = { connect } >
90105 Retry
91106 </ button >
107+ { debugBanner }
92108 </ div >
93109 ) ;
94110 }
@@ -100,6 +116,7 @@ export function RemoteSession({ host, password, protocol, onStatusChange, onBrid
100116 < div className = "remote-session-spinner" />
101117 < span > Connecting to { host } …</ span >
102118 </ div >
119+ { debugBanner }
103120 </ div >
104121 ) ;
105122}
0 commit comments