feat: Clear and start new session without leaving
tadq opened this issue · 5 comments
Add a feature to clear UI and start chat new session. Current workaround is to leave to shell and re-enter oatmeal.
/new
or /n
?
I like it! /restart
, /clear
, all three?
I am thinking:
/new
or /n
- save current session, create new session and clear UI.
/clear
- same as "new" above but does not save current session.
I am not sure about /restart
.
Sessions are auto saved on each message from the backend, so clear doesn't feel right. I like /new
to start a clean slate, and maybe /new with-context
to start with newly acquired context from the editor. I'll start with that, see if it feels good.
I got it here in a branch, but I'm unsure if I'm happy with it yet. I'll come back to it later after it simmers for a bit. You're welcome to try it though! https://github.com/dustinblackman/oatmeal/tree/new-command
Both /new
and /new with-context
would be welcome change. Constantly exiting oatmeal and starting it again is kind of a pain.