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

Fix restore cli sessions #3409

Merged
merged 5 commits into from
Aug 17, 2024
Merged

Fix restore cli sessions #3409

merged 5 commits into from
Aug 17, 2024

Conversation

enyst
Copy link
Collaborator

@enyst enyst commented Aug 15, 2024

There are no issues posted, but this is a fix for a real issue: cannot restore history from the event stream if running headless.

This PR proposes a fix that keeps it simple but is starting to introduce a bit of flexibility in handling command-line sessions:

  • a command line arg "-n" or "--name" for the session name
  • start using jwt_secret for the sid.

Maybe sometime we'll want a real cli client, this is just a bit on the road. 😄

Note: this only concerns the sid that is used as name for the event stream. All uses of create_runtime in evals create their own sid too and send it, so we fix the uniqueness of their respective event stream from there. This PR doesn't change that for the container name there is more unique stuff added.

@enyst enyst requested a review from neubig August 15, 2024 17:42
@mamoodi
Copy link
Collaborator

mamoodi commented Aug 16, 2024

Clicking Update branch so the new required jobs run

@enyst
Copy link
Collaborator Author

enyst commented Aug 16, 2024

Thanks! 😸

Copy link
Collaborator

@tobitege tobitege left a comment

Choose a reason for hiding this comment

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

LGTM

@enyst enyst merged commit 9cb0bf9 into main Aug 17, 2024
@enyst enyst deleted the enyst/cli-sessions-fix branch August 17, 2024 21:31
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.

3 participants