Skip to content

skills: cache remote catalog failures per thread - #27403

Merged
jif-oai merged 3 commits into
mainfrom
jif/cache-remote-skill-discovery-outcome
Jun 11, 2026
Merged

skills: cache remote catalog failures per thread#27403
jif-oai merged 3 commits into
mainfrom
jif/cache-remote-skill-discovery-outcome

Conversation

@jif-oai

@jif-oai jif-oai commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • cache the first remote skill catalog outcome per thread, including failures
  • preserve discovery errors as catalog warnings
  • update the existing cache regression test to verify failed discovery is attempted once

Why

A failed or hanging codex_apps resources/list call could run once while building initial context and immediately again while contributing first-turn input. With the discovery timeout, an ordinary Apps turn could wait up to 20 seconds before inference and retry again on later turns even when no remote skill was mentioned.

Caching a warning-only empty catalog preserves graceful degradation while preventing repeated synchronous discovery attempts.

Testing

  • just fmt
  • Tests and Clippy not run per request; CI will validate the change.

@jif-oai
jif-oai marked this pull request as ready for review June 10, 2026 15:31
@jif-oai

jif-oai commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

💡 Codex Review

assert!(fragments.is_empty());

P2 Badge Add integration coverage for agent-visible skill failures

This changes agent behavior for remote discovery failures, but the updated direct extension test does not exercise the first model-request path. Please add core/suite test_codex coverage for the user-visible flow per repo guidance.

ℹ️ 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".

Base automatically changed from jif/external-plugins-4 to main June 11, 2026 09:28
@jif-oai
jif-oai requested a review from a team as a code owner June 11, 2026 09:28
@jif-oai
jif-oai force-pushed the jif/cache-remote-skill-discovery-outcome branch from c7b8f39 to 8c11c0a Compare June 11, 2026 09:33
@jif-oai
jif-oai merged commit 6754e77 into main Jun 11, 2026
30 checks passed
@jif-oai
jif-oai deleted the jif/cache-remote-skill-discovery-outcome branch June 11, 2026 09:46
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant