// changelog
v1.21.1
guard now fails closed on a degraded review, gemini-cli rejects oversized prompts with a clear message, and four small leaks and error-language defects are fixed.
Released October 25, 2026
Fixed
guardnow fails closed on a degraded review without--sarif. When the review degraded (an unparsable model response, live, replayed from cache, or a--from-jsondocument carryingmeta.degrade_reason),guardexits 1 with a “policy cannot be verified” error instead of reading the empty result as zero findings and passing. The--sarifpath already refused a degraded review.reviewanddiff --fail-onkeep their graceful-degrade behavior. See Policy gate.gemini-clirejects an oversized prompt before startinggemini. The prompt travels as a command-line argument, so a large diff used to fail with an opaqueE2BIG-shaped error. It now returns a localized message with the prompt size and the limit, and suggests narrowing with--file/--dir(or--exclude-file/--exclude-dir). Anargument list too longerror from the OS is mapped to the same message for every CLI-backed provider.leaksno longer reports a missinggitbinary as an invalidguard.secret_patternsentry; it shows the localized “git not found” / “not a repository” message.- The early
Error:prefix follows the same language order as every other message (--lang, repo config, user config, English) instead of--langonly. leaks --jsonsetsmeta.truncated: truewhen--max-commitscut the history short (additive;meta.walk_truncatedis unchanged). See Leaks.--textbranch-name matching is bounded by the commit walk ceiling instead of--max-commits, so a cut is reported as truncation rather than dropped silently.
Changed
- Building from source now requires Go 1.26 or later (
go install,make build). Prebuilt binaries (Homebrew, Scoop, GitHub Releases) are unaffected. - Dependency updates:
anthropic-sdk-go,genai,go-git, and thegolang.org/xmodules. The Anthropic SDK links the OpenTelemetry API; CommitBrief configures no tracer or exporter, so it stays a no-op and sends nothing.