Skip to content

fix(types): Mark all nested types from experimental payloads as @experimental - #903

Merged
AngeloGiacco merged 1 commit into
mainfrom
cursor/experimental-nested-types-7903
Jul 27, 2026
Merged

fix(types): Mark all nested types from experimental payloads as @experimental#903
AngeloGiacco merged 1 commit into
mainfrom
cursor/experimental-nested-types-7903

Conversation

@AngeloGiacco

Copy link
Copy Markdown
Collaborator

Summary

This PR fixes the type generator to mark ALL types generated from an experimental payload as @experimental, not just the root type.

Problem

After merging PR #901, only the root types (AgentReasoningResponsePart and AgentReasoningResponsePartClientEvent) were marked as experimental. The nested types (ReasoningResponsePart and ReasoningResponsePartType) were missing the annotation.

Solution

Modified the generator to iterate through all models generated from an experimental payload and add them to the experimentalTypes set, ensuring all related types get the @experimental JSDoc annotation.

Types now marked as @experimental

  • AgentReasoningResponsePart
  • ReasoningResponsePart
  • ReasoningResponsePartType
  • AgentReasoningResponsePartClientEvent

Related

Follow-up to PR #901

Slack Thread

Open in Web Open in Cursor 

…rimental

Changed generator to mark ALL types generated from an experimental payload,
not just the root type. This ensures ReasoningResponsePart and
ReasoningResponsePartType are also marked as @experimental alongside
AgentReasoningResponsePart and AgentReasoningResponsePartClientEvent.
@AngeloGiacco
AngeloGiacco marked this pull request as ready for review July 27, 2026 21:53
@AngeloGiacco
AngeloGiacco enabled auto-merge (squash) July 27, 2026 21:54
@AngeloGiacco
AngeloGiacco merged commit 8ab2d84 into main Jul 27, 2026
5 checks passed
@AngeloGiacco
AngeloGiacco deleted the cursor/experimental-nested-types-7903 branch July 27, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants