fix: auto-generate SubAgentFlow definitions for AI-created nodes#251
Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom Dec 11, 2025
fix/subagentflow-auto-generationbreaking-brake/cc-wf-studio:fix/subagentflow-auto-generationCopy head branch name to clipboard
Merged
fix: auto-generate SubAgentFlow definitions for AI-created nodes#251breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom fix/subagentflow-auto-generationbreaking-brake/cc-wf-studio:fix/subagentflow-auto-generationCopy head branch name to clipboard
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/subagentflow-auto-generationbreaking-brake/cc-wf-studio:fix/subagentflow-auto-generationCopy head branch name to clipboard
Conversation
- Extended workflow-schema.json with AI generation guidance for SubAgentFlow - Added resolveSubAgentFlows fallback to create minimal Start→End structure - Added validateSubAgentFlowReferences for reference integrity checks - Updated workflow-store to handle subAgentFlows from generated workflows 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Merged
github-actions Bot
added a commit
that referenced
this pull request
Dec 11, 2025
## [3.5.4](v3.5.3...v3.5.4) (2025-12-11) ### Bug Fixes * auto-generate SubAgentFlow definitions for AI-created nodes ([#251](#251)) ([4ae3c43](4ae3c43))
Contributor
|
🎉 This PR is included in version 3.5.4 🎉 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
Current Behavior
Expected Behavior
Solution
Implemented a hybrid approach to ensure SubAgentFlow definitions are always created:
resolveSubAgentFlowspost-processing to create minimal structures (Start → End) for any missing definitionsChanges
resources/workflow-schema.json
aiGenerationGuidancesection to subAgentFlow node typeworkflowStructuresection documenting thesubAgentFlowsarray fieldsrc/extension/commands/ai-generation.ts
createMinimalSubAgentFlow()functionresolveSubAgentFlows()function for fallback processingsrc/extension/utils/validate-workflow.ts
validateSubAgentFlowReferences()function for reference integrity checkssrc/extension/services/refinement-service.ts
resolveSubAgentFlowsprocessing for AI refinement flowsrc/webview/src/stores/workflow-store.ts
addGeneratedWorkflowandupdateWorkflowto handlesubAgentFlowsImpact
Testing
🤖 Generated with Claude Code