Blender wont update the viewport animation after manipulating keyframes

None of this works for me: changing the mode, .show_in_front, layer.frames.update(), or redrawing “VIEW_3D”. Does anyone have other ideas?