feat(session): add summary-diff opt-out config#26036
Open
ualtinok wants to merge 1 commit intoanomalyco:devfrom
Open
feat(session): add summary-diff opt-out config#26036ualtinok wants to merge 1 commit intoanomalyco:devfrom
ualtinok wants to merge 1 commit intoanomalyco:devfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #26035
Type of change
What does this PR do?
Adds
session.summarizeconfig 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 automaticSessionSummary.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 typecheckbun test test/config/config.test.tsbun test test/session/prompt.test.tsThe push hook also ran root
bun turbo typechecksuccessfully.Screenshots / recordings
Not a UI change.
Checklist