Skip to content

fix(enterprise/coderd): allow deleting external-agent workspaces#26501

Open
ethanndickson wants to merge 1 commit into
mainfrom
workspace-deletion-wecf
Open

fix(enterprise/coderd): allow deleting external-agent workspaces#26501
ethanndickson wants to merge 1 commit into
mainfrom
workspace-deletion-wecf

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Jun 18, 2026

Copy link
Copy Markdown
Member

I stumbled on this while manually testing another workspace change: if a license expires after an external-agent workspace exists, deleting that workspace is rejected because CheckBuildUsage enforces the external-agent entitlement for every workspace transition. I assume this is unintentional from a product POV.

This PR narrows the external-agent entitlement check to start builds. Creating or rebuilding external-agent workspaces still requires the feature entitlement, but stop and delete transitions stay available as cleanup paths.

That matches the managed-agent entitlement precedent (i.e. the usage billing check) in the same CheckBuildUsage path, where license enforcement is scoped to start transitions instead of trapping users with resources they can no longer remove.

@ethanndickson ethanndickson marked this pull request as ready for review June 18, 2026 03:22
@ethanndickson ethanndickson requested a review from bpmct June 18, 2026 03:24
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.

1 participant