Repository navigation
Description
Maple Work's local window became unresponsive after a laptop lid/dock/external-display transition. Native macOS menus still worked, but the conversation image stayed stale and clicking another task did not visibly navigate. A normal quit and reopen restored the UI. The original freeze was observed directly; subsequent attempts have not reproduced it.
Environment
- Maple Work 0.0.25 (1010), installed as
/Applications/Maple Agent.app - Apple M5, macOS 27.0.1 (26A434)
- External display: Odyssey G95NC, observed at 7680 × 2160 / 120 Hz during follow-up testing
- Dell dock referenced in the original macOS power log
- Incident: November 17, 2026, approximately 22:29–22:31 PST
Original incident and evidence
The laptop was used with a dock/external monitor, the lid was closed, the dock was disconnected, and the laptop was opened again. The user did not inspect Maple immediately before closing the lid, so the precise onset and trigger are unknown.
- At 22:24:10, Maple's SkyLight logs reported external display 2 active at 7680 × 2160 and internal display 1 inactive. A display-will-sleep notification followed at 22:24:11.
- At 22:29:10–11, the external display became inactive and the internal panel became active. The Maple UI process received display reconfiguration and did-wake notifications.
- Afterward, the window still showed conversation content, but task selection produced no visible navigation. Accessibility exposed only native window/menu chrome, rather than task and conversation controls. The native View menu opened successfully.
- UI and local host processes were alive with near-zero CPU. In a three-second sample, the UI main thread was waiting in the normal AppKit event loop throughout. This does not establish a deadlock or rule out an intermittent/asynchronous failure.
- No explicit wake-time error appeared in Maple's application log, and no Maple crash report was present in the user's DiagnosticReports directory.
- Normal Command-Q and reopening restored rendering, the accessibility tree, and task switching. Saved local task UUIDs, entry sequence numbers, and message counts matched before and after restart; SQLite
quick_checkreturnedokbefore restart.
Reproduction attempts
| Test | Result |
|---|---|
| Another dock/lid/disconnect/open cycle; capture observed external display active + lid closed + AC → display asleep + battery → lid open + internal panel active | No freeze. Local task navigation and return to a remote task worked in the same UI process. Capture began after setup, so the entire sequence was not instrumented. |
Internal-panel display sleep using pmset displaysleepnow, then wake with Escape |
No freeze; task navigation worked. This tests display sleep, not a verified full system suspend/resume. |
Expected: after a display or power transition, the window redraws, exposes its controls, and responds to task selection without restarting.
Investigation leads and next tests
The observed signature suggests stale window/frame/accessibility state, but the cause is unconfirmed. Delivery of AppKit/SkyLight notifications does not prove that GPUI handled them correctly. Display-link lifecycle, frame invalidation, or stale window/display association are hypotheses only.
- Launch Maple on the external monitor, then close lid → undock → reopen. The successful follow-up used an instance launched on the internal panel before reconnection; launch-display dependence remains untested.
- Disconnect the dock with the lid open to isolate display removal.
- Test lid sleep/wake with the dock continuously attached.
- On recurrence, sample before recovery; try resize, minimize/restore, and reconnecting the original display separately before restarting. Determine whether input changes internal state while presentation remains stale.
- Useful instrumentation: window/display IDs, display association and occlusion changes, input dispatch, frame requests versus callbacks, draw/present completion, and accessibility updates.
This investigation used the installed app and OS diagnostics only: no source inspection, app build, or code change. Frozen UI/host samples, a post-restart UI sample, and display/power event captures were retained locally; raw logs and the local database are not attached to this issue.
Activity
Agent: redraw macOS windows after display wake or change (#1641)