Added Authentication Status Settings to API Keys Tab in Settings

This commit is contained in:
trueheads
2025-12-10 13:09:24 -06:00
parent e86ef96a5f
commit aa0b88009c
5 changed files with 229 additions and 58 deletions

View File

@@ -1,57 +1,3 @@
---
name: Codex CLI OpenAI Model Support
overview: Extend the model support system to integrate OpenAI Codex CLI, enabling users to use OpenAI models (GPT-4o, o3, etc.) alongside existing Claude models. This includes CLI detection, model provider abstraction, execution wrapper, and UI updates.
todos:
- id: model-provider-abstraction
content: Create model provider abstraction layer with base interface and Claude/Codex implementations
status: pending
- id: codex-cli-detector
content: Implement Codex CLI detector service to check installation status and version
status: pending
- id: codex-executor
content: Create Codex CLI execution wrapper that spawns subprocess and parses JSON output
status: pending
- id: codex-config-manager
content: Implement Codex TOML configuration manager for model provider setup
status: pending
- id: model-registry
content: Create centralized model registry with provider mappings and metadata
status: pending
- id: update-feature-executor
content: Refactor feature-executor.js to use model provider abstraction instead of direct SDK calls
status: pending
- id: update-agent-service
content: Update agent-service.js to support configurable model selection via provider abstraction
status: pending
- id: message-converter
content: Create message format converter to translate Codex JSONL output to Claude SDK format
status: pending
- id: update-ui-types
content: Extend TypeScript types in app-store.ts to include OpenAI models and provider metadata
status: pending
- id: update-board-view
content: Expand model selection dropdown in board-view.tsx to include OpenAI models with provider grouping
status: pending
- id: update-settings-view
content: Add OpenAI API key input, Codex CLI status check, and test connection button to settings-view.tsx
status: pending
- id: openai-test-api
content: Create OpenAI API test endpoint at app/src/app/api/openai/test/route.ts
status: pending
- id: ipc-handlers
content: Add IPC handlers in main.js for model management (checkCodexCli, getAvailableModels, testOpenAI)
status: pending
- id: preload-api
content: Update preload.js and electron.d.ts to expose new IPC methods to renderer process
status: pending
- id: env-manager
content: Create environment variable manager for centralized API key and config handling
status: pending
- id: error-handling
content: Implement provider fallback logic and user-friendly error messages for missing CLI/API keys
status: pending
---
# Codex CLI OpenAI Model Support Implementation Plan
## Overview