Consolidate prompt append operations into single workflow step#10299
Consolidate prompt append operations into single workflow step#10299
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Create unified_prompt_step.go with new approach - Update compiler_yaml.go to use generateUnifiedPromptStep - Update test to check for new unified step name - Recompile all workflows successfully Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Remove old individual prompt step generators (generateSafeOutputsPromptStep, etc.) - Remove unused helper functions and logger - Update tests to use unified prompt step - All lint and format checks pass Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot normalize leading white space after merge, concat all strings into a single cat command |
- Remove excess leading whitespace from inline content sections - Combine all inline content into single heredoc instead of multiple - Keep file references as separate cat commands - Add normalizeLeadingWhitespace function to strip consistent indentation - Track heredoc state to avoid unnecessary open/close cycles - Update tests to match new implementation Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in e3b8ef8. The unified prompt step now:
Before: cat << 'PROMPT_EOF' >> "$GH_AW_PROMPT"
## Cache Folder Available
...
PROMPT_EOF
cat << 'PROMPT_EOF' >> "$GH_AW_PROMPT"
<safe-outputs>
...After: cat << 'PROMPT_EOF' >> "$GH_AW_PROMPT"
## Cache Folder Available
...
<safe-outputs>
...
PROMPT_EOF |
|
- Add removeConsecutiveEmptyLines function to clean up output - Apply to all inline content sections - Reduces visual clutter with single empty lines between sections - Add comprehensive tests for the new function - Temp folder prompt already wrapped in XML tags (no changes needed) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in e5a0008:
Before (multiple empty lines): ## Cache Folder Available
You have access to...After (single empty lines): ## Cache Folder Available
You have access to...The temp folder prompt is referenced as |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
Smoke Test Results - Claude EngineLast 2 Merged PRs:
Test Results: Overall Status: PASS
|
|
GitHub MCP ✅ [WIP] Create campaign to resolve security alert backlog; Add :visited pseudo-class to documentation link styles
|
Smoke Test Results - Copilot EngineLast 2 Merged PRs:
Test Results:
Overall Status: PARTIAL PASS (4/5 tests passed)
|
Merge Appended Prompt Steps into Single Step
Summary: Successfully consolidated all prompt append operations into a single "Append context instructions to prompt" step with normalized whitespace, combined heredocs, and consecutive empty lines removed for optimal efficiency and readability.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Changeset