Files
MealQuest/internal
dev_agentandClaude Opus 5.5 cceeafd200
CI / ci (push) Successful in 1m29s
CI / ci (pull_request) Successful in 1m28s
Redact every layer of a returned error chain, not just the top
redactedError.Unwrap returned the original error, so errors.Unwrap could
reach an inner error whose text still held the API key. Unwrap now passes
each cause through redact, so every error reached by unwrapping has the
key removed, and errors with several causes are handled the same way.
redact also checks the whole chain, catching a layer that hides the key
from its own text but wraps an error that shows it. Is and As consult the
original chain, so sentinels and *llm.ProviderError still match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 07:26:37 -04:00
..