anomalyco / anomalyco/opencode
tui: /compact fails with "Compaction produced no summary" (deepseek flash)
Open
@simonklee is already working on this.
Since Aug 13, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
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.jsoncin cwd or~/.config/opencode/)
Reproduction
- Open a session in the TUI (active model:
deepseek flash). - Run
/compact. - Observe the red
x Compactionentry and the messageCompaction 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, anddeepseek flashreturns 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.