Skip to content

Compaction and message export can leak reasoning across models #25190

Closed as not planned

Description

@jackmazac

Description

Compaction and toModelMessages-style export paths did not always strip assistant reasoning or apply the same caps as the main send path. Sessions switched to another model or compacted context could forward reasoning-shaped content where the target provider rejects it.

Steps to reproduce

Run compaction or export assistant history that includes reasoning parts, then send to a model/provider that does not accept those parts unchanged.

OpenCode version

Local / dev branch

Operating System

Any

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 1, 2026
  2. github-actions commented on May 1, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from these, please clarify how it differs.

  3. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 4, 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