Skip to content

Enable Devcontainer-cli module to block user login until script finishes running#759

Open
justmanuel wants to merge 16 commits intocoder:mainfrom
justmanuel:main
Open

Enable Devcontainer-cli module to block user login until script finishes running#759
justmanuel wants to merge 16 commits intocoder:mainfrom
justmanuel:main

Conversation

@justmanuel
Copy link

@justmanuel justmanuel commented Feb 25, 2026

Description

Allow for devcontainer-cli module to prevent users from logging in until its finished running.

Type of Change

  • New module
  • New template
  • Bug fix
  • [x ] Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder/modules/devcontainers-cli
New version: 1.1.0
Breaking change: [ ] Yes [x ] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • [ x] Changes tested locally

Related Issues

None

allow devcontainer cli module to specify if it should block user login or not
Copy link
Contributor

@DevelopmentCats DevelopmentCats left a comment

Choose a reason for hiding this comment

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

Overall this looks good.

I don't think you would need to declare start_blocks_login as false in every test considering it defaults to false.

You would also want to update the version for this following the versioning guidelines in CONTRIBUTING.md.

justmanuel and others added 2 commits February 26, 2026 09:10
Co-authored-by: DevCats <chris@dualriver.com>
removing start_blocks_login: false where not needed in test
@justmanuel justmanuel changed the title fix test Enable Devcontainer-cli module to block user login until script finishes running Feb 26, 2026
Update proposed version
add variable proposed
Remove variable as not needed since terraform has a default value for it and fails test when specified.
fix formatting of main.tf
@DevelopmentCats
Copy link
Contributor

DevelopmentCats commented Feb 26, 2026

@justmanuel LGTM I will test it and make sure this doesn't cause any wonky behavior. Also you might need to run bun fmt for the ci to pass.

Thanks for the contribution!

@justmanuel
Copy link
Author

@justmanuel LGTM I will test it and make sure this doesn't cause any wonky behavior. Also you might need to run bun fmt for the ci to pass.

Thanks for the contribution!

Yeah sorry thought I had ran that.

Copy link
Contributor

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

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

@DevelopmentCats I'm happy with the changes from my side, will leave the final approval up to you

@DevelopmentCats
Copy link
Contributor

@justmanuel

I have tested and everything looks good to me too.

I will just need you to update the version in the README for this module following the CONTRIBUTING.md versioning guidelines.

@justmanuel
Copy link
Author

justmanuel commented Feb 27, 2026

@justmanuel

I have tested and everything looks good to me too.

I will just need you to update the version in the README for this module following the CONTRIBUTING.md versioning guidelines.

Hi @DevelopmentCats , I;m a bit confused I thought I had updated it according to the CONTRIBUTING.md, if I am adding a variable should the new version not be 1.1.0 ? or are we talking about it needing to be updated in a different README?

@DevelopmentCats
Copy link
Contributor

@justmanuel
I have tested and everything looks good to me too.
I will just need you to update the version in the README for this module following the CONTRIBUTING.md versioning guidelines.

Hi @DevelopmentCats , I;m a bit confused I thought I had updated it according to the CONTRIBUTING.md, if I am adding a variable should the new version not be 1.1.0 ? or are we talking about it needing to be updated in a different README?

Nah you are right I was just missing the last part of the diff..

My bad!

We are good to go here then I will run the CI once more, and release. Thanks for the work!! ❤️

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