[Bug]: macOS app freezes on the "phone session ended" resize modal after waking from sleep, and can't be quit except via Force Quit
Short summary
After the Mac wakes from standby/sleep, resuming a session that was previously being used from the phone leaves the macOS app completely unresponsive: a "phone session ended" modal is shown, but clicking either button (or anywhere in the window) does nothing. The app also cannot be quit through the normal path (menu Quit / Cmd+Q) — it can only be terminated by Force Quit in Activity Monitor.
Environment
- OS: macOS 26.5.1 (build 25F80)
- Orca version: 1.4.138-rc.7 (running, host Mac)
- UI language: Chinese (Simplified)
Steps to reproduce
- Use Orca on the host Mac, then hand the session off to / continue it from the phone (mobile beta).
- Let the Mac enter standby / sleep while the phone session is active.
- End the phone session and wake the Mac back up, returning focus to the desktop app.
- On resume, Orca shows a modal (verbatim Chinese strings below):
- Title:
手机将此终端留在手机尺寸("Phone kept this terminal at phone size") - Badge:
来自手机("From phone") - Body:
手机会话已结束。将此终端或手机留在手机尺寸的所有终端恢复为桌面尺寸。("The phone session has ended. Restore this terminal — or all terminals the phone left at phone size — to desktop size.") - Buttons:
恢复所有终端("Restore all terminals") /恢复此终端("Restore this terminal")
- Title:
- Click either button.
Expected
Clicking 恢复此终端 / 恢复所有终端 dismisses the modal and resizes the terminal(s) back to desktop dimensions; the app remains interactive.
Actual
- Neither button responds. The whole window is frozen — no click anywhere registers.
- The app cannot be quit via the menu or Cmd+Q. Force Quit via Activity Monitor is the only way out.
Notes
- The modal appears to be the phone→desktop terminal-resize handoff prompt, so the trigger is specifically the sleep-during-phone-session path rather than a plain wake-from-sleep.
- A screenshot of the frozen modal is available (can be attached on request).
Thanks for the detailed report — we've reproduced the modal state you describe (terminal held at phone size after wake) but not the freeze itself, on either current builds or 1.4.138-rc.7, so your answers would help a lot:
-
Does it still happen on the latest version (≥1.4.150)? Several fixes relevant to wake/daemon recovery shipped after 1.4.138-rc.7, and a hardening PR (#9853) is open that guarantees Cmd+Q works even in this state.
-
If it happens again, capture a process sample while it's frozen — this single file would tell us exactly where it's stuck. In Terminal.app:
sample Orca 5 -file ~/Desktop/orca-freeze-sample.txt(or Activity Monitor → select Orca → ⚙ → Sample Process → Save). Attach the file here, plus what Activity Monitor shows for Orca's CPU% during the freeze (≈0% vs ≈100% are very different bugs).
-
When you used the session from your phone, was the phone on the same Wi-Fi as the Mac, or connecting remotely (cellular/another network)? Our remaining suspects behave differently on the direct-LAN path vs the relay path.
-
When clicks "did nothing" — did the UI still visually react at all? E.g. buttons highlighting on hover, menus opening (but items not working), cursor changing — versus a completely static, dead window. This distinguishes a frozen renderer from a live UI whose actions silently fail.
-
When you pressed Cmd+Q, did literally nothing happen, or did the window close while the app stayed running in the Dock? These point at two different stall points in the quit path.
-
A few environment details: roughly how long was the Mac asleep; was it one terminal held at phone size or several; and were any of them SSH/remote terminals?
And please attach the screenshot you mentioned — it would help confirm we're looking at the same state.