[PR #3358] feat: add model management to ACP sessions #10614

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

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

State: closed
Merged: Yes


Description

When I set up OpenCode ACP on Zed, it connected and worked perfectly but, I quickly realized there was no way to switch models. I took inspiration from how codex-acp does the model filtering.

Summary

  • Add model state management to ACP sessions with current model tracking
  • Implement setSessionModel endpoint for dynamic model switching
  • Return available models and current model in session responses

Changes

  • Extend ACPSessionState to include model information
  • Add SetSessionModelRequest/Response types and implementation
  • Update newSession and loadSession to return model metadata
  • Add helper methods for model listing and default model resolution
CleanShot 2025-10-22 at 11 03 27@2x
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3358 **State:** closed **Merged:** Yes --- ## Description When I set up OpenCode ACP on Zed, it connected and worked perfectly but, I quickly realized there was no way to switch models. I took inspiration from how `codex-acp` does the model filtering. ## Summary - Add model state management to ACP sessions with current model tracking - Implement `setSessionModel` endpoint for dynamic model switching - Return available models and current model in session responses ## Changes - Extend `ACPSessionState` to include model information - Add `SetSessionModelRequest/Response` types and implementation - Update `newSession` and `loadSession` to return model metadata - Add helper methods for model listing and default model resolution <img width="489" height="988" alt="CleanShot 2025-10-22 at 11 03 27@2x" src="https://github.com/user-attachments/assets/c3796b9e-7cd8-487a-8e53-ca191fb05d26" />
yindo added the pull-request label 2026-02-16 18:15:19 -05:00
yindo closed this issue 2026-02-16 18:15:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10614