FIXED:
I found the config file at ~/.streamlit.config.toml and deleted the contents. Not sure how/when the config file got set up incorrectly.
The contents of that file (all were on one line) are below
[server]\nheadless = true\nenableCORS=false\nport = \n

Would still be interested to know if this is a bug or something I messed up somehow.