Skip to content

fix: clamp template port sharing level in SubAgentAPI (#26061)#26249

Merged
f0ssel merged 1 commit into
release/2.33from
cherry-pick/26061/release/2.33
Jun 11, 2026
Merged

fix: clamp template port sharing level in SubAgentAPI (#26061)#26249
f0ssel merged 1 commit into
release/2.33from
cherry-pick/26061/release/2.33

Conversation

@jdomeracki-coder

Copy link
Copy Markdown
Contributor

Cherry-pick backport to release/2.33.

Fixes an issue where sub-agent apps created via CreateSubAgent would
bypass the check for the template's max port sharing level:

- Clamps dynamically inserted `workspace_apps` to the template max
sharing level in `coderd.agentapi.SubAgentAPI`.
- Emits a warning when clamping occurs.
- Adds unit test coverage for the max sharing level matrix.
- Adds an integration-ish test through the devcontainer sub-agent client
path.

> 🤖 Generated by Coder Agents with guidance from a human.

(cherry picked from commit 63cd8a8)
@f0ssel f0ssel merged commit 0ff82f1 into release/2.33 Jun 11, 2026
31 checks passed
@f0ssel f0ssel deleted the cherry-pick/26061/release/2.33 branch June 11, 2026 17:09
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants