Root cause: handleTeammatePermissionRequest was called from 3 paths (early inbox scan, Category 4 relay scan, stdout/native) but only the early scan checked processedPermissionRequestIds, causing duplicate ToolApprovalRequests and extra permission_responses. Fix: - Move processedPermissionRequestIds check INTO handleTeammatePermissionRequest so ALL callers are protected by the same dedup gate - Remove duplicate Category 4 scan that re-processed inbox messages (early scan already covers all messages including read=true) - Category 4 now only builds a filter Set to exclude permission_request from relay to lead |
||
|---|---|---|
| .. | ||
| changeReviewSlice.test.ts | ||
| cliInstallerSlice.test.ts | ||
| editorSlice.test.ts | ||
| extensionsSlice.test.ts | ||
| notificationSlice.test.ts | ||
| paneSlice.test.ts | ||
| pathResolution.test.ts | ||
| sessionSlice.test.ts | ||
| storeTestUtils.ts | ||
| tabSlice.test.ts | ||
| tabUISlice.test.ts | ||
| teamChangeThrottle.test.ts | ||
| teamSlice.test.ts | ||