Skip to content

refactor: decompose large source and test files#798

Draft
FuJacob wants to merge 1 commit into
codex/repo-organizationfrom
codex/safe-decomposition
Draft

refactor: decompose large source and test files#798
FuJacob wants to merge 1 commit into
codex/repo-organizationfrom
codex/safe-decomposition

Conversation

@FuJacob

@FuJacob FuJacob commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

Decomposes the largest mixed-responsibility files into cohesive suggestion-domain models, engine-pane sections, overlay view content, and focused test suites. The change is intentionally behavior-preserving and makes the next settings/coordinator refactors reviewable at their actual ownership boundaries.

Validation

  • swiftlint lint --quiet — exit 0
  • xcodegen generate — project regenerated successfully
  • xcodebuild -project Cotabby.xcodeproj -scheme Cotabby -destination 'platform=macOS' build-for-testing -derivedDataPath build/DerivedDataTEST BUILD SUCCEEDED
  • Compared decomposed test method inventories against the parent files — every test method preserved
  • Targeted test-without-building was attempted; the test host could not load the ad-hoc-signed bundle because the app and test bundle have different Team IDs. This is the repository's known local hosted-test signing limitation; compilation and linking succeeded.

Linked issues

None.

Risk / rollout notes

This PR is stacked on #797. Cross-file EngineAndModelPaneView extension members are module-internal because Swift cannot share lexical private access across files; the view type itself remains internal and no public API is introduced. No persistence keys, snapshots, runtime behavior, or UI copy change.

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