[PR #12305] feat(acp): include subagents in available modes response #14159

Closed
opened 2026-02-16 18:18:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12305

State: closed
Merged: No


Summary

  • Include subagents in ACP available modes response

Closes #11576

Changes

Remove subagent filter from loadAvailableModes and add mode field to response, letting clients decide what to display.

- .filter((agent) => agent.mode !== "subagent" && !agent.hidden)
+ .filter((agent) => !agent.hidden)
  .map((agent) => ({
    id: agent.name,
    name: agent.name,
    description: agent.description,
+   mode: agent.mode,
  }))

Backward Compatibility

Same data shape, just with more entries and an additional mode field. Existing clients can filter by mode if needed.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12305 **State:** closed **Merged:** No --- ## Summary - Include subagents in ACP available modes response Closes #11576 ## Changes Remove subagent filter from `loadAvailableModes` and add `mode` field to response, letting clients decide what to display. ```diff - .filter((agent) => agent.mode !== "subagent" && !agent.hidden) + .filter((agent) => !agent.hidden) .map((agent) => ({ id: agent.name, name: agent.name, description: agent.description, + mode: agent.mode, })) ``` ## Backward Compatibility Same data shape, just with more entries and an additional `mode` field. Existing clients can filter by `mode` if needed.
yindo added the pull-request label 2026-02-16 18:18:58 -05:00
yindo closed this issue 2026-02-16 18:18:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14159