Repository navigation
Fix main build: two compile errors from PR 8690 - #8869
Conversation
…Lifecycle PanelShellActivityState moved into the CmuxWorkspaces package, and #8690 merged a file that references it with only a Foundation import, so current main fails to compile the macOS app (cannot find type 'PanelShellActivityState' in scope). Sibling users of the type such as Workspace+AgentLifecycle.swift already import CmuxWorkspaces. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughAdds a missing ChangesSwift compilation fixes
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ 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 |
Greptile SummaryThis PR fixes two compile errors introduced by the merge of PR #8690 that were blocking the macOS app build on CI. Both fixes are minimal and surgical with no behavioral changes.
Confidence Score: 5/5All three changes are minimal compile-error fixes with no behavioral side effects beyond unblocking the build. Each change is a one-line correction — a missing import, a missing No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[surfacePromptForResumeApproval] --> B[Build NSAlert with 3 buttons]
B --> C[alert.runModal]
C -->|.alertFirstButtonReturn| D[return .auto]
C -->|.alertSecondButtonReturn| E[return .prompt]
C -->|default| F[return .manual]
D & E & F --> G[ResumeApprovalPolicy returned to caller]
H[updatePanelShellActivityState] --> I{import CmuxWorkspaces}
I --> J[PanelShellActivityState resolves in scope]
J --> K[switch state, resumeState]
Reviews (3): Last reviewed commit: "Fix main build: annotate closure result ..." | Re-trigger Greptile |
surfacePromptForResumeApproval ended with a bare switch statement whose cases are contextless member expressions (.auto/.prompt/.manual), which does not compile as a statement. Use 'return switch' so the cases get their contextual type from the return type. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…onSnapshot The Xcode 26.5 toolchain on the reload builder cannot infer result types of multi-statement closures that return nil-or-value, failing with 'generic parameter could not be inferred' at the Dictionary(uniqueKeysWithValues: compactMap) pair builder and the observation.flatMap guard. Annotate both closures with their concrete result types. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Current main fails to compile the macOS app:
Sources/DockSplitStore+RestoredAgentLifecycle.swift:13: error: cannot find type 'PanelShellActivityState' in scope(seen on the cloud reload builder, https://github.com/manaflow-ai/cmux/actions/runs/30104418455).PanelShellActivityStatelives in theCmuxWorkspacespackage, and #8690 merged this file importing only Foundation, a semantic merge miss since sibling users of the type likeSources/Workspace+AgentLifecycle.swiftimportCmuxWorkspaces. One-line import fix.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes the macOS app build by importing
CmuxWorkspaces, adding an explicitreturn switchinsurfacePromptForResumeApproval, and annotating closure result types inDockSplitStore+SessionSnapshot. Resolves the missingPanelShellActivityStatetype, a trailing switch compile error, and type inference failures on Xcode 26.5.Written for commit a75a633. Summary will update on new commits.
Summary by CodeRabbit