Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement multiple named conversations #40

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bytesoverflow
Copy link

  • Replace single conversation file with a conversations directory structure
  • Add support for named conversations via -n/--name flag
  • Implement conversation name validation
  • Add test coverage for conversation management

@bytesoverflow
Copy link
Author

So, this is my attempt! Critique welcome :)

src/config/prompt.rs Outdated Show resolved Hide resolved
- Replace single conversation file with a conversations directory structure
- Add support for named conversations via -n/--name flag
- Implement conversation name validation
- Add test coverage for conversation management
- Use conversation.toml for storing latest conversation state
- Remove unnecessary directory creation in config initialization
- Update test coverage
Copy link
Owner

@efugier efugier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, good stuff!

After some testing this works nicely you really did a good job!

I am questioning the final API, maybe there should be a shorthand -e "name" instead of -e -n "name" which kinda feels redundant, and -e "name maybe should create the new conversation if it doesn't exist, then we actually lose the need for the -n except for overriding an existing one.

Let me warp my head about what would feel the most natural or use! Happy to hear your thoughts on the matter in the meantime 🙂

@bytesoverflow
Copy link
Author

Thank you, I agree the API feels odd - I think what you're suggesting would be an improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants