← Back to Pull requests

fix(browser): keep mockups visible in the Moonframe window #1553

Open
unknown opened this pull request with 250 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 22, 2026 20:40 UTC
Author

Summary

Local HTML mockups can load successfully and return correct WebKit text and screenshots while appearing blank in the Moonframe window. On macOS native browser views sit beneath GPUI, but both Moonframe's toolkit background and Sheprd's Luau shell painted opaque backgrounds over them.

Keep the macOS toolkit root and the Luau shell clear so Sheprd's existing page-aware background painting can expose native pages. Chrome and popovers retain their own colors. Add regressions for both theme modes and the real Luau shell's ancestors around the main region.

Clarify the repository browser skill: relative and absolute local paths are supported, canonical /private/tmp addresses are normal, loading may need time after focus, and WebKit screenshots do not verify desktop visibility.

Validation

  • just format and just format-check

  • just check-file-size

  • just check-sorted (including its 10 script tests)

  • git diff --check

  • Rust regression tests and Clippy. The targeted cargo test --locked -p sheprd-gpui luau_window::theme::tests --lib started a cold dependency build and was interrupted under the repository's short-local-validation policy. No Rust test result is claimed. Defer compilation, tests, and full lint gates to CI.

  • Verified in the real native window
  • Screenshots

    Patched native-window screenshots are pending. The reported reproduction had correct WebKit captures but a blank desktop content area; those page captures are not evidence of desktop visibility. The user's running app was neither restarted nor replaced.

    Manual QA

  • In a patched Moonframe build on macOS, open a self-contained local HTML file using both a relative and absolute path. Verify visible content in an actual desktop capture, then switch tabs, reload, and resize.

  • Check a browser split, menus and popovers over the page, and light/dark theme changes.

  • Check classic-window behavior and Windows, whose toolkit root remains opaque.
  • Diff: 250 lines (+187 / -63) across 3 files Reviewer: greptile-apps[bot] Review duration: 9m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 250 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.331
    Real PR Conversation Timeline
    1 comments
    "Review active on #1553"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.0% (MEDIUM) · Higher = larger blast radius
    39.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.8% · Safe to merge
    20.8%