Step 1: Provide a summary of your problem
The documentation, as at 2022-08-28, for the suppress_history configuration variable does not mention that this functionality depends on the shell being appropriately configured (e.g. bash requires the shell variable HISTCONTROL to be set and include either of the values ignorespace or ignoreboth [to also ignore sequential duplicate commands], and zsh requires setopt HIST_IGNORE_SPACE). If these prerequisites are not met, regardless of the value of suppress_history, shell_command will be appended to shell history.