Repository navigation
fix(sync): focus pull waits 30 min so window switching stops keeping Neon awake - #118
Conversation
…Neon awake Regaining focus pulled whenever the last pull was 5+ minutes old, which is exactly Neon's suspend delay. Switching windows often woke the broker's compute right before it could suspend, billing it for the whole working day. The gap now matches the 30-minute background cadence. Local edits still push within 5 s and Sync now still pulls on demand.
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 1 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy clear (success) Scanned 1 changed file(s). No taxonomy bucket signals were detected. Scanned 1 changed file(s). No PR taxonomy bucket signals were detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 1 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 1 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
Why
Neon billing for the broker is about $11/month, all compute. Monitoring shows the compute awake without a break whenever the developer is working. Regaining focus pulled whenever the last pull was 5+ min old, which is exactly Neon's 5-minute suspend delay, so switching windows kept waking it.
Change
FOCUS_PULL_MIN_GAP_MSis nowPULL_INTERVAL_MS(30 min), up from 5 min.No contract change. The broker is untouched.
Test
cargo test --locked sync::: 28 passedcargo clippy --locked: no warnings insync.rsPaired with talayash/agentrium-website
fix/admin-neon-poll-30m.