Skip to content

macOS: fix WebChat panel corner clipping - #17920

Closed
agisilaos wants to merge 2 commits into
openclaw:mainfrom
agisilaos:fix/macos-webchat-corner-glitch
Closed

agisilaos wants to merge 2 commits into
openclaw:mainfrom
agisilaos:fix/macos-webchat-corner-glitch

Conversation

@agisilaos

@agisilaos agisilaos commented Feb 16, 2026 •

Copy link
Copy Markdown

Fixes #12294

Summary

  • fix bottom-corner rendering artifacts in the macOS WebChat panel
  • use .withinWindow blending for panel mode to avoid material bleed at rounded edges
  • enforce continuous corner clipping on the effect, hosting, and container views

Verification

  • built and ran mac app via documented flow (scripts/restart-mac.sh --no-sign)
  • manually confirmed the bottom-corner UI glitch is resolved in WebChat panel

Before

Screenshot 2026-02-16 at 10 31 38

After

Screenshot 2026-02-16 at 10 26 05

Greptile Summary

Fixes bottom-corner rendering artifacts in the macOS WebChat panel by switching NSVisualEffectView blending mode from .behindWindow to .withinWindow in panel mode, adding continuous corner clipping to the hosting view, and setting a clear background color on the effect view layer.

  • Conditionally sets blendingMode based on presentation (.withinWindow for panel, .behindWindow for window) to prevent material bleed at rounded edges
  • Applies matching cornerCurve, cornerRadius, and masksToBounds to the NSHostingController view so the SwiftUI content also clips to the rounded corners
  • Adds explicit NSColor.clear.cgColor background to the effect view layer
  • Removes dead code that was setting layer properties on controller.view before it was overwritten by controller.view = rootView

Confidence Score: 5/5

  • This PR is safe to merge — it makes a focused, low-risk UI fix with no behavioral or API changes.
  • The changes are limited to a single file, touch only view layer properties for corner clipping, and follow existing patterns in the codebase. The blending mode change is presentation-specific and preserves existing window-mode behavior. The dead code removal is correct and was identified in prior review. No logic, security, or regression concerns.
  • No files require special attention.

Last reviewed commit: cc9f099

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@steipete steipete closed this Feb 16, 2026
@steipete steipete reopened this Feb 17, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added stale Marked as stale due to inactivity and removed stale Marked as stale due to inactivity labels Feb 22, 2026
@steipete

Copy link
Copy Markdown
Contributor

Closing as AI-assisted stale-fix triage.

Linked issue #12294 ("Web view bubbles: bottom corners not rounded + background color") is currently closed and was closed on 2026-02-23T04:32:26Z with state reason not_planned.
Given that issue state, this fix PR is no longer needed in the active queue and is being closed as stale.

If the underlying bug is still reproducible on current main, please reopen this PR (or open a new focused fix PR) and reference both #12294 and #17920 for fast re-triage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web view bubbles: bottom corners not rounded + background color

2 participants