Skip to content

Error on session compaction on Opus 4.6 #17911

Closed as not planned
Closed as not planned

Description

@amannhq

Description

Getting this error on session compaction

undefined: The model returned the following errors: messages.3.content.1: thinking or redacted_thinking blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.

Image

Plugins

oh-my-openagent

OpenCode version

No response

Steps to reproduce

  1. Start the agent install the oh-my-openagent plugin select Sisyphus (Ultraworker) agent.
  2. Give a prompt select Opus 4.6 connect via amazon-bedrock.
  3. Wait till context window reaches and trigged auto compaction

Screenshot and/or share link

No response

Operating System

macos Tahoe

Terminal

Opencode desktop

Activity

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

    @github-actions
    Contributor

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

    Please review these issues and comment on one of them if your problem is the same, so we can consolidate tracking.

  3. Jacko1394 commented on Mar 22, 2026

    @Jacko1394

    Opus 4.6 works for one Plan pass, but then I always get Bad Request on the Build pass.

    Image
  4. Jacko1394 commented on Mar 31, 2026

    @Jacko1394

    Seems the same as: #13217
    In the latest v1.3.9, when using Opus 4.6 via GitHub Copilot Enterprise, when the compaction occurs I hear an error sound, but no error shown.
    Once that happens I cannot prompt any further, and can't change models either (previously that was a workaround) so the session cannot be used anymore.

    @Hona Would you be able to help with this? 🥹

    Image
  5. Jacko1394 commented on Apr 13, 2026

    @Jacko1394

    Still blocking me: #11301 (comment)

  6. Hona commented on Apr 13, 2026

    @Hona
    Member

    @Jacko1394 are you using opus 4.6 via github copilot auth?

  7. Jacko1394 commented on Apr 13, 2026

    @Jacko1394

    @Jacko1394 are you using opus 4.6 via github copilot auth?

    Yeah, GitHub Copilot Enterprise provider

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