Skip to content

[codex] expose remote plugin share URL - #27890

Merged
ericning-o merged 2 commits into
mainfrom
codex/plugin-detail-share-url
Jun 12, 2026
Merged

[codex] expose remote plugin share URL#27890
ericning-o merged 2 commits into
mainfrom
codex/plugin-detail-share-url

Conversation

@ericning-o

Copy link
Copy Markdown
Contributor

Summary

  • expose the remote plugin detail endpoint's share_url as nullable PluginDetail.shareUrl
  • preserve existing PluginSummary.shareContext behavior for local and workspace sharing flows
  • regenerate the app-server TypeScript and JSON schema fixtures

Why

The remote plugin detail response already includes a canonical share_url, but that value was not surfaced by plugin/read for global plugins. Global plugins intentionally have no shareContext, so using that model for the URL would change the semantics consumed by the existing share modal.

User impact

Codex clients can use PluginDetail.shareUrl for a remote plugin's copy-link action, including when the plugin is disabled by an administrator, without changing existing share-modal or ownership behavior.

Validation

  • cargo test -p codex-app-server plugin_read_includes_share_url_for_admin_disabled_remote_plugin
  • cargo test -p codex-app-server-protocol typescript_schema_fixtures_match_generated
  • cargo test -p codex-app-server-protocol json_schema_fixtures_match_generated
  • cargo fmt --all

@ericning-o
ericning-o marked this pull request as ready for review June 12, 2026 15:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79e6ea4a81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pub marketplace_name: String,
pub marketplace_path: Option<AbsolutePathBuf>,
pub summary: PluginSummary,
pub share_url: Option<String>,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Add share_url to all PluginDetail literals

Adding a required Rust field to PluginDetail breaks existing downstream struct literals that were not updated; rg in the review tree shows codex-rs/tui/src/chatwidget/tests/popups_and_settings.rs and codex-rs/tui/src/chatwidget/tests/helpers.rs still construct codex_app_server_protocol::PluginDetail without share_url, so codex-tui test builds will fail once this protocol crate is compiled with the new shape.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems legit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is also causing CI failures

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed!

pub marketplace_name: String,
pub marketplace_path: Option<AbsolutePathBuf>,
pub summary: PluginSummary,
pub share_url: Option<String>,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Document the new plugin share URL field

This adds a v2 plugin/read response field, but app-server/README.md still has no shareUrl mention (rg "shareUrl|share_url"). The app-server API workflow requires docs/examples to change with API behavior, so method docs will omit the new share link. guidance

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's add more documentation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done!

@ericning-o
ericning-o merged commit 9600afb into main Jun 12, 2026
30 of 31 checks passed
@ericning-o
ericning-o deleted the codex/plugin-detail-share-url branch June 12, 2026 18:53
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants