fix: gallery alts truncate on dotted API paths + version example prompt#68
Merged
Conversation
teaches.split('.')[0] cut every bpy-style first sentence at bmesh.ops /
bpy.context / mesh.color_attributes; split on period-plus-whitespace with a
length cap and assert the build rejects the legacy form.
Co-authored-by: Cursor <cursoragent@cursor.com>
…gate Track the agent prompt in-repo (was gitignored), pin the calibration set to armature-bend / damped-track-aim / bmesh-gear, and require reading generated HTML alt and callout text — not only gallery.json — after regen. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
altno longer usesteaches.split('.')[0], which truncated 14/21 cards mid-identifier (bmesh.ops,bpy.context, …). Sentence split is period-followed-by-whitespace with a 160-char cap;assert_alts_survive_dotted_pathsfails the build if the legacy form returns.docs/gallery/index.html— verified all 14 previously truncated alts are full in the HTML (incl.uv-layer-grid→bmesh.ops.create_grid).docs/new-example-prompt.md(removed from.gitignore); pin contact-sheet calibration set toarmature-bend,damped-track-aim,bmesh-gear; require reading generated HTML alt/callout after regen, not only JSON source.Test plan
python scripts/build_gallery.pyexits 0.and not equal to legacy splitcard_alt→ SystemExitMade with Cursor