Repository navigation
fix(import): bound generated library names - #334
Merged
Merged
Conversation
This was referenced Nov 13, 2026
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.
Instruction imports from workers with long names exceeded the document store's 120-character limit and failed on every retry.
Bound generated names in UTF-16 units, truncating the worker name at a grapheme boundary with an ellipsis and stable SHA-256 suffix while preserving the CLI and filename. Keep both reserves room for its counter and checks the owner's occupied names. Retry also handles oversized labels saved by older failed imports. Existing documents retain their names, and receipt-based Replace and Undo behavior is preserved.
Apply bounded names and collision checks to imported connected accounts, and stable suffixes to truncated command-derived skill names. Manifest-defined skills and marketplaces retain their existing name validation. Document the naming rules in
docs/import.md.Verification:
bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:check,bun run check:tmp, andbun run --filter @canopy/web build.no UI text changed
Fixes: #316