[FEATURE]: /compact should be configurable to use OpenAI Responses API 'compaction' #3377

Open
opened 2026-02-16 17:39:50 -05:00 by yindo · 4 comments
Owner

Originally created by @ddbaron on GitHub (Dec 7, 2025).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

For OpenAI models using Responses API, there is a /compact API:
https://cookbook.openai.com/examples/gpt-5/gpt-5-1-codex-max_prompting_guide#compaction
https://platform.openai.com/docs/api-reference/responses/compact

OC should allow configurable use of this API when utilizing the OC /compact command so the user can either use the OC compact (default) or configure their model to use the OpenAI compact instead.

Originally created by @ddbaron on GitHub (Dec 7, 2025). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request For OpenAI models using Responses API, there is a /compact API: https://cookbook.openai.com/examples/gpt-5/gpt-5-1-codex-max_prompting_guide#compaction https://platform.openai.com/docs/api-reference/responses/compact OC should allow configurable use of this API when utilizing the OC /compact command so the user can either use the OC compact (default) or configure their model to use the OpenAI compact instead.
yindo added the discussion label 2026-02-16 17:39:50 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 7, 2025):

This issue relates to several existing discussions around OpenAI Responses API configuration. While not direct duplicates, you may want to check these related issues:

  • #5104: Model configuration with Responses API parameters (store, include, reasoningEffort)
  • #4445: GPT 5.1 Codex requiring model-specific Responses API configuration
  • #4659: Alternative compaction strategies for context management

These issues show similar requests for configurable API-specific features and behaviors. Your feature request for a configurable /compact command aligns with this broader need for model/provider-specific configurability in OpenCode.

@github-actions[bot] commented on GitHub (Dec 7, 2025): This issue relates to several existing discussions around OpenAI Responses API configuration. While not direct duplicates, you may want to check these related issues: - #5104: Model configuration with Responses API parameters (store, include, reasoningEffort) - #4445: GPT 5.1 Codex requiring model-specific Responses API configuration - #4659: Alternative compaction strategies for context management These issues show similar requests for configurable API-specific features and behaviors. Your feature request for a configurable /compact command aligns with this broader need for model/provider-specific configurability in OpenCode.
Author
Owner

@aaiyer commented on GitHub (Jan 17, 2026):

This feature is the only reason preventing me from using opencode over codex cli

@aaiyer commented on GitHub (Jan 17, 2026): This feature is the only reason preventing me from using opencode over codex cli
Author
Owner

@juzi5201314 commented on GitHub (Jan 26, 2026):

This is the most important feature for users who use GPT on OpenCode.

@juzi5201314 commented on GitHub (Jan 26, 2026): This is the most important feature for users who use GPT on OpenCode.
Author
Owner

@Sleepstars commented on GitHub (Feb 8, 2026):

This is the most important feature for users who use GPT on OpenCode.

Couldn't agree more, OpenCode's current compact method doesn't perform as well as OpenAI's native compact endpoint.

@Sleepstars commented on GitHub (Feb 8, 2026): This is the most important feature for users who use GPT on OpenCode. Couldn't agree more, OpenCode's current compact method doesn't perform as well as OpenAI's native compact endpoint.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3377