| 1245 | // staring at a blank "Connecting..." with no info. |
| 1246 | let connectAttempts = 0; |
| 1247 | function setLoadingStatus(msg, debug) { |
| 1248 | // The status line lives inside the Terminal bootstrap card now — |
| 1249 | // sidepanel-terminal.js owns it. We only update the debug pre block, |
| 1250 | // and trust the terminal pane to surface the human-readable status. |
| 1251 | const dbg = document.getElementById('loading-debug'); |
| 1252 | if (dbg && debug !== undefined) dbg.textContent = debug; |
| 1253 | } |
| 1254 | |
| 1255 | async function tryConnect() { |
| 1256 | connectAttempts++; |