Remove stale execute_code guide fallbacks#67
Conversation
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR updates four tool-guide documents to prefer direct Blender tools for standard tasks and narrows ChangesDirect Tools Guidance Updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@data/tool-guides/aesthetic-quality-guide.md`:
- Around line 38-39: The heading "### When to Use Direct Tools First" is
immediately followed by body text; insert a single blank line after that heading
so the heading is separated from the paragraph (satisfy MD022). Locate the
heading string "### When to Use Direct Tools First" and add one empty line
before the sentence "Use direct tools first for repeatable operations:..." to
ensure proper Markdown linting.
In `@data/tool-guides/object-assembly-guide.md`:
- Around line 214-215: Update the guidance to remove the outdated
execute_code-era instructions about manually handling matrix_parent_inverse:
make a single consistent statement that parent_set and
organize_collection_hierarchy preserve world transforms so child objects won't
visually jump when parented, and that execute_code should only be recommended
when the root helper object must be procedurally generated and no direct
creation tool covers it; specifically eliminate or reword the
matrix_parent_inverse handling reference and ensure the doc mentions parent_set,
organize_collection_hierarchy, and execute_code by name so there is no
contradiction.
In `@scripts/test/test-direct-tool-guide-cleanup-secondary.ts`:
- Around line 18-22: The tests currently check that execute_code-era parenting
strings are gone from guides.objectAssembly but miss a regression check for
stale "matrix_parent_inverse" guidance; update the test near the existing
assertions (which use assert.doesNotMatch and assert.match against
guides.objectAssembly) to add a negative assertion that the guide does not
contain /matrix_parent_inverse/ so the cleanup is enforced.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 198b9343-570f-4dc3-8a02-eba21a47ad1e
📒 Files selected for processing (5)
data/tool-guides/aesthetic-quality-guide.mddata/tool-guides/architectural-completeness-guide.mddata/tool-guides/local-asset-guide.mddata/tool-guides/object-assembly-guide.mdscripts/test/test-direct-tool-guide-cleanup-secondary.ts
Summary
Tests
Note: lint still emits the existing baseline-browser-mapping freshness warning.
Summary by CodeRabbit