Commit 480791d
fix(external-agent): refresh editor online lease in registry touch
registry.touch() validated the editor and renewed store ownership but never
updated lastSeen, so an idle-but-polling editor dropped out of isConnected()
35s after registration. From there every MCP flow deadlocked: browser
bindings were rejected as disconnected while the stale registration still
blocked the offline fallback ("already has an active browser or offline
editor").
The regression guard added in #70 (broker-poll-refresh.verify.ts) actually
fails from its introducing commit for this reason; run-affected-verifies
maps no suite to these files, which is likely how it slipped through. This
one-line fix makes the existing guard pass and adds a direct-touch scenario
that covers bridge-route touches outside the long-poll wait loop.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 49245f0 commit 480791d
2 files changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
53 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
| |||
0 commit comments