forked from cline/cline
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.UI/UXUI/UX related or focusedUI/UX related or focusedbugSomething isn't workingSomething isn't workingfrontend
Description
Summary
A multi-tab persistence bug was discovered while testing PR #8633. When two Roo tabs are open in the same workspace, changes made to MCP tool permissions or MCP Servers from the second tab do not persist and appear to be applied to the original tab.
Reproduction steps
- Open Roo in a workspace
- Open a second Roo tab in the same workspace
- In the newly opened Roo tab, instruct Roo to call an MCP tool
- Toggle the "always allow" checkbox for the MCP tool
- Make changes in the "MCP Servers" menu from the second tab
- Observe: changes from the second tab are not recognized/persisted and appear applied to the first tab
Expected behavior
- Changes made from any tab persist and are reflected across all open Roo tabs.
- The tab that initiated the change immediately reflects the new state.
Actual behavior
- Changes from the second tab do not persist locally in that tab.
- Changes seem to be applied to the original tab instance instead.
Environment
- VS Code + Roo-Code extension
- Reported by @heyseth in PR fix: prevent MCP server restart when toggling tool permissions #8633
- Comment: fix: prevent MCP server restart when toggling tool permissions #8633 (comment)
Notes / suspected cause
- Likely cross-tab state synchronization issue between multiple Roo webviews sharing a single extension host process.
- Programmatic config writes/read consistency might be scoped to one McpHub instance; other webviews may not receive/broadcast updates.
- Needs explicit cross-webview broadcasting (postMessage) and/or subscription to config file changes, with fresh reads from disk.
Related PR
- PR fix: prevent MCP server restart when toggling tool permissions #8633: fix: prevent MCP server restart when toggling tool permissions #8633
Acceptance criteria
- Toggling "always allow" or MCP Server settings in any Roo tab persists and is reflected in all tabs within the same workspace.
- No unintended server restarts or reconnections when toggling.
- Add tests or instrumentation to cover multi-tab scenarios where feasible.
Linked PR
Metadata
Metadata
Assignees
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.UI/UXUI/UX related or focusedUI/UX related or focusedbugSomething isn't workingSomething isn't workingfrontend
Type
Projects
Status
Triage