Skip to content

feat(session): add summary-diff opt-out config#26036

Open
ualtinok wants to merge 1 commit intoanomalyco:devfrom
ualtinok:fix/session-summarize-config
Open

feat(session): add summary-diff opt-out config#26036
ualtinok wants to merge 1 commit intoanomalyco:devfrom
ualtinok:fix/session-summarize-config

Conversation

@ualtinok
Copy link
Copy Markdown
Contributor

@ualtinok ualtinok commented May 6, 2026

Issue for this PR

Closes #26035

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds session.summarize config so users can opt out of automatic session diff summarization during prompt processing.

By default nothing changes. When set to false, opencode skips the two automatic SessionSummary.summarize(...) callers used during prompt runs. This avoids broad session-history hydration for diff metadata when responsiveness is more important than automatic per-turn/session diff summaries.

It does not disable prompt execution, title generation, compaction, tool calls, or revert/manual diff behavior.

Example:

{
  "session": {
    "summarize": false
  }
}

How did you verify your code works?

From packages/opencode:

  • bun typecheck
  • bun test test/config/config.test.ts
  • bun test test/session/prompt.test.ts

The push hook also ran root bun turbo typecheck successfully.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@ualtinok ualtinok changed the title feat(session): add summary opt-out config feat(session): add summary-diff opt-out config May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Allow disabling automatic session diff summarization

1 participant