Skip to content

Conversation

@michaelneale
Copy link
Collaborator

@michaelneale michaelneale commented Jan 21, 2026

This lets goose work with codex subscriptions:

image Screenshot 2026-01-22 at 1 52 01 pm

Will use system browser to auth to use the subscription:

image

@michaelneale michaelneale marked this pull request as ready for review January 21, 2026 02:58
Copilot AI review requested due to automatic review settings January 21, 2026 02:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for ChatGPT Codex subscriptions (ie. ChatGPT Plus/Pro) through OAuth authentication, allowing users to access GPT-5 Codex models using their existing ChatGPT subscription.

Changes:

  • New ChatGptCodexProvider with OAuth PKCE flow implementation for authentication
  • Backend API endpoint /config/providers/{name}/oauth for triggering OAuth flows
  • UI updates to support OAuth provider configuration with a sign-in button instead of manual API key entry

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
crates/goose/src/providers/chatgpt_codex.rs Complete new provider implementation with OAuth PKCE flow, token management, and Codex API integration
crates/goose/src/providers/mod.rs Added chatgpt_codex module export
crates/goose/src/providers/factory.rs Registered ChatGptCodexProvider in the provider registry
crates/goose-server/src/routes/config_management.rs Added configure_provider_oauth endpoint to trigger OAuth flows
crates/goose-server/src/openapi.rs Added configure_provider_oauth to OpenAPI documentation
ui/desktop/openapi.json Auto-generated OpenAPI schema for the new OAuth endpoint
ui/desktop/src/api/types.gen.ts Auto-generated TypeScript types for OAuth endpoint
ui/desktop/src/api/sdk.gen.ts Auto-generated SDK function for OAuth endpoint
ui/desktop/src/api/index.ts Auto-generated exports for OAuth endpoint
ui/desktop/src/components/settings/providers/modal/ProviderConfiguationModal.tsx Added OAuth flow UI with sign-in button and loading states

* main:
  increase worker threads for ci (#6614)
  docs: todo tutorial update (#6613)
  Added goose doc map md file for goose agent to find relevant doc easily. (#6598)
  add back goose branding to home (#6617)
  fix: actually set the working dir for extensions from session (#6612)
  Multi chat (#6428)
  Lifei/fixed accumulated token count (#6587)
  Dont show MCP UI/Apps until tool is approved (#6492)
Copilot AI review requested due to automatic review settings January 21, 2026 23:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated 12 comments.

* main:
  chore: tweak release docs (#6571)
  fix(goose): propagate session_id across providers and MCP (#6584)
Copilot AI review requested due to automatic review settings January 22, 2026 02:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.

@codefromthecrypt
Copy link
Collaborator

just to ack.. I am on this one

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Copilot AI review requested due to automatic review settings January 22, 2026 06:18
@codefromthecrypt
Copy link
Collaborator

pushed some cleanups e.g. that singleton stuff feels more like sessionmanager and permissions manager

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated 12 comments.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Copy link
Collaborator

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've looked at the code and tidied up certain things that stood out. If this works for you after my changes, mergeroo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants