Skip to content

Conversation

@andrewbaldwin44
Copy link
Contributor

Fixes #1636
References #7177

Proposal

  • Add an --idle-timeout-seconds argument that can be used to exit code server when idle
  • Add validation to ensure idle timeout is a valid number and that the number is above 60 seconds
  • Add a simple unit test case

@andrewbaldwin44 andrewbaldwin44 requested a review from a team as a code owner October 23, 2025 12:58
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Awesome, thank you for tackling this!

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Stellar thank you! Only one thing, looks like the VS Code submodule was updated, probably just accidentally committed, so we need to remove that.

@andrewbaldwin44 andrewbaldwin44 force-pushed the main branch 3 times, most recently from 0e23956 to c6e62e3 Compare October 25, 2025 19:18
@andrewbaldwin44
Copy link
Contributor Author

Yup sorry that was added accidentally, should be good now!

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Thank you again!

@code-asher code-asher merged commit db8a41b into coder:main Oct 29, 2025
10 checks passed
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.

Add --idle-timeout to shutdown code-server when there isn't an active connection

2 participants