The default shell (pdksh) supports command history, it just doesn't setup a default one, so if HISTFILE is undefined there's no command history. That's pdksh behaviour not specific to OpenBSD (aside from not creating a default HISTFILE on new user profiles).