sqlite3 seems to have lost readline support

A recent upgrade to sqlite seems to have removed the support for "readline" from the sqlite3 command-line tool. It is rather cumbersome to use this without line editing. Does anyone know how to restore readline support?

So far I have tried installing "readline" using pkg install readline, and reinstalling sqlite using pkg install --force sqlite3. These two failed. Any other suggestions?