Terminal window: tab key moves focus out of windows instead of command line autocomplete

I have observed that when in the terminal window in Cursor, pressing the tab key now moves my focus to the chat window. The expected behaviour is to have zsh (or which ever shell) search the local folder for the file I have started typing. For example:

G2V-005:tests/:l
total 8
-rw-r--r--@ 1 mtt  staff    0 Nov 22 08:03 __init__.py
drwxr-xr-x@ 3 mtt  staff   96 Nov 22 08:04 __pycache__
-rw-r--r--@ 1 mtt  staff  200 Nov 23 06:37 gui-test.py
drwxr-xr-x@ 8 mtt  staff  256 Nov 22 08:04 modules
G2V-005:tests/:

Here I expect to be able to type “gu” and then press tab to have the terminal fill in ‘gui-test.py’ so that I can access or execute that file. Instead, my focus switches to the next element in the IDE.

Update - serious possibility of PEBKAC here. I found the ‘accessibility tab’ or some such in the lower bar where it indicated that tab switched focus. I clicked that and this focus switching behaviour has stopped, but I still don’t get the command line search behaviour I expected.