Commit 782b2c9
authored
fix(sync): suppress OpenCode SHM-only daemon watch pushes (#1321)
Daemon-delegated watch pushes currently treat every filesystem batch as dirty, so OpenCode's WAL shared-memory index can retrigger a zero-session push after the daemon reads a quiet database. The repeated `opencode.db-shm` sequence came from @ngocphamm's report.
This adds a provider-owned changed-path relevance check at the push trigger boundary. OpenCode-family SHM-only events become no-ops while checkpointed database writes and WALs containing frames continue to trigger synchronization. The existing provider classification from #956 remains the source of the SHM and WAL rules, and authoritative recovery batches continue to push.
All four watch notification owners route through the same gate: daemon PostgreSQL, daemon DuckDB, local PostgreSQL, and local DuckDB. Filesystem event delivery, local archive synchronization, coverage-degradation notification, startup and interval pushes, storage, and mirror schemas remain unchanged.
Closes #1317
Co-authored-by: Rod Boev <rodboev@users.noreply.github.com>1 parent e4b891a commit 782b2c9
7 files changed
Lines changed: 709 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
252 | 345 | | |
253 | 346 | | |
254 | 347 | | |
| |||
471 | 564 | | |
472 | 565 | | |
473 | 566 | | |
474 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
475 | 570 | | |
476 | 571 | | |
477 | 572 | | |
| |||
601 | 696 | | |
602 | 697 | | |
603 | 698 | | |
604 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
605 | 702 | | |
606 | 703 | | |
607 | 704 | | |
| |||
0 commit comments