Skip to content

fix(opencode): limit generated project copy names#31022

Merged
jlongster merged 1 commit into
devfrom
fix/short-project-copy-names
Jun 5, 2026
Merged

fix(opencode): limit generated project copy names#31022
jlongster merged 1 commit into
devfrom
fix/short-project-copy-names

Conversation

@jlongster
Copy link
Copy Markdown
Contributor

Issue for this PR

No linked issue.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Generated project copy names could be longer than intended because their length depended entirely on the title model following a general request for a short name.

This change asks the model for a descriptive 3-4 word task name and enforces a maximum of four whitespace-separated words before slugifying the result. Empty model output continues to use the existing random slug fallback.

How did you verify your code works?

  • Full workspace typecheck passed through the pre-push hook (bun turbo typecheck, 22 executed package tasks).
  • Prettier and git diff --check passed.

Screenshots / recordings

Not applicable; this changes generated project copy directory names only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@jlongster jlongster merged commit a645615 into dev Jun 5, 2026
12 checks passed
@jlongster jlongster deleted the fix/short-project-copy-names branch June 5, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant