-
Notifications
You must be signed in to change notification settings - Fork 3
Add a Codex CLI provider #22
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededproviderNew AI-CLI provider integrationNew AI-CLI provider integration
Description
Activity
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededproviderNew AI-CLI provider integrationNew AI-CLI provider integration
Summary
Add a new
SessionProviderfor OpenAI Codex CLI so DPlex can discover and resume Codex sessions out of the box, alongside Copilot CLI and Claude Code.Background
DPlex's provider system is documented in
docs/providers.md. Each provider is one TypeScript class implementingSessionProvider(defined insrc/main/services/providers/types.ts). Built-ins live insrc/main/services/providers/.Acceptance criteria
src/main/services/providers/codexProvider.tsexporting aCodexProviderclass that implementsSessionProvider.createDefaultRegistry()insrc/main/services/providers/index.ts.~/.codex/sessionsor similar).getResumeCommand(sessionId)returns the correctcodex --resume=<id>shape.Files to touch
src/main/services/providers/codexProvider.ts(new)src/main/services/providers/index.ts(register)tests/unit/codex-provider.test.ts(new)How to test
npm run typecheck npm run test:unit npm run dev # confirm Codex sessions appear in the Sessions tab if you have anyReference
claudeCodeProvider.tsfor the closest analog (also pidfile-based active detection).copilotProvider.tsfor the other built-in.Effort: 1-2 days for someone unfamiliar with the codebase.