mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-12 23:01:21 +00:00
fix: add message type validation to prevent integration test interference
- Add check to ensure message event handler only processes relevant messages - Prevents ModeSelector from interfering with integration test message handling - This should fix the intermittent integration test timeouts
This commit is contained in:
parent
0ead2cd9b6
commit
b48e8c84d5
1 changed files with 3 additions and 0 deletions
|
|
@ -165,6 +165,9 @@ export const ModeSelector = ({
|
|||
React.useEffect(() => {
|
||||
const handler = (event: MessageEvent) => {
|
||||
const message = event.data
|
||||
// Only handle messages that are specifically for mode export/import
|
||||
if (!message || typeof message !== "object") return
|
||||
|
||||
if (message.type === "exportModeResult") {
|
||||
setIsExporting(null)
|
||||
if (!message.success) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue