Repository navigation
fix(status): give the right advice for dead letters refused by the session cap - #1504
Conversation
…ssion cap Once a session reaches MAX_OBS_PER_SESSION, mem::observe returns an error, and capture dead-letters that record on its first attempt. Status then said the observations "could not be stored after 5 attempts" and told the operator to retry, which the cap refuses again. The message no longer claims a number of attempts, and when the last error is the session cap, the fix names MAX_OBS_PER_SESSION (0 = no cap) and the restart before the retry command. Signed-off-by: Rex57 <203883624+Rex57@users.noreply.github.com>
|
@Rex57 is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughDead-letter status messages no longer claim that observations failed after the configured attempt count. The fix guidance now names ChangesDead-letter status guidance
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to Operators receive cap-specific instructions to raise or disable the limit, restart, and retry; other errors retain generic guidance. The retry path supports that recovery, so the change is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Fixes #1485.
When a session reaches
MAX_OBS_PER_SESSION,mem::observereturnsSession observation limit reached (N). Capture treats a returned error as permanent and dead-letters the record on its first attempt. Thecapture-dead-lettersstatus problem then:Now:
PR #1174 proposes evicting at the cap instead of refusing writes; this change only fixes what status says while the cap refuses writes.
Checks
test/capture-review-fixes.test.ts: cap error → exact message and cap-specific fix with both authenticated commands; other errors → no attempt claim and no cap advicecapture-durable, recovery commands with the secret) unchanged and passingnpm run build,npm run skills:gen,npm run docs:sync(no changes),npm run skills:checknpm test: 2596 passed, 4 skippedSummary by CodeRabbit