Commit d2173a3
committed
fix: reset focusOrder on blur and reject stale connectionId in consumer
- PreviewAutomationBroker: Reset focusOrder to 0 when an owner reports
blur (focused: false). Previously the focusOrder was preserved, letting
a blurred owner keep winning the routing tiebreak over other unfocused
peers until they explicitly reported focus.
- previewAutomationRequestConsumer: Always drop events whose connectionId
does not match the active connection. Previously, when no 'connected'
event had been observed, the consumer would accept and switch to any new
connectionId, allowing stale events from an older generation to be
processed and responded to with a mismatched id.1 parent 2b98a69 commit d2173a3
2 files changed
Lines changed: 2 additions & 6 deletions
File tree
- apps
- server/src/mcp
- web/src/components/preview
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | | - | |
56 | | - | |
| 53 | + | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| |||
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
101 | | - | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
| |||
0 commit comments