Repository navigation
Turn the summarizer off, not diffr, when it has no API key - #91
Merged
Merged
Conversation
ketan0
force-pushed
the
summarizer-off-without-key
branch
4 times, most recently
from
October 6, 2026 19:24
b6c1f45 to
81a9e8a
Compare
With the summarizer on and no key in the config or environment, its constructor failed and diffr exited 2 before writing a single record, so every diff failed. Without a key the summarizer is now made off for the run: it says why on stderr and leaves every file as it is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ketan0
force-pushed
the
summarizer-off-without-key
branch
from
October 6, 2026 19:30
81a9e8a to
77eb08b
Compare
thesiti92
approved these changes
Oct 6, 2026
ketan0
enabled auto-merge (squash)
October 6, 2026 19:54
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.
With
plugins.bundled.summarize.enabled = trueand no API key in the config or environment, the summarizer's constructor failed and diffr exited 2 before writing a single record. One optional plugin missing a key broke every diff, including for tools that embed diffr.Now, when the key is missing, the summarizer starts switched off for the run instead of failing. It prints the reason (same message as before) to stderr, and
visitreturns early so no file is changed. Each worker has its own copy of the plugin, so the line is printed once per worker.plugins/shape/summarize/rust/src/lib.rs: the change, plus a rebuiltplugin.wasmAI disclosure: written with Claude Code.
🤖 Generated with Claude Code