I have started sqlite3 and pressed up arrow over ssh session (RPI 4):
-- Loading resources from /home/osmc/.sqliterc
SQLite version 3.28.0 2019-04-16 19:49:53
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
As you can se I have got “^[[A” instead of previous command from history.
If I exit sqlite3, while still in ssh shell session, up arrow works as expected (I can get bash history).
Tom was faster, my suggestion was to force it in your ssh-client instead, but it’s better to do it in the remote OS, and define to which apps. Since what ever client setting you set, the server (osmc device in this case) can override it. But setting it in the “server os” well that solves the issue.