Skip to content

fix: prevent duplicate Anthropic credentials during migration#1860

Merged
tusharmath merged 1 commit intomainfrom
fix/migrate-claude-code-provider
Nov 7, 2025
Merged

fix: prevent duplicate Anthropic credentials during migration#1860
tusharmath merged 1 commit intomainfrom
fix/migrate-claude-code-provider

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

@amitksingh1490 amitksingh1490 commented Nov 7, 2025

Problem

The migrate_env_to_file function was randomly creating either anthropic or claude_code credentials. This happened because:

  1. Both Anthropic and ClaudeCode providers use the same ANTHROPIC_API_KEY environment variable
  2. Depending on the order of configs returned by get_merged_configs(), you'd randomly get either provider

Co-Authored-By: ForgeCode noreply@forgecode.dev

@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Nov 7, 2025
@amitksingh1490 amitksingh1490 changed the title Fix: Prevent duplicate Anthropic credentials during migration fix: prevent duplicate Anthropic credentials during migration Nov 7, 2025
@amitksingh1490 amitksingh1490 force-pushed the fix/migrate-claude-code-provider branch from ebcea0f to 1194d5a Compare November 7, 2025 10:11
@tusharmath tusharmath merged commit e6a64ae into main Nov 7, 2025
9 checks passed
@tusharmath tusharmath deleted the fix/migrate-claude-code-provider branch November 7, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants