Fix macOS compile break from #11224 (GhosttySurfaceScrollView has no terminalSurface)
Current main fails the macOS Debug compile: https://github.com/manaflow-ai/cmux/pull/11224 added a portal-ownership guard in dismantleNSView that reads hostedView.terminalSurface, but hostedView is the GhosttySurfaceScrollView pane container, which has no such member (the surface hangs off its GhosttyNSView). The PR lane has no macOS compile gate, so it merged red; every tagged fleet build from main now fails with value of type 'GhosttySurfaceScrollView' has no member 'terminalSurface'.
One-line fix: read hostedView.surfaceView.terminalSurface, matching every other terminalSurface access in the class.
Dictionary:
- PR lane: the checks that run on cmux pull requests; they do not include a macOS compile, so a Mac-only compile error can merge.
- tagged fleet build: a
cmux DEV <tag>Debug build produced on the shared Mac fleet byreload-cloud.sh.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes the macOS Debug compile break on main so tagged fleet builds succeed again. The portal-ownership guard in dismantleNSView now reads hostedView.surfaceView.terminalSurface instead of hostedView.terminalSurface, since the hosted view is the GhosttySurfaceScrollView container without that member.
Summary by CodeRabbit
- Bug Fixes
- Improved terminal view cleanup to reliably access the attached terminal surface.
- Removed reliance on a direct terminal-surface reference from the scroll view.