Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Aug 9, 2025

Description

This PR reverts the optimization that caused MCP servers to fail on startup and permanently removes the MCP refresh info notifications from the extension logic. The UI already provides a green indicator for MCP status, so duplicative VS Code popups are unnecessary.

Problem

PR #6779 introduced an optimization to avoid unnecessary MCP server refreshes on settings save, which led to MCP servers failing on startup.

Solution

  1. Revert the problematic change from PR fix: prevent unnecessary MCP server refresh on settings save (#6772) #6779 to restore stable MCP startup.

  2. Remove all VS Code information notifications related to MCP refresh in the backend:

    • "already refreshing"
    • "refreshing all"
    • "active global/project servers"
    • "all refreshed"
      The UI status indicator remains the single source of truth for user feedback.
  3. Restore test coverage for the webview message handler MCP toggle path to prevent regressions.

Changes Made

Rationale

  • Reduces user-facing noise and avoids redundant UX (green UI indicator suffices)
  • Simplifies backend logic, eliminating temporary guards/comments

Testing

  • Unit tests:
    • cd src && npx vitest run core/webview/tests/webviewMessageHandler.spec.ts
    • cd src && npx vitest run services/mcp
  • CI:
    • All checks passing (Analyze, CodeQL, compile, unit tests, integration tests, translations, knip)

Checklist

  • MCP servers start successfully
  • UI indicator remains the only user-facing refresh signal
  • Tests updated and passing
  • No user-facing regressions

…le notifications

- Reverted PR #6779 which prevented unnecessary MCP server refreshes but caused startup failures
- Temporarily disabled MCP notification popups as a stopgap solution
- Added TODO comments explaining the temporary nature of disabled notifications
- This allows MCP servers to function properly while a more robust solution is developed
Copilot AI review requested due to automatic review settings August 9, 2025 17:27
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Aug 9, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Aug 9, 2025
Copy link
Contributor

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR! The revert approach is a pragmatic solution to fix the MCP startup issues. I've reviewed the changes and have some suggestions for improvement.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@hannesrudolph hannesrudolph changed the title fix(mcp): Revert changes causing startup issues and temporarily disable notifications fix(mcp): Revert changes causing startup issues and disable notifications Aug 9, 2025
@hannesrudolph hannesrudolph changed the title fix(mcp): Revert changes causing startup issues and disable notifications fix(mcp): Revert changes causing startup issues and remove refresh notifications Aug 9, 2025
@hannesrudolph hannesrudolph moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Aug 9, 2025
@mrubens mrubens merged commit 75b861c into main Aug 9, 2025
10 checks passed
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 9, 2025
@mrubens mrubens deleted the fix/mcp-startup-issues-revert branch August 9, 2025 18:28
@github-project-automation github-project-automation bot moved this from PR [Needs Prelim Review] to Done in Roo Code Roadmap Aug 9, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants