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: support autonaming session #1001

Merged
merged 6 commits into from
Nov 19, 2024
Merged

feat: support autonaming session #1001

merged 6 commits into from
Nov 19, 2024

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Nov 18, 2024

The autonaming session will only be enabled if the following two conditions are met:

  1. Run .session or -s without a session name.
  2. Set save_session: true.

image

The autonamed session will be saved to <aichat-config-dir>/sessions/_/<datatime>-<autoname>.yaml

The autonamed session can be loaded with the name _/<datatime>-<autoname>

solve #947 #805, replace #811

@sudomain
Copy link

sudomain commented Nov 18, 2024

This sounds fantastic and something I would use by default when invoking aichat. Is it easy to resume the session using TAB/auto-completion? From the screenshot it seems that is YYYYMMDD... format. As the number of sessions in a given year increases, I imagine the autocomplete will quickly become unwieldy. Perhaps <autoname>-<datatime>.yaml would be better?

@sigoden
Copy link
Owner Author

sigoden commented Nov 18, 2024

The <datetime>-<autoname>.yaml makes more sense.Users typically only pay attention to sessions generated in the last few
days. Searching by date is more convenient than searching by name.

@sigoden sigoden merged commit 8c7e58a into main Nov 19, 2024
3 checks passed
@sigoden sigoden deleted the feat branch November 19, 2024 10:10
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