Repository navigation
fix(agent): persist webhook traces as JSON objects - #18883
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe webhook trace code now uses an injectable writer for Redis access. Trace maps are stored directly with a 600-second TTL. Tests verify readable, ordered message and finished events. ChangesWebhook trace persistence
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change fixes webhook trace persistence so the polling endpoint can read traces correctly while preserving existing access controls and expiration behavior. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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
SetObj, avoiding double JSON encoding that made persisted traces unreadable to the polling endpoint.Testing
internal/handlertest binary on Linux/arm64: passed.GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go vet ./internal/handler: passed.git diff --check: passed.The standard macOS
build.sh --testpath stops before tests at the existing Linux-onlySysProcAttr.Pdeathsigusage.