feat(a2a-nats): add Config struct and env-overrides helpers#358
Conversation
yordis
commented
Jun 19, 2026
- The Bridge and binaries need a single typed config object plus env-override helpers; landing them on their own keeps the next PRs (dispatch wiring, binaries) focused.
The Bridge and binaries need a single typed config object plus env-override helpers (operation/task/connect timeouts, max concurrent tasks, push DLQ settings); landing them on their own keeps the next PRs focused on the dispatch and binary entry points. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview
Adds Reviewed by Cursor Bugbot for commit 4724c45. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning Review limit reached
More reviews will be available in 3 minutes and 18 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
✨ Finishing Touches🧪 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 |
Code Coverage SummaryDetailsDiff against mainResults for commit: 4724c45 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
…alid Config builders accepted Duration::ZERO while env overrides and A2aClient::with_operation_timeout already clamped to MIN_TIMEOUT_SECS, so callers constructing config in code could end up with invalid timeouts env parsing would block. The DLQ LRU env override also logged 'using default' but actually left the prior value unchanged, unlike nats_connect_timeout in the same module. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Other overrides in apply_timeout_overrides keep the prior value on invalid env input; the DLQ LRU branch was the outlier silently overwriting an in-code size with the default. Match the surrounding behavior and update the warn message to say so. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4724c45. Configure here.
