You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(redis): address review findings on the byte bounds
- Measure ceilings in UTF-8 bytes on both the copilot and Tables paths, so the
TypeScript checks bound a stream the same way the Lua's `string.len` does
rather than under-reporting every non-ASCII frame.
- Split an oversized copilot batch on the per-write ceiling instead of refusing
it. A flush carries whatever accumulated since the last one, so a run of large
frames can exceed the ceiling collectively while each frame is individually
writable; refusing that stopped replay for the rest of the stream over a
batching artefact. A single frame past the ceiling is still refused.
- Re-check the copilot soft stop when an in-flight append resolves, not only at
enqueue, so a batch queued behind a refusal cannot land and leave replay
holding later events but not the refused ones.
- Deduct rather than zero the file-doc compaction counter, and only once the
trim succeeds, so a failed fold leaves the trigger armed and a concurrent
publish's bytes survive.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments