Skip to content

fix: ensure fd monitor file is closed at end of the script run #391

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

Merged
merged 1 commit into from
May 28, 2024

Conversation

thedadams
Copy link
Contributor

When running gptscript with providers and --events-stream-to flag, the file passed to --events-stream-to would be closed after the provider was setup. This is an error because the file should remain open for the duration of the script run.

This change will ensure that the file is only closed when the script is complete.

Additionally, this change introduces 0644 permissions when creating a file passed to --events-stream-to.

When running gptscript with providers and --events-stream-to flag, the
file passed to --events-stream-to would be closed after the provider was
setup. This is an error because the file should remain open for the
duration of the script run.

This change will ensure that the file is only closed when the script is
complete.

Additionally, this change introduces 0644 permissions when creating a
file passed to --events-stream-to.

Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams merged commit 9291758 into gptscript-ai:main May 28, 2024
1 check passed
@thedadams thedadams deleted the fix-fd-close branch May 28, 2024 17:58
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.

4 participants