Repository navigation
Fix escaping-closure capture in sidebar slot view tint - #8329
Merged
Merged
Conversation
The NSImage drawing handler is escaping, so referencing the enclosing view's color without an explicit capture fails to compile; capture the color by value. Unbreaks clean Debug builds of current main carried into this branch. 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: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe closed pull request icon drawing closure now explicitly captures its tint color. No other rendering logic or public declarations changed. ChangesPull request icon rendering
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related issues
Possibly related PRs
🚥 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 |
Contributor
This was referenced Jul 17, 2026
This was referenced Jul 17, 2026
azooz2003-bit
added a commit
that referenced
this pull request
Jul 17, 2026
The NSImage drawing handler is escaping, so referencing the enclosing view's color without an explicit capture fails to compile; capture the color by value. Unbreaks clean Debug builds of current main carried into this branch. Co-authored-by: cmux reload-cloud <cmux-reload-cloud@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
azooz2003-bit
added a commit
that referenced
this pull request
Jul 20, 2026
* Add chronological iOS notification feed * Fix notification feed UI test selector * Use native tab queries in feed UI test * test(ios): cover notification return and search refresh * fix(ios): preserve notification feed context * test(ios): reproduce stale notification target * fix(ios): make notification feed context durable * test(ios): reproduce buried workspace context * fix(ios): promote workspace in notification rows * test(ios): reproduce dense notification rows * fix(ios): compact notification feed rows * test(ios): reproduce incomplete workspace search * fix(ios): make workspace search match its context * Fix iOS reconnect and build isolation (#8299) * test(ios): cover reconnect overlap cleanup * fix(ios): retire superseded reconnect sessions * test(ios): isolate saved dev Mac instances * fix(ios): enforce build compatibility boundaries * test(ios): cover startup status auth race * fix(ios): reuse connect token for identity check * test(auth): preserve selected team during refresh outage * fix(auth): keep selected team effective during startup * test(auth): keep cached sessions restoring until ready * fix(ios): wait for auth restore before reconnect * test(ios): cover compatibility review regressions * fix(ios): address compatibility review findings * test(ios): use deterministic compatibility timestamps --------- Co-authored-by: cmux reload-cloud <cmux-reload-cloud@users.noreply.github.com> * test(ios): keep search refresh fixture stable on main * Fix escaping-closure capture in sidebar slot view tint (#8329) The NSImage drawing handler is escaping, so referencing the enclosing view's color without an explicit capture fails to compile; capture the color by value. Unbreaks clean Debug builds of current main carried into this branch. Co-authored-by: cmux reload-cloud <cmux-reload-cloud@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> * test: cover unread feed actions and centered toolbar * feat(ios): add unread feed actions and compact bulk read * test(ios): lock notification toolbar geometry * test(ios): require semantic notification row labels * feat(ios): simplify notification feed rows * test: cover notification feed merge regressions * fix: harden notification feed state and rendering * test: remove notification history settling delay * test: repair merged mosh coverage --------- Co-authored-by: cmux reload-cloud <cmux-reload-cloud@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clean Debug builds of main currently fail: the NSImage drawing handler added in #8270 is escaping and references the enclosing view's color without an explicit capture, which is a hard Swift error. Capture the color by value. Found while merging main into feat-ios-panes-ux; required CI being off this week is why it landed unnoticed.
🤖 Generated with Claude Code
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Fixes a Debug build error by explicitly capturing the tint
colorin theNSImagedrawing handler for sidebar slot views. Keeps the tinting behavior the same while removing the escaping-closure capture issue.[color]capture list to theNSImagedrawing handler inSidebarRowPullRequestIconView.selfand restores clean Debug builds.Written for commit 0160d99. Summary will update on new commits.
Summary by CodeRabbit