Repository navigation
fix(core): a field belongs to the plugin that introduced it - #1776
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cmjr3Cq9wqd6xok31R15hJ
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 04ae3e3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code review for PR #1776 (issue #1676, plugin engine field-ownership guard)Static review of the diff. I did not run the test suite. The diff touches more than Directly related to the field-ownership guard
Other findings in the diff
Generated by Claude Code |
|
Triage of the review above: the real diff against Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3792fe325c
ℹ️ 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".
| ...extension.fields, | ||
| } | ||
|
|
||
| claimFields(name, Object.keys(extension.fields ?? {}), plugin.name) |
There was a problem hiding this comment.
Keep app-declared fields unclaimed
When two plugins both refine a field originally declared by the application, this call assigns the field to the first plugin even though that plugin did not introduce it. The second plugin then hits the cross-plugin ownership check and throws, contradicting the documented behavior that app-declared fields remain app-owned and may be redeclared. Only claim extension keys that were not already present in existing.fields, or explicitly track application ownership.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Good catch. extendList now claims only keys not already on the list, so app-declared fields stay app-owned. Added a regression test with two successive plugin refinements of an app field.
Generated by Claude Code
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cmjr3Cq9wqd6xok31R15hJ
Coverage Report for Core Package Coverage (./packages/core)
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Coverage Report for UI Package Coverage (./packages/ui)
File CoverageNo changed files found. |
Coverage Report for CLI Package Coverage (./packages/cli)
File CoverageNo changed files found. |
Coverage Report for Auth Package Coverage (./packages/auth)
File CoverageNo changed files found. |
Coverage Report for Storage Package Coverage (./packages/storage)
File CoverageNo changed files found. |
Coverage Report for RAG Package Coverage (./packages/rag)
File CoverageNo changed files found. |
Coverage Report for Storage S3 Package Coverage (./packages/storage-s3)
File CoverageNo changed files found. |
Coverage Report for Storage Vercel Package Coverage (./packages/storage-vercel)
File CoverageNo changed files found. |
Summary
addList/extendList); app-declared fields belong to the app.extendListredeclaring a field owned by a different plugin now throws, naming both plugins, the list and the field.accesswas rejected); CLAUDE.md "Deep Merging" line corrected; patch changeset added.Test plan
@opensaas/stack-ragsuite passesCloses #1676
🤖 Generated with Claude Code
https://claude.ai/code/session_01Cmjr3Cq9wqd6xok31R15hJ
Generated by Claude Code