fix: enforce lowercase-only workflow and SubAgentFlow names#416
Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom Jan 10, 2026
fix/415-enforce-lowercase-workflow-namesbreaking-brake/cc-wf-studio:fix/415-enforce-lowercase-workflow-namesCopy head branch name to clipboard
Merged
fix: enforce lowercase-only workflow and SubAgentFlow names#416breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom fix/415-enforce-lowercase-workflow-namesbreaking-brake/cc-wf-studio:fix/415-enforce-lowercase-workflow-namesCopy head branch name to clipboard
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/415-enforce-lowercase-workflow-namesbreaking-brake/cc-wf-studio:fix/415-enforce-lowercase-workflow-namesCopy head branch name to clipboard
Conversation
- Add WORKFLOW.NAME_PATTERN and update SUB_AGENT_FLOW.NAME_PATTERN to lowercase only - Add validation in save, export, and run handlers - Add real-time UI validation with error display - Add i18n error messages for 5 languages Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
b083e5c to
40d5968
Compare
This was referenced Jan 10, 2026
Merged
braking-brake-semantic-release Bot
pushed a commit
that referenced
this pull request
Jan 10, 2026
## [3.14.0](v3.13.1...v3.14.0) (2026-01-10) ### Features * add context: fork option for Slash Command export ([#420](#420)) ([1d860eb](1d860eb)) * add model option to Slash Command export settings ([#421](#421)) ([b1adf52](b1adf52)) ### Bug Fixes * change contextFork boolean to context string for extensibility ([#422](#422)) ([732880a](732880a)) * disable SubAgentFlow submit button when name validation fails ([#417](#417)) ([#418](#418)) ([2edb07d](2edb07d)) * enforce lowercase-only workflow and SubAgentFlow names ([#415](#415)) ([#416](#416)) ([ccc0cda](ccc0cda))
|
🎉 This PR is included in version 3.14.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
When a workflow is exported as a command file (
.claude/commands/*.md), the filename is derived from the workflow name. Due to case-insensitivity differences between operating systems, uppercase letters in workflow names cause issues:Current Behavior
General-worldflow-JP.claude/commands/general-worldflow-jp.md(lowercase)/General-worldflow-JPUnknown skill: General-worldflow-JPAdditionally, on case-insensitive file systems (macOS/Windows), renaming from
Test.mdtotest.mddoesn't change the actual filename, causing Git synchronization issues across platforms.Expected Behavior
Fixes #415
Solution
Enforce lowercase-only validation for workflow and SubAgentFlow names at multiple levels:
Changes
Validation Rules (
src/shared/types/workflow-definition.ts)WORKFLOW.NAME_PATTERN: /^[a-z0-9_-]+$/SUB_AGENT_FLOW.NAME_PATTERNto lowercase onlyExtension Host (
src/extension/commands/save-workflow.ts)UI Validation (
src/webview/src/components/Toolbar.tsx)SubAgentFlow Dialog (
src/webview/src/components/dialogs/SubAgentFlowDialog.tsx)i18n (5 languages)
Impact
Testing
npm run format && npm run lint && npm run check && npm run build)🤖 Generated with Claude Code