feat: add prompt preview to SubAgentNode canvas display#118
Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom Nov 20, 2025
feat/subagent-prompt-previewbreaking-brake/cc-wf-studio:feat/subagent-prompt-previewCopy head branch name to clipboard
Merged
feat: add prompt preview to SubAgentNode canvas display#118breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom feat/subagent-prompt-previewbreaking-brake/cc-wf-studio:feat/subagent-prompt-previewCopy head branch name to clipboard
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
feat/subagent-prompt-previewbreaking-brake/cc-wf-studio:feat/subagent-prompt-previewCopy head branch name to clipboard
Conversation
Add prompt preview display to SubAgentNode component to improve
workflow visibility and understanding.
Changes:
- Added prompt preview section below description
- Limited to 2 lines with ellipsis for overflow
- Uses same styling pattern as SkillNode description
- Only displays when data.prompt exists
Display order:
1. Node header ("Sub-Agent")
2. Description (data.description)
3. Prompt preview (data.prompt) - NEW
4. Model badge (data.model)
5. Connection handles
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Merged
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2025
## [2.9.0](v2.8.0...v2.9.0) (2025-11-20) ### Features * add prompt preview to SubAgentNode canvas display ([#118](#118)) ([25f5ad6](25f5ad6)) ### Bug Fixes * simplify PromptNode canvas display style ([#120](#120)) ([fc9b391](fc9b391)) * unify prompt terminology and rename translation keys ([#119](#119)) ([29d8111](29d8111))
Contributor
|
🎉 This PR is included in version 2.9.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Merged
github-actions Bot
added a commit
that referenced
this pull request
Nov 20, 2025
## [2.9.0](v2.8.0...v2.9.0) (2025-11-20) ### Features * add prompt preview to SubAgentNode canvas display ([#118](#118)) ([25f5ad6](25f5ad6)) ### Bug Fixes * simplify PromptNode canvas display style ([#120](#120)) ([73d6a55](73d6a55)) * unify prompt terminology and rename translation keys ([#119](#119)) ([c616374](c616374))
Contributor
|
🎉 This PR is included in version 2.9.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
breaking-brake
added a commit
that referenced
this pull request
Nov 23, 2025
Add prompt preview display to SubAgentNode component to improve
workflow visibility and understanding.
Changes:
- Added prompt preview section below description
- Limited to 2 lines with ellipsis for overflow
- Uses same styling pattern as SkillNode description
- Only displays when data.prompt exists
Display order:
1. Node header ("Sub-Agent")
2. Description (data.description)
3. Prompt preview (data.prompt) - NEW
4. Model badge (data.model)
5. Connection handles
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
breaking-brake
pushed a commit
that referenced
this pull request
Nov 23, 2025
## [2.9.0](v2.8.0...v2.9.0) (2025-11-20) ### Features * add prompt preview to SubAgentNode canvas display ([#118](#118)) ([25f5ad6](25f5ad6)) ### Bug Fixes * simplify PromptNode canvas display style ([#120](#120)) ([73d6a55](73d6a55)) * unify prompt terminology and rename translation keys ([#119](#119)) ([c616374](c616374))
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
SubAgentNode canvas display lacks visibility of prompt content, making it difficult to understand workflow logic at a glance.
Current Behavior
Expected Behavior
Solution
Added prompt preview display area to SubAgentNode component using the same styling pattern as SkillNode description, limited to 2 lines with ellipsis for overflow.
Changes
File:
src/webview/src/components/nodes/SubAgentNode.tsxWebkitLineClamp: 2)data.promptexistsDisplay order:
data.description)data.prompt) ← NEWdata.model)Impact
Testing
npm run format✓npm run lint✓npm run check✓npm run build✓Notes