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

Confusions with session IDs #749

Closed
ClementNerma opened this issue Feb 9, 2024 · 3 comments
Closed

Confusions with session IDs #749

ClementNerma opened this issue Feb 9, 2024 · 3 comments

Comments

@ClementNerma
Copy link
Contributor

I've looked into the code and found that session IDs for the history was defined in two places: the History trait which provides a session method, as well as the Reedline struct iself.

These two interact more or less directly, but I struggle to understand the design of this feature. Why isn't there only a single place (e.g. Reedline) defining a session ID?

This leads to very weird behaviour: if I create a Reedline instance and then a SqliteBackedHistory with a given session ID, it won't be stored in the new history entries, and will only be used for specific actions.

@fdncred
Copy link
Collaborator

fdncred commented Feb 9, 2024

No idea. You'd have to go back and look at the PRs. I wrote one of them and don't remember myself. Seems logical to me that it should be only in one place.

@ClementNerma
Copy link
Contributor Author

I think it would be nice that, after merging the API redesign PR (#747), we talk about new breaking changes as there are several areas where I think there could be room for improvement - this being one example.

I'll let the issue open if you're ok with it, and I'll get back to it when the time comes.

@ClementNerma
Copy link
Contributor Author

Given #747 won't be merged, I think it's safe to close this issue.

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

No branches or pull requests

2 participants