You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by bjornrobertsson March 20, 2025
Description
When investigating Workspace behavior, it would be valuable to track why a workspace was started. Currently, currently there's no clear way to determine if a workspace was started due to a user SSH connection, VS Code connection, or direct console action.
Proposed Solution
Add a build_reason field to workspace builds that provides context about what triggered the build. This field should be exposed in the API, UI, and included in support bundles.
Use Cases
Debugging Unexpected Starts: Support teams need to identify if workspaces are being started inadvertently (e.g., by VS Code connecting in the background)
Resource Optimization: Understanding start patterns helps optimize for common usage
Audit Trail: Provides better visibility into workspace lifecycle events
Support Investigations: Simplifies troubleshooting when users report unexpected behavior
Implementation Details
Add a build_reason field to the workspace build database schema
Allow clients to set this reason when requesting a workspace build
Automatically set reasons for system-initiated builds (e.g., autostart)
Pre-defined reason types could include:
user_ssh_connection
vscode_connection
web_terminal
manual_ui_action
autostart_schedule
api_request
Context
This request was inspired by troubleshooting scenarios and the discovery we don't log the exact method of the start, only the client/worker.
Discussed in #17024
Originally posted by bjornrobertsson March 20, 2025
Description
When investigating Workspace behavior, it would be valuable to track why a workspace was started. Currently, currently there's no clear way to determine if a workspace was started due to a user SSH connection, VS Code connection, or direct console action.
Proposed Solution
Add a
build_reason
field to workspace builds that provides context about what triggered the build. This field should be exposed in the API, UI, and included in support bundles.Use Cases
Implementation Details
build_reason
field to the workspace build database schemauser_ssh_connection
vscode_connection
web_terminal
manual_ui_action
autostart_schedule
api_request
Context
This request was inspired by troubleshooting scenarios and the discovery we don't log the exact method of the start, only the client/worker.
Related Issues
cc: @bjornrobertsson
The text was updated successfully, but these errors were encountered: