[Design] How should Chat2DB integrate Codex and ChatGPT subscription access? #2412
openai0229
started this conversation in
Ideas
Replies: 1 comment
Design decision logThis comment will be updated as each question in this Discussion is resolved. 1. Product conceptDecision:
2. Runtime ownershipDecision:
3. Routing boundaryDecision:
4. Authentication and account stateDecision:
5. Models and configurationDecision:
6. Runtime deliveryDecision:
7. Database capabilitiesDecision:
8. State ownershipDecision:
9. Release gatesDecision:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Context
PR #2371 demonstrates that Chat2DB Community can package and supervise the official Codex app-server, authenticate with a ChatGPT account, discover available models, stream Codex turns, and expose Chat2DB database tools through MCP.
This is a valuable product direction and a substantial feasibility effort. Thank you @HaijieChen for exploring authentication safety, packaging, model discovery, tool execution, and recovery concerns in depth.
Before choosing a production architecture, we should make the product and ownership boundaries explicit. This Discussion is intentionally question-driven. It does not assume that the current pull-request structure should be retained, that Codex must be modeled as a separate provider, or that any particular persistence and packaging approach is required.
Product goal to discuss
A Chat2DB Community desktop user may want to:
The related Feature Issue will define the user problem and observable outcome. This Discussion is only for the unresolved design.
Open questions
1. What is the product concept?
2. Which runtime owns the agent loop?
The Codex app-server exposes thread and turn APIs rather than a raw model-completion API.
3. What should the routing boundary be?
4. How should authentication and account state work?
5. How should models and configuration be represented?
6. How should Codex app-server be delivered?
7. What database capabilities should Codex receive?
8. How should state ownership remain within existing Chat2DB domains?
9. What are the release gates?
Evidence to bring into the discussion
Useful input includes:
Tracking
The Issue owns the user problem, scope, priority, acceptance criteria, and implementation tracking. This Discussion owns unresolved design questions, alternatives, and decision records.
All reactions