-
Notifications
You must be signed in to change notification settings - Fork 59
fix: agent should not lose events after reconnection #749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Chetan Banavikalmutt <[email protected]>
📝 WalkthroughWalkthroughWhen agents reconnect after losing their principal connection, the code now reuses the existing event writer and updates its target stream instead of creating a new writer, preserving unsent and retriable events. Additionally, retry timers are reset on reconnection, and retry limits are consolidated under a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #749 +/- ##
==========================================
- Coverage 46.18% 46.15% -0.04%
==========================================
Files 101 101
Lines 12513 12520 +7
==========================================
- Hits 5779 5778 -1
- Misses 6179 6187 +8
Partials 555 555 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What does this PR do / why we need it:
The event writer keeps track of sent/unsent events. On reconnection, the agent creates a new event writer, and all the events in the old event writer are dropped. In this PR:
Which issue(s) this PR fixes:
Fixes #715
How to test changes / Special notes to the reviewer:
Checklist
Summary by CodeRabbit
Bug Fixes
Refactor