feat(agent): populate subagent ID for terraform-defined devcontainers by DanielleMaywood · Pull Request #21942 · coder/coder

@DanielleMaywood

Update the manifest API in coderd to populate the subagent_id field for
devcontainers, enabling the agent to receive devcontainer resource
definitions with pre-assigned IDs and use them when creating sub-agents.

This allows Terraform-defined devcontainers to:
- Have stable subagent IDs across workspace rebuilds
- Prevent accidental deletion/recreation of managed subagents
- Prevent UI-initiated rebuilds of terraform-managed containers

johnstcn

johnstcn

johnstcn

mafredri

@DanielleMaywood

- Allow re-building terraform managed dev containers
- Add a test to confirm we upsert, not delete & create
- Update the frontend to reflect this change
- Update the frontend to indicate a dev container is terraform managed

mafredri

mafredri

@DanielleMaywood

@matifali matifali linked an issue

Feb 18, 2026

that may be closed by this pull request

2 tasks