← Back to Pull requests

Ignore leftover extension entries for 2.1.16 #349

Open
unknown opened this pull request with 381 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 29, 2026 05:06 UTC
Author

Summary

Fixes #348. After Remove on chrome://extensions, the browser keeps an empty settings entry for the removed extension ID. The extension check counted it as an installed, running copy, so interceptor diagnose warned that Interceptor cannot load properly and interceptor diagnose extension reported "running twice" for a card that does not exist.

An entry now counts only when it has an integer location, the test Chromium applies (ExtensionPrefs::GetInstalledInfoHelper) before it loads anything. classifyProfile and findCopies share the check, so the same leftover also stops:

  • telling a user to remove their only working copy (leftover on the current ID);

  • hiding a copy that cannot load since the update, or a one-session load, next to it;

  • making the first-install window say Interceptor is already in a browser that has only the leftover.
  • Brave's leftover with only disable_reasons is ignored the same way.

    Commits

    1. Ignore leftover extension entries that have no install record: the fix, unit tests for each case, a real-browser harness case (load the old copy, remove it, load the current one, restart), and one sentence in ARCHITECTURE.md.
    2. Move the agent manual's deeper notes into docs/agents: AGENTS.md was 39,962 bytes; it is now 19,829, with the detailed notes moved unchanged into ten docs/agents/.md files. The iOS help test reads the manual as both.
    3. Set every surface to 2.1.16 and add its release notes.

    Testing

  • bun test ./test/: 2,728 pass, 11 skip, 0 fail. Typecheck clean. swift test: 652 tests, 0 failures. bun audit and --prod: no vulnerabilities.

  • The new unit tests fail on the previous code and pass with the fix.

  • Real-browser harness, headless Chrome for Testing 157 and 154: all 22 checks pass. Both browsers keep {} for the removed ID after Remove and after a restart; the previous code reported two-copies there.

  • A signed, notarized 2.1.16 Full package was installed. Over 16 profile states the previous release got 6 wrong and this build gets all 16 right; the 10 states that were already right give byte-identical output.

  • First-install window on macOS 27 in a VM: the previous code showed "Interceptor is already here" for a profile with only the leftover; this build shows the ways to add Interceptor, and still finds a real copy next to the leftover.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    Improved browser extension detection so incomplete or empty entries no longer appear as duplicate copies or obscure valid repair guidance.
    Refined diagnosis and repair guidance for outdated extension copies, including first-install messaging.

    Documentation
    Expanded troubleshooting and usage guidance for browser, Safari, macOS, and iOS workflows, with task-specific references.

    Release
    Updated the product version to 2.1.16.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 381 lines (+285 / -96) across 4 files Reviewer: coderabbitai[bot] Review duration: 8m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.43) × (1 − Review Confidence (0.39)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 381 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 86% · Reviewer familiarity: 35%
    39%
    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.356
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #349"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 39.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: 43.0% (MEDIUM) · Higher = larger blast radius
    43.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: 39.5% · Lower = rushed or shallow review
    39.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% · Safe to merge
    26%