Skip to content

Conversation

@NewtonDer
Copy link

@NewtonDer NewtonDer commented Aug 27, 2025

Issue #, if available:

Description of changes:
Problem: The sagemaker-idle-extension checks if there is an active terminal session by checking for the existence of /dev/pts entries in the file system. However, when the user closes the Code Editor browser tab, the sagemaker-idle-extension is deactivated, so even if an active terminal process is still running, the idle shutdown countdown starts.

Solution: We move the checkTerminalActivity function to the /api/idle handler on the code server side, so that it runs even when the browser tab is closed. The /api/idle endpoint is called by the SageMaker Studio service on a 1-minute interval to determine whether the Code Editor instance is idle or not.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@pilgd-aws pilgd-aws self-assigned this Aug 28, 2025
@NewtonDer NewtonDer merged commit f965d42 into aws:1.7 Sep 2, 2025
1 check 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.

3 participants