Skip to content

tui: /compact fails with "Compaction produced no summary" (deepseek flash) #42371

Closed as not planned

Description

@reisi007

Summary

Running /compact in the TUI consistently fails: the compaction step is marked as failed (red x Compaction) and reports "Compaction produced no summary". No session summary is produced, so context compaction does not work.

Environment

  • opencode version: 1.18.16 (opencode --version)
  • OS: macOS Darwin arm64
  • Terminal: TERM=xterm-256color
  • Shell: /bin/zsh
  • Install/channel: release (1.18.16)
  • Active plugins: none found (no opencode.json/opencode.jsonc in cwd or ~/.config/opencode/)

Reproduction

  1. Open a session in the TUI (active model: deepseek flash).
  2. Run /compact.
  3. Observe the red x Compaction entry and the message Compaction produced no summary.

Expected Behavior

Compaction runs and produces a summary of the session that is applied, so the context is compacted and the conversation can continue normally.

Actual Behavior

Consistent failure: no summary is produced. The compaction step is marked as failed (red x Compaction) with the message Compaction produced no summary.

Additional Context

  • Consistently reproducible, not intermittent.
  • Active model: deepseek flash. Hypothesis: compaction uses the active model, and deepseek flash returns empty/unsupported content for the summary step (or the summary request fails). Worth checking whether compaction succeeds with other models, and surfacing the underlying model response/error instead of the generic "produced no summary" message.
  • No workarounds found.

Activity

  1. github-actions commented on Aug 13, 2026

    @github-actions
    Contributor

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

    Both issues share the same core behavior: the compaction agent produces no summary when using a reasoning model (DeepSeek or similar), and #42363 in particular covers the exact same model and symptom you are seeing.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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