Otherwise the input hash will vary with whether colors are requested, which changed with `isatty`. Fixes #18672.