← Back to Pull requests

feat(extensions): add a single-open-folder tweak [Preview] #1214

Open
unknown opened this pull request with 184 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 29, 2026 05:16 UTC
Author

Summary

Independent Preview follow-up to the one-open-folder item in #943. Plugins may opt in to single_open_folder using the existing interface-tweaks grant. Toggling a folder closes the other expanded folders when several remain open, matching the BetterFolders closeOthers option. This does not port its other folder UI or auto-navigation options.

Verification

  • The SDK round-trip test passed.

  • The production toggle and its regression passed in an isolated Rust harness, including the transition from several already-open folders.

  • The native app test build timed out locally; full native CI is not yet verified.
  • Before / after

    Default behavior is unchanged. Opting in closes the other expanded folders while preserving their closing animation.

    Performance

    No benchmark; the extra bounded pass only runs on a folder toggle when more than one folder remains expanded.

    Risks / blockers

    The behavior is opt-in and local to the server rail.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Added an option to keep only one server folder expanded at a time. When enabled, opening a folder closes other expanded folders; switching servers does not change folder display.
    Documentation
    Added guidance on the single-open-folder option and its behavior.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 184 lines (+138 / -46) across 2 files Reviewer: greptile-apps[bot] Review duration: 4m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 184 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 90% · Reviewer familiarity: 35%
    40%
    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.312
    Real PR Conversation Timeline
    1 comments
    "Review active on #1214"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.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: 35.7% (MEDIUM) · Higher = larger blast radius
    35.7%
    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: 40.5% · Lower = rushed or shallow review
    40.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: 21.2% · Safe to merge
    21.2%