Skip to content

Avoid repeated traversal of shared tool schema definitions - #5412

Merged
jlowin merged 1 commit into
mainfrom
fix/search-shared-schema-traversal
Oct 4, 2026
Merged

jlowin merged 1 commit into
mainfrom
fix/search-shared-schema-traversal

Conversation

@jlowin

@jlowin jlowin commented Oct 4, 2026

Copy link
Copy Markdown
Member

Detailed tool discovery repeatedly expanded shared $ref definitions in anyOf, oneOf, and allOf graphs. A 1.5 KB schema with 20 levels of shared branches required over two million visits to render a single nested field.

The renderer now walks each resolved schema node once and collects unique field names in the existing order. The iterative walk also handles deep graphs without hitting Python's recursion limit, while preserving array handling, recursive schemas, and the displayed field limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T12:32:49.296532Z 9bf4004 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@marvin-context-protocol marvin-context-protocol Bot added bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. server Related to FastMCP server implementation or server-side functionality. labels Oct 4, 2026
@jlowin
jlowin merged commit adfb6a6 into main Oct 4, 2026
30 checks passed
@jlowin
jlowin deleted the fix/search-shared-schema-traversal branch October 4, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. server Related to FastMCP server implementation or server-side functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant