fix(custom-blocks): reserve system output names and hide own block from command modal#5667
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Reserved exposed-output names ( Recursion guard in cmd+K: Tool-call icons: custom block image icons use inline Reviewed by Cursor Bugbot for commit ad85707. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR tightens custom block output handling and command search behavior. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "improvement(custom-blocks): allow result..." | Re-trigger Greptile |
d071a45 to
ed2a4b7
Compare
|
@greptile review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit ad85707. Configure here.
Summary
success,error,cost) when publishing/updating a custom block — an output namedcostwas overwriting the billed cost in the executor's output projection. Enforced in the contract write schemas, the operations layer (covers the copilot deploy path), and inline in the publish form; auto-derived names skip reserved words.resultstays allowed: it only exists as a system field when no outputs are curated, which can't co-occur with a named outputprojectCustomBlockOutputso pre-validation rows can never clobbercost/successbuildCustomBlockConfigstampssourceWorkflowId, search items carry it, and the modal filters on the current workflow idsize-fullfor tiled surfaces) — the icon rendered at natural size, filling the lane. Size via inline style per the image-icon contractType of Change
Testing
Unit tests added for the reserved-name checks (build-config, operations) and the executor projection ordering (output named
costcannot clobber billing). Rebased onto staging;tsc --noEmit,bun run lint:check, andbun run check:api-validation:strictpass, 107 tests across the touched areas green.Checklist