fix(desktop): fix notification indicator not showing on hook events#456
fix(desktop): fix notification indicator not showing on hook events#456
Conversation
|
Warning Rate limit exceeded@Kitenite has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 49 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
WalkthroughThe pull request refactors tRPC subscriptions from async generators to the observable pattern, adds documentation and examples for this approach, and fixes a stale closure issue in the notification hook listener by using a React ref to track the active workspace. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10–15 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 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 |
05c1f99 to
3e54678
Compare
- Fix tRPC subscription using async generator pattern which doesn't work with trpc-electron IPC transport. Changed to use observable pattern. - Fix stale closure issue in useAgentHookListener where activeWorkspace was captured at subscription creation time instead of using current value. - Update AGENTS.md with tRPC subscription best practices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3e54678 to
3e8b495
Compare
Summary
observablepattern from@trpc/server/observableuseAgentHookListenerwhereactiveWorkspacewas captured at subscription creation time instead of using current value via refTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.