Make folder trust updates live (Fixes #637) - #2547
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughChangesThis PR makes folder trust dynamic across CLI configuration, UI flows, core configuration, policy evaluation, MCP lifecycle management, IDE integration, and file-command loading. Trust changes are persisted atomically, propagated through typed events, and applied without restarting. Dynamic trust and policy enforcement
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
📋 Issue PlannerBuilt with CodeRabbit's Coding Plans for faster development and fewer bugs. View plan used: ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
LLxprt PR Review – PR #2547Issue AlignmentThe PR directly addresses issue #637: folder trust updates now propagate live across Config, MCP clients, policy, hooks, commands, approvals, IDE trust, and UI without requiring a restart. The review artifacts include dedicated trust-lifecycle wiring and new trust-related tests in core, CLI, MCP, and policy packages. Side Effects
Code Quality
Tests and Coverage
VerdictNeeds Work. The trust-live implementation appears aligned with #637 and is backed by extensive new tests, but the PR bundles massive unrelated changes, and key trust-related behaviors cannot be fully verified from the available review artifacts. Please split non-trust changes into a separate PR and provide a focused diff/source review for the trust lifecycle, persistence, and MCP wiring paths. |
OpenCodeReview — PR #2547
Findings without a resolvable position
|
|
The two OCR findings without inline positions were both addressed in 277ae02:
|
OCR head
|
OCR head
|
OCR head
|
Preserve live folder-trust transitions while integrating the release branch.
TLDR
Make folder-trust changes effective immediately and safely across the active Config, MCP capabilities, policies, hooks, commands, approvals, IDE trust, and trust UI without requiring a restart.
The latest remediation also prevents delayed exits and post-unmount UI updates, catches synchronous trust-selection failures, refreshes direct trust provenance after persistence, and makes fake MCP latency honor pre-aborted signals.
Dive Deeper
Reviewer Test Plan
/permissionsdialogs; verify effective trust changes without restart.cd packages/cli && npx vitest run src/ui/hooks/permissionsModifyTrustDialog.behavior.test.tsxcd packages/core && npx vitest run src/config/config.ideTrustLive.test.tscd packages/mcp && npx vitest run src/fake/fakeMcpDiscovery.authorization.test.tsnpm run typecheck,npm run format,npm run build, changed-file ESLint, and the ollamakimi smoke command.Testing Matrix
macOS verification completed locally. Linux validation is delegated to PR CI; Windows and container/sandbox variants were not run locally.
Linked issues / bugs
Fixes #637
Summary by CodeRabbit
New Features
Bug Fixes