Skip to content

Commit b305c7f

Browse files
john-walkoeclaude
andcommitted
FINAL FIX: Redirect prompt_use_existing_key() messages to stderr
Bug: prompt_use_existing_key() was echoing messages to stdout: - 'SUCCESS: Detected existing $key_type API key from another USPTO MCP installation' - 'INFO: Key (masked): $masked_key' These messages were captured and written to API key files. Fix: Redirect all 4 echo statements to stderr (>&2). This completes the stdout pollution fix across all key detection functions. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 767df79 commit b305c7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deploy/Validation-Helpers.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ prompt_use_existing_key() {
246246
local key_type="$1" # "USPTO" or "Mistral"
247247
local masked_key="$2"
248248

249-
echo ""
250-
echo "SUCCESS: Detected existing $key_type API key from another USPTO MCP installation"
251-
echo "INFO: Key (masked): $masked_key"
252-
echo ""
249+
echo "" >&2
250+
echo "SUCCESS: Detected existing $key_type API key from another USPTO MCP installation" >&2
251+
echo "INFO: Key (masked): $masked_key" >&2
252+
echo "" >&2
253253
read -p "Would you like to use this existing key? (Y/n): " USE_EXISTING
254254
USE_EXISTING=${USE_EXISTING:-Y}
255255

0 commit comments

Comments
 (0)