co-mono/packages
Lukas Pitschl a248e2547a
fix(ai): remove global process.env.ANTHROPIC_API_KEY deletion (#164)
* fix(ai): remove global process.env.ANTHROPIC_API_KEY deletion

The code was deleting process.env.ANTHROPIC_API_KEY to prevent the SDK
from using it when OAuth tokens were provided. However, this was a global
mutation that affected the entire Node.js process, causing the API key to
be unavailable after the first prompt.

The Anthropic SDK constructor already handles credential selection via
parameters (apiKey: null, authToken: token for OAuth vs apiKey: key for
regular keys), so the environment variable deletion was unnecessary.

* Update CHANGELOG.md for API key fix
2025-12-10 18:12:16 +01:00
..
agent Release v0.18.0 2025-12-10 01:18:13 +01:00
ai fix(ai): remove global process.env.ANTHROPIC_API_KEY deletion (#164) 2025-12-10 18:12:16 +01:00
coding-agent Release v0.18.0 2025-12-10 01:18:13 +01:00
mom Release v0.18.0 2025-12-10 01:18:13 +01:00
pods Release v0.18.0 2025-12-10 01:18:13 +01:00
proxy Release v0.18.0 2025-12-10 01:18:13 +01:00
tui Release v0.18.0 2025-12-10 01:18:13 +01:00
web-ui Release v0.18.0 2025-12-10 01:18:13 +01:00