Skip to content

[codex] [2/4] Generalize plugin suggestion presentation#28400

Merged
adaley-openai merged 1 commit into
mainfrom
dev/adaley/generalize-plugin-suggestion-tools
Jun 16, 2026
Merged

[codex] [2/4] Generalize plugin suggestion presentation#28400
adaley-openai merged 1 commit into
mainfrom
dev/adaley/generalize-plugin-suggestion-tools

Conversation

@adaley-openai

Copy link
Copy Markdown
Contributor

Summary

  • Add list-backed and developer-context presentations for plugin suggestion candidates.
  • Let tool planning, install validation, and request-tool copy follow the selected presentation.
  • Keep every production caller on the existing list-backed presentation, preserving the current list tool, request schema, connector behavior, and model-visible copy.
  • Leave developer-context presentation latent until the final PR in the stack.

Stack

Validation

  • just test -p codex-core request_plugin_install
  • just test -p codex-core spec_plan
  • just fix -p codex-core
  • just fmt
  • git diff --check

@adaley-openai adaley-openai requested a review from a team as a code owner June 15, 2026 22:24
@adaley-openai adaley-openai force-pushed the dev/adaley/generalize-plugin-suggestion-tools branch from 8f68622 to d1ab190 Compare June 15, 2026 23:25
@adaley-openai adaley-openai force-pushed the dev/adaley/recommended-plugin-endpoint-client branch from 3963375 to 7d0c048 Compare June 15, 2026 23:31
@adaley-openai adaley-openai force-pushed the dev/adaley/generalize-plugin-suggestion-tools branch 2 times, most recently from 58cdc7a to 155cdfe Compare June 15, 2026 23:35
@adaley-openai adaley-openai force-pushed the dev/adaley/recommended-plugin-endpoint-client branch from 7d0c048 to acb8711 Compare June 16, 2026 00:10
@adaley-openai adaley-openai force-pushed the dev/adaley/generalize-plugin-suggestion-tools branch 2 times, most recently from 132f097 to 0c7a6a4 Compare June 16, 2026 00:28
@adaley-openai adaley-openai changed the title [codex] [2/3] Generalize plugin suggestion presentation [codex] [2/4] Generalize plugin suggestion presentation Jun 16, 2026
Comment on lines +49 to +56
pub(crate) enum ToolSuggestPresentation {
ListTool,
#[allow(dead_code)]
DeveloperContext,
}

#[derive(Clone, Debug)]
pub(crate) struct ToolSuggestCandidates {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit/question-- is this ever going to be for something other than plugins? we renamed the tool from tool_suggest to request_plugin_install, and now we are removing connectors. should the types be more plugin specific?

@adaley-openai adaley-openai force-pushed the dev/adaley/recommended-plugin-endpoint-client branch from 65bc302 to 6f17e4e Compare June 16, 2026 22:08
adaley-openai added a commit that referenced this pull request Jun 16, 2026
Summary
- Add authenticated parsing for `/ps/plugins/suggested?scope=GLOBAL`,
including remote plugin and connector app identities.
- Validate, deduplicate, sort, and cap endpoint candidates before
caching them by backend and account identity.
- Deduplicate concurrent cache misses and warm recommendations from the
existing remote-installed-plugin refresh path used at startup and after
account changes.
- Keep endpoint results model-invisible in this PR; failures and
responses without `enabled: true` resolve to legacy mode.

Stack
- 1/3. Follow-up: #28400 generalizes plugin suggestion presentation
without activating endpoint recommendations.
- Final activation: #27704.

Validation
- `just test -p codex-core-plugins recommended_plugins`
- `just fix -p codex-core-plugins`
- `just fmt`
- `git diff --check`
Base automatically changed from dev/adaley/recommended-plugin-endpoint-client to main June 16, 2026 22:22
@adaley-openai adaley-openai force-pushed the dev/adaley/generalize-plugin-suggestion-tools branch from 0c7a6a4 to 8c9169f Compare June 16, 2026 22:23
@adaley-openai adaley-openai enabled auto-merge (squash) June 16, 2026 22:24
@adaley-openai adaley-openai merged commit 587487d into main Jun 16, 2026
45 of 47 checks passed
@adaley-openai adaley-openai deleted the dev/adaley/generalize-plugin-suggestion-tools branch June 16, 2026 22:44
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 16, 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.

3 participants