mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 22:32:04 +00:00
When an OpenAI API key is stored in settings or environment, use SDK mode instead of CLI mode. This bypasses the MCP transport layer which was failing with 'TokenRefreshFailed' errors due to OAuth token issues. The SDK uses the API key directly via @openai/codex-sdk, avoiding the OAuth token refresh mechanism that was causing mid-execution failures.