Skip to content

[codex] Refactor marketplace add into shared core flow#17717

Merged
xli-oai merged 5 commits intomainfrom
xli-codex/marketplace-add-shared-impl
Apr 14, 2026
Merged

[codex] Refactor marketplace add into shared core flow#17717
xli-oai merged 5 commits intomainfrom
xli-codex/marketplace-add-shared-impl

Conversation

@xli-oai
Copy link
Copy Markdown
Contributor

@xli-oai xli-oai commented Apr 13, 2026

Summary

Move codex marketplace add onto a shared core implementation so the CLI and app-server path can use one source of truth.

This change:

  • adds shared marketplace-add orchestration in codex-core
  • switches the CLI command to call that shared implementation
  • removes duplicated CLI-only marketplace add helpers
  • preserves focused parser and add-path coverage while moving the shared behavior into core tests

Why

The new marketplace/add RPC should reuse the same underlying marketplace-add flow as the CLI. This refactor lands that consolidation first so the follow-up app-server PR can be mostly protocol and handler wiring.

Validation

  • cargo test -p codex-core marketplace_add
  • cargo test -p codex-cli marketplace_cmd
  • just fix -p codex-core
  • just fix -p codex-cli
  • just fmt

@xli-oai xli-oai added the oai PRs contributed by OpenAI employees label Apr 13, 2026
@xli-oai xli-oai marked this pull request as ready for review April 13, 2026 23:55
@xli-oai xli-oai force-pushed the xli-codex/marketplace-add-shared-impl branch from cb2de60 to 1352f5c Compare April 14, 2026 01:13
xli-oai added 2 commits April 13, 2026 18:31
## Summary

Add a new app-server `marketplace/add` RPC on top of the shared
marketplace-add implementation.

This change:
- adds `MarketplaceAddParams` / `MarketplaceAddResponse` to the
app-server protocol
- wires the new request through `codex_message_processor`
- reuses the shared core marketplace-add flow from the lower refactor PR
- updates generated schema files and adds focused protocol and
app-server coverage

## Why

The TUI can already browse, inspect, install, and uninstall plugins, but
it did not have a backend API for adding a marketplace source. With the
shared CLI/core refactor below this PR, the API now reuses the same
underlying implementation instead of carrying its own duplicate flow.

## Validation

- `cargo test -p codex-app-server-protocol marketplace_add`
- `cargo test -p codex-app-server marketplace_add`
@xli-oai xli-oai merged commit ff584c5 into main Apr 14, 2026
21 of 22 checks passed
@xli-oai xli-oai deleted the xli-codex/marketplace-add-shared-impl branch April 14, 2026 03:37
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants