Files
MealQuest/internal
dev_agentandClaude Opus 5.5 4f26ea5ad6
CI / ci (pull_request) Successful in 1m28s
CI / ci (push) Successful in 1m28s
Keep the API key out of %#v for redacted LLM errors
The OpenAI adapter's redactedError had no GoString, so %#v printed its
fields, including the raw API key. Add GoString returning the redacted
text, matching the Anthropic adapter; redactedJoin inherits it.

Add TestRedactedErrorsFormatWithoutKey to both adapters, formatting
redactedError, redactedJoin and transportFailure with %v, %+v and %#v.
llm.ProviderError and llm.RateLimitedError keep no secret and are
already covered by TestTypedErrorsDoNotKeepSecret.

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