Commit 9a99d16
committed
rpc: log pullOnce watermark divergence at debug level
The inline retry path in pullOnce silently recovers from a cross-
side watermark divergence by resetting cursors and retrying. A
one-shot divergence is normal (a wsd respawn under the same
WebSocket, mid-flight test harness state) and the recovery is the
intended behavior. A persistently broken remote, however, will
trip the retry on every pull and silently degrade to repeated
baseline re-syncs, with no operator-visible signal.
Add a console.debug() so the divergence shows up in logs without
creating noise on the well-behaved happy path. The fields capture
which cursor diverged and which got reset, so a developer chasing
"why does this workspace keep re-syncing" has enough context to
correlate with the remote's lifecycle.1 parent 7ca0d5b commit 9a99d16
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
162 | 178 | | |
163 | 179 | | |
164 | 180 | | |
| |||
0 commit comments