Fix notification spam and clarify agent ready state#148
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (23)
📝 WalkthroughWalkthroughThis PR introduces a ChangesSession-viewed tracking, interaction deduplication, "ready" state, and notification gating
Sequence Diagram(s)sequenceDiagram
participant UI as TUI / Control Client
participant MS as MetadataServer
participant SV as markSessionViewed
participant NS as NotificationStore
rect rgba(100, 149, 237, 0.5)
Note over UI,NS: Session Viewed Flow
UI->>MS: /control/open-notification-target or /control/switch-*
MS->>SV: markSessionViewed(sessionId)
SV->>NS: markNotificationsRead (if markReadOnView)
SV->>MS: updateSessionMetadata(unseenCount=0, attention=normal)
SV-->>MS: { notificationsRead, attentionCleared }
end
rect rgba(180, 100, 100, 0.5)
Note over UI,NS: Interaction Deduplication Flow
UI->>MS: POST /agents/interaction (1st call)
MS->>MS: interactionDedupeKey(sessionId,type,summary,payload)
MS->>MS: InteractionRegistry.register({ dedupeKey })
MS-->>UI: requestId=X, alert emitted
UI->>MS: POST /agents/interaction (2nd identical call)
MS->>MS: findPendingByDedupeKey → existing request
MS-->>UI: same requestId=X, no new alert
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
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 docstrings
🧪 Generate unit tests (beta)
Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Sub-agent review finding resolved:
|
Summary
Verification
Summary by CodeRabbit
markReadOnView,clearNeedsInputOnView,clearFormalInteractionsOnView).