anomalyco / anomalyco/opencode

Title: Inline compaction summary truncates lines to ~15 characters

Open
#39,843 0 comments 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

When a session is auto-compacted, the inline "Session Summary" embedded in the context stream clips every line to approximately 15 characters. Sections like "Constraints & Preferences", "Next Steps", and "Key Decisions" become unreadable. Example output:
Progress
Done

  • [
  • [x
  • [
  • [
  • [x
    This happens because the compaction mechanism appears to apply a fixed-width truncation on each line rather than preserving the full text. The "compaction" config key (auto: true, tail_turns: 15) doesn't seem to control the summary generation behavior.
Plugins

compact tool

OpenCode version

1.18.9 (latest)

Steps to reproduce

compacting after a long task(used matt skills to break into tickets and compacting in between)

Screenshot and/or share link
Image
Operating System

Windows x64

Terminal

windows terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.