← Back to Pull requests

feat(options): add decomposed Agents & WebMCP Tooling configuration UI (#400) #425

Closed
unknown closed this pull request without merging on Dec 02, 2026 10:20 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 12:56 UTC
Author

Closes #400
Part of #394

Summary


  • Decomposes the Options modal's Built-in & Custom Agents configuration (AgentsSection, AgentEditorModal, AgentEditorSections) and WebMCP browser-agent tooling configuration (ToolingSection, WebMcpConfigModal) while keeping OptionsModal.jsx thin and preserving all 4 top-level .ui-settings-row checkbox rows.

  • Adds ResponsiveSettingsDialog so sub-dialogs swap in place of OptionsModal on both wide dialogs (Modal size="2xl") and narrow mobile sheets (.ui-sheet), preventing concurrent focus traps, re-arming the sheet focus trap on return, and restoring focus to the triggering button across both viewports.

  • Extracts src/llm/modelsCache.js (5-minute TTL cache) so AgentEditorModal and OptionsModal share model discovery without exposing apiKey or baseUrl inputs inside agent profiles, while keeping ai-vendor lazily loaded.

  • Keeps Researcher locked to read_only, keeps WebMCP off by default (collection.read + read_only), and surfaces .ui-trust-callout warnings whenever elevated WebMCP toolsets or direct_with_undo guardrails are selected.

  • Splits #400 i18n keys cleanly into src/i18n/messages/enTooling.js, adds .changeset/options-agents-webmcp-ui.md, updates DESIGN.md and README.md, and adds Storybook stories and unit/integration tests.
  • Verification


  • npm run format, strict ESLint (--max-warnings=0 on all 22 new/touched JS/JSX files), and npm run ci </dev/null passed locally after the final edit (Test Files 137 passed (137), Tests 1672 passed (1672), Chrome MV3 build, chunk laziness check, third-party notices check, version policy check, and Storybook build all succeeded).

  • Claude Sonnet pre-push review findings addressed and re-verified under npm run ci.
  • <!-- agent-bot-write: ghw_ad3073cb0ae5a7da session=210bdd5e08f0 bot=trueline-antigravity-agent[bot] conversation_id=e99b26b3-53f9-4d7f-8337-fb33257bb240 conversation_id_source=self-reported -->

    Diff: 247 lines (+185 / -62) across 3 files Reviewer: qwts Review duration: 1283m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.67) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.67 · 247 lines diff across 3 files
    0.67
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.067
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #425"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 67.1% (HIGH) · Higher = larger blast radius
    67.1%
    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: 26.5% · Safe to merge
    26.5%