I have a PR that largely fixes this issue: https://github.com/racket/racket/pull/4510
Feedback is welcome.