← Back to Pull requests

fix(ci): exercise production WorkHub browser click path #5979

Closed
unknown closed this pull request without merging on Oct 11, 2026 06:48 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 09:20 UTC
Author

Summary

After Main closes, the WorkHub browser smoke manually dispatches a mouse down/up pair. That skips the target scrolling, hit testing and pointer positioning used by the production OpenCLI path.

Use withBrowserPage for navigation and page.click, assert click_method === 'cdp', and keep the observed “Clicked” effect assertion. Release the acquired browser session in finally.

Preserve main's bounded two-frame readiness wait inside the click action lease so the background page stays active until the single native click. Main's color-managed screen capture checks are also retained.

Split from #5969 following its scope review. This changes only the smoke script.

Verification

  • Root build, typecheck, lint, format and desktop/UI Knip checks pass locally on Node 24.

  • After merging main (16a8f5b84), all 56 browser-session, browser-IPC, browser-view-manager and WorkHub-presentation tests pass locally.

  • The native WorkHub browser presentation smoke passes on macOS, including all screen-pixel assertions and the production CDP click after Main closes. Main's color-managed capture fix resolves the earlier local screenshot failure.

  • Linux/Xvfb native smoke verification remains required in CI.
  • AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: Codex (GPT-6) authored the smoke change, resolved the main-branch conflict, and updated this description. The affected commits retain Generated-by: Codex (GPT-6).

    Checklist

  • Existing native-input and observed-click assertions are retained

  • Build, lint, format and typecheck pass locally

  • Native smoke passes on the Linux/Xvfb CI environment
  • Does this PR entail a change in behavior?

  • Yes

  • No — smoke coverage and teardown only
  • Diff: 229 lines (+171 / -58) across 2 files Reviewer: M4n5ter Review duration: 5608m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 229 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.325
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5979"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 37.0% (MEDIUM) · Higher = larger blast radius
    37.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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 14.6% · Safe to merge
    14.6%
    Repository