Skip to content

Commit c23cbcb

Browse files
john-walkoeclaude
andcommitted
CRITICAL FIX: Prevent INFO messages from corrupting Mistral API key file
Bug: INFO messages in prompt_and_validate_mistral_key() were echoed to stdout and captured when calling MISTRAL_API_KEY=$(prompt_and_validate_mistral_key), resulting in key file containing INFO text + actual key (169 chars instead of 32). Fix: Redirect INFO echo statements to stderr (>&2) so only the key goes to stdout. Impact: Mistral key detection now works correctly across MCP installations. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 7211397 commit c23cbcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy/Validation-Helpers.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ prompt_and_validate_mistral_key() {
368368
fi
369369

370370
# STEP 2: Prompt for new key (either no existing key, or user wants to override)
371-
echo "INFO: Mistral API key is OPTIONAL (for OCR on scanned documents)"
372-
echo "INFO: Press Enter to skip, or enter your 32-character Mistral API key"
373-
echo
371+
echo "INFO: Mistral API key is OPTIONAL (for OCR on scanned documents)" >&2
372+
echo "INFO: Press Enter to skip, or enter your 32-character Mistral API key" >&2
373+
echo >&2
374374

375375
while [[ $attempt -lt $max_attempts ]]; do
376376
((attempt++))

0 commit comments

Comments
 (0)