dustinblackman / oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
https://dustinblackman.com/posts/oatmeal/
MIT License
487 stars 23 forks source link

feat: Clear and start new session without leaving #17

Open tadq opened 9 months ago

tadq commented 9 months ago

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 ?

dustinblackman commented 9 months ago

I like it! /restart, /clear, all three?

tadq commented 9 months ago

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.

dustinblackman commented 9 months ago

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.

dustinblackman commented 9 months ago

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

tadq commented 8 months ago

Both /new and /new with-context would be welcome change. Constantly exiting oatmeal and starting it again is kind of a pain.