Skip to content

refactor: extract main window registry and context ownership - #80

Closed
teamleaderleo wants to merge 3 commits into
mainfrom
refactor/grouped-window-ownership
Closed

teamleaderleo wants to merge 3 commits into
mainfrom
refactor/grouped-window-ownership

Conversation

@teamleaderleo

Copy link
Copy Markdown
Owner

Summary

Give main-window state explicit ownership instead of keeping the registry and model nested inside AppDelegate.

MainWindowRegistry owns identity indexing and lifecycle mutation. CmuxMainWindowContext is the independent model type (with the existing MainWindowContext compatibility alias). Test-only window mutations now use the same registry path, preserving production side effects and preventing the test seam from drifting.

Validation

  • swiftc -D DEBUG -parse over the changed Swift sources
  • scripts/check-pbxproj.sh
  • git diff --check

A full Xcode build remains blocked in this checkout because vendor/bonsplit/Package.swift is not present.

@teamleaderleo

Copy link
Copy Markdown
Owner Author

Keeping the branch as implementation history; upstream delivery will be rebased onto manaflow-ai/cmux:main as part of a foundations slice.

@teamleaderleo
teamleaderleo deleted the refactor/grouped-window-ownership branch September 23, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant