Skip to content

fix(sync): focus pull waits 30 min so window switching stops keeping Neon awake - #118

Merged
talayash merged 1 commit into
masterfrom
fix/neon-idle-focus-pull
Nov 8, 2026
Merged

talayash merged 1 commit into
masterfrom
fix/neon-idle-focus-pull

Conversation

@talayash

@talayash talayash commented Nov 8, 2026

Copy link
Copy Markdown
Owner

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_MS is now PULL_INTERVAL_MS (30 min), up from 5 min.
  • Local edits still push within 5 s. Sync now still pulls on demand.
  • Tests: 6-minute alt-tab no longer pulls, plus a compile-time guard that the gap stays above 2x the Neon suspend delay.

No contract change. The broker is untouched.

Test

  • cargo test --locked sync::: 28 passed
  • cargo clippy --locked: no warnings in sync.rs

Paired with talayash/agentrium-website fix/admin-neon-poll-30m.

…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

ecc-tools Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: c4fabb5f2496d8d3a6f4497a0b9b49160cfd0729

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

ecc-tools Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: c4fabb5f2496d8d3a6f4497a0b9b49160cfd0729

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

ecc-tools Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: c4fabb5f2496d8d3a6f4497a0b9b49160cfd0729

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 /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

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

ecc-tools Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: c4fabb5f2496d8d3a6f4497a0b9b49160cfd0729

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 src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

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.

@talayash
talayash merged commit bfe28d4 into master Nov 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant