Allow configurable main window minimum height - #12991
austinywang wants to merge 1 commit into
Conversation
|
Note Pull Request opener @austinywang is not an author or co-author of any commit in this PR (commit identities: All contributors have signed the CLA ✍️ ✅ |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (8)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe PR adds a configurable, persisted minimum window height with a default of 400 points and a valid range of 120–400 points. Window sizing and frame validation now use the resolved value. ChangesConfigurable window height
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant UserDefaults
participant SessionPersistencePolicy
participant WindowSizing
UserDefaults->>SessionPersistencePolicy: Store or provide minimumWindowHeight
SessionPersistencePolicy->>SessionPersistencePolicy: Apply default or clamp value
SessionPersistencePolicy-->>WindowSizing: Return resolved minimum height
WindowSizing->>WindowSizing: Apply height to sizing and frame validation
Suggested reviewers: Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (23 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 6 files. (2 skipped: 2 too large.) Full details: Cmux Swift Package BoundariesExplanation The diff introduces pure, independently testable window-policy logic in the app target at Resolution Move the minimum-height policy (
✨ Finishing Touches 💡 1📝 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 |
Fixes #12944.
The main window minimum height is now resolved from the
app.minimumWindowHeightsetting (stored asminimumWindowHeight). The default remains 400 points, while values from 120 through 400 support compact tiling. All frame, restore, rescue, and content sizing paths use the same resolved policy.Validation: added behavioral coverage for defaulting and lower/upper bounds;
git diff --checkpasses.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes #12944 by replacing the hard-coded 400-point minimum window height with the configurable
app.minimumWindowHeightsetting (stored asminimumWindowHeight). The default remains 400, and values from 120 through 400 are accepted and clamped; all frame, restore, rescue, and content sizing paths now use the same resolved minimum.Written for commit 1adbd08. Summary will update on new commits.
Summary by CodeRabbit
New Features
Bug Fixes
Tests