Modify the thread activity reducer to also return operations.
Depends on D11578
flow check
rebase
fix tests