fix(ui): keep MCP connection toasts above native dialogs #5871
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 351 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.351
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5871"
general
weight: 0.35
hqhq1025
Summary
Fixes #5870
Testing an MCP connection while its detail dialog is open now shows a readable, dismissible result above the backdrop. Astryx's shared toast viewport uses a stable portal host inside the active native modal, then opens its popover; raising
z-indexor reopening a popover outside the modal leaves the notification obscured or inert. The host moves back when the dialog closes without remounting toast rows. Environments without native popover and modal-selector support retain the inline viewport.The change extends the existing Astryx dependency patch (source and distributed JavaScript), documents its removal condition, and adds browser hit-testing, keyboard-focus and dismissal assertions to the existing MCP detail story.
| Before | After |
| --- | --- |
| !Toast blurred behind dialog | !Toast readable above dialog |
Dark-mode capture
Verification
@maka/uitest suite: 694 passed. Full@maka/desktoptest suite: 3070 passed, including the LinkeDOM and minimal DOM component tests that exposed the missing capability guard in the initial CI run.npm run lint,npm run build,npm run typecheck, and both requiredknipworkspace checks passed.npm run format:checkalso scanned 16 pre-existing untracked research/probe files and reported formatting errors there; those files are excluded from this PR.AI use
Tool(s) and scope: Codex implemented the patch and regression assertions, ran validation, and prepared this issue/PR on behalf of @liuxiaocs7. The commit includes
Generated-by: Codex.Checklist
Does this PR entail a change in behavior?