Skip to content

Include attachedBlocks in one-of block input meta - #6335

Merged
VPS-Obi merged 1 commit into
mainfrom
claude/block-meta-attached-blocks-w0tc0f
Sep 9, 2026
Merged

Include attachedBlocks in one-of block input meta#6335
VPS-Obi merged 1 commit into
mainfrom
claude/block-meta-attached-blocks-w0tc0f

Conversation

@VPS-Obi

@VPS-Obi VPS-Obi commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This came up when creating a MCP tool that returns a block's schema: the input meta for one-of block's was missing the attachedBlocks, which are necessary for block creation. The agent could fallback to the block's data meta for this, but the proper fix is to include it in the input meta.

https://claude.ai/code/session_01TYmYM9YE7bL9BjCDyN9dUv

The block meta of blocks created with createOneOfBlock only listed
activeType in its input fields. attachedBlocks was missing because the
input class can't annotate it with @BlockField, so the generated block
input types were incomplete.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TYmYM9YE7bL9BjCDyN9dUv
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: d66eaf69-dd29-4a19-9ead-1f6ccf16f416

📥 Commits

Reviewing files that changed from the base of the PR and between 9cbbd61 and 5385149.

📒 Files selected for processing (6)
  • .changeset/oneof-block-input-meta-attached-blocks.md
  • demo/api/block-meta.json
  • packages/api/brevo-api/block-meta.json
  • packages/api/cms-api/block-meta.json
  • packages/api/cms-api/src/blocks/factories/createOneOfBlock.test.ts
  • packages/api/cms-api/src/blocks/factories/createOneOfBlock.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@VPS-Obi VPS-Obi self-assigned this Sep 8, 2026
@VPS-Obi
VPS-Obi marked this pull request as ready for review September 9, 2026 06:56
@VPS-Obi
VPS-Obi requested a review from nsams September 9, 2026 06:56
@VPS-Obi
VPS-Obi merged commit d6a910e into main Sep 9, 2026
19 checks passed
@VPS-Obi
VPS-Obi deleted the claude/block-meta-attached-blocks-w0tc0f branch September 9, 2026 15:14
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.

3 participants