Skip to content

fix(qwp): wake replay ACK waiters and tighten sender/pooled APIs - #71

Open
glasstiger wants to merge 4 commits into
mainfrom
ia_qwp_fixes
Open

glasstiger wants to merge 4 commits into
mainfrom
ia_qwp_fixes

Conversation

@glasstiger

Copy link
Copy Markdown
Collaborator

Summary

  • Wake ingress ACK-watermark waiters when a store-and-forward replay advances the watermark, even if the replayed OK is not forwarded to the session. Fixes waitForAcknowledged() never resolves for frames replayed from the store-and-forward journal #70.
  • Make schema reset safe for skipped egress batch slots.
  • Complete RAM-backed flush() at local publication while transmission drains in the background; keep default post-connection retries unbounded without changing initial-connect or explicitly bounded policies.
  • Add query-scoped onReplayReset callbacks for pooled queries, retaining the session-level fallback.
  • Return the current published sequence from an empty flushAndGetSequence() after auto-flush, rather than -1n.
  • Update QWP documentation and generated API reference pages.

Validation

  • pnpm exec vitest run — 1,132 tests passed
  • pnpm test:dist — 39 tests passed
  • pnpm typecheck:dist, pnpm typecheck, pnpm typecheck:test, pnpm typecheck:qwp-browser, pnpm eslint
  • Browser E2E (vitest run --config vitest.qwp-browser.config.ts) — 8 tests passed
  • pnpm run docs, Prettier check, git diff --check

This branch has not been deployed

No deployments
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.

waitForAcknowledged() never resolves for frames replayed from the store-and-forward journal

1 participant