Skip to content

没有触发自动compact #31844

Closed as not planned
Closed as not planned

Description

@fashen97

Description

opencode.json没有配置compaction相关,查看文档默认值是true
codex的gpt5.5设置:
"limit": {
"context": 272000,
"output": 128000,
}
上下文97%时仍不自动压缩,后续对话直接中断,查看cpa日志返回:
HTTP 400
{"error":{"message":"Your input exceeds the context window of this model. Please adjust your input and try again.","type":"invalid_request_error","code":"context_too_large"}}

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jun 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is different from these, please add more details (OpenCode version, OS, terminal, and steps to reproduce) to help distinguish it.

  2. github-actions commented on Aug 11, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions