Pycharm Terminal doesnt like tab to edit a command

So iterm2 is lovely bash is lovely but
on the terminal on PyCharm and probably more generally other intelliJ IDE’s (not tested) the tab command is returning from a selected command to a blank ide

I see this is similar

atuin doctor:

{
  "atuin": {
    "version": "18.3.0",
    "sync": {
      "cloud": true,
      "records": true,
      "auto_sync": true,
      "last_sync": "2024-12-04 2:53:15.758646 +00:00:00"
    },
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "bash",
    "default": "bash",
    "plugins": [
      "atuin",
      "bash-preexec"
    ],
    "preexec": "bash-preexec"
  },
  "system": {
    "os": "Darwin",
    "arch": "arm64",
    "version": "15.1.1",
    "disks": [
      {
        "name": "Macintosh HD",
        "filesystem": "apfs"
      },
      {
        "name": "Macintosh HD",
        "filesystem": "apfs"
      },
      {
        "name": "Discord",
        "filesystem": "hfs"
      }
    ]
  }
}

both pycharm and itellij are running

 bash --version
GNU bash, version 5.2.32(1)-release (aarch64-apple-darwin24.1.0)
Copyright (C) 2022 Free Software Foundation, Inc.