Skip to content

Compaction does not work after changing models sometimes #6474

Closed

Description

@esau-morais

Description

Image

seems like when i change model to perform compaction-only sometimes it doesn't do anything and gets stuck in this state.

if i try to run again, returns an error:

messages.1: all messages must have non-empty content except for the optional final assistant message

Image

OpenCode version

1.0.218

Steps to reproduce

  1. enter prompt in build mode
  2. change model after some time
  3. type /compact command
  4. see that compaction doesn't work

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04.3 LTS

Terminal

Alacritty

Activity

  1. changed the title [-]Compaction does not work after changing models[/-] [+]Compaction does not work after changing models sometimes[/+] on Dec 30, 2025
  2. github-actions commented on Dec 30, 2025

    @github-actions
    Contributor

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

    The common thread appears to be compaction failures related to message structure and/or model switching. #6446 in particular has detailed root cause analysis that might apply to your situation.

    Feel free to ignore if none of these address your specific case.

  3. esau-morais commented on Dec 30, 2025

    @esau-morais
    Author

    seems to be related to #6446, closing

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions