Skip to content

feat: Add motd_file to coder_agent #78

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
Nov 22, 2022
Merged

feat: Add motd_file to coder_agent #78

merged 1 commit into from
Nov 22, 2022

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Nov 22, 2022

This change allows us to enable better feature parity with OpenSSH by
being able to display a message when users login. This is useful for
template authors who want to inform their users about changes or
reporting about the state of the workspace.

I did consider if we should turn this into a script, like:

motd_script = <<-EOS
	cat /etc/motd
EOS

But while this is flexible, it raises questions like how often should we run it, sould we run it on every query, what if it takes a long time to execute, etc. For this reason we're sticking with the simplicity of a single file and making it the responsibility of the author to start a service to update its content, where required.

This feature could be expanded to support things like VSCode/JetBrains extensions as well, to surface the message not just via SSH, but these clients as well.

This change allows us to enable better feature parity with OpenSSH by
being able to display a message when users login. This is useful for
template authors who want to inform their users about changes or
reporting about the state of the workspace.
@mafredri mafredri self-assigned this Nov 22, 2022
@mafredri mafredri marked this pull request as ready for review November 22, 2022 13:04
@mafredri mafredri requested a review from kylecarbs November 22, 2022 13:04
@mafredri mafredri merged commit e68c441 into main Nov 22, 2022
@mafredri mafredri deleted the mafredri/motd branch November 22, 2022 14:05
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants