coder / coder/jetbrains-coder

Prevent workspaces from being kept alive when they should not

Open
#472 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
33
Forks
18
Avg merge
2d 13h
Merged PRs (30d)
1

Description

Functional duplicate of https://github.com/coder/vscode-coder/issues/309 for the Jetbrains extension.

When users stop their workspaces in the dashboard, an idle jetbrains gateway session may reconnect them, and start the workspace when the user is not present. This can incur unnecessary costs for administrators while devs are not active.

We should copy the behavior [Asher describes here](https://github.com/coder/vscode-coder/issues/309#issuecomment-2195472060) if possible.

> Is there a workspace build going on? If so, wait for that build.
> Is the workspace on? If not, prompt to start the workspace and depending on the response go back to 1 or quit.
> Otherwise wait for the agent to be ready then connect, or exit if the agent enters some failed/off state.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.