Repository navigation
Fix macOS compile break from #11224 (GhosttySurfaceScrollView has no terminalSurface) - #11316
Conversation
PR #11224 added a wasBoundToDismantledHost guard that reads hostedView.terminalSurface, but hostedView is the GhosttySurfaceScrollView pane container, which has no terminalSurface member; the surface hangs off its GhosttyNSView. The PR lane has no macOS compile gate, so this landed red and every tagged Mac build from main now fails at GhosttyTerminalView.swift. Route the read through surfaceView, matching every other terminalSurface access in the class. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe dismantling path in ChangesTerminal surface access
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This change corrects the macOS surface lookup used during view teardown and is merge-ready after normal checks and review; no actionable merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 too large.) Full details: Cmux Swift Actor IsolationExplanation PASS. The diff is limited to one member-access correction in Full details: Cmux Swift Blocking RuntimeExplanation The parent-to-HEAD diff changes only one property access: Full details: Cmux Browser Automation Off-MainExplanation PASS: The pull request changes only Full details: Cmux Expensive Synchronous LoadExplanation PASS. The commit changes only one property access in Full details: Cmux Cache Substitution CorrectnessExplanation PASS — The diff changes one member access in Full details: Cmux No Hacky SleepsExplanation PASS: The pull request changes only Full details: Cmux Algorithmic ComplexityExplanation PASS. The pull request changes one Swift expression in Full details: Cmux Swift ConcurrencyExplanation PASS: The pull request changes one Swift expression in Full details: Cmux Swift `@Concurrent`Explanation PASS. The PR changes one synchronous property access in Full details: Cmux Swift Package BoundariesExplanation PASS. The diff changes one property access in
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Current
mainfails the macOS Debug compile: #11224 added a portal-ownership guard indismantleNSViewthat readshostedView.terminalSurface, buthostedViewis theGhosttySurfaceScrollViewpane container, which has no such member (the surface hangs off itsGhosttyNSView). The PR lane has no macOS compile gate, so it merged red; every tagged fleet build frommainnow fails withvalue of type 'GhosttySurfaceScrollView' has no member 'terminalSurface'.One-line fix: read
hostedView.surfaceView.terminalSurface, matching every otherterminalSurfaceaccess in the class.Dictionary:
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-botwith what you need. Autofix is disabled.Summary by cubic
Fixes the macOS Debug compile break on
mainso tagged fleet builds succeed again. The portal-ownership guard indismantleNSViewnow readshostedView.surfaceView.terminalSurfaceinstead ofhostedView.terminalSurface, since the hosted view is theGhosttySurfaceScrollViewcontainer without that member.Written for commit cf0cf90. Summary will update on new commits.
Summary by CodeRabbit