You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix shell quoting issues in aicode-preprocess workflow
- Use multiline format (EOF) for JSON output to avoid shell interpretation
- Replace direct JSON string interpolation with jq for proper escaping
- Add robust JSON parsing with fallback logic
- Fix Slack notification payload construction using jq
- Prevents errors when task text contains quotes or special characters
text: "⚠️ Preprocessing failed, using original task",
174
+
blocks: [{
175
+
type: "section",
176
+
text: {
177
+
type: "mrkdwn",
178
+
text: "⚠️ *Preprocessing Warning*\n\nPreprocessing failed, but code generation will continue with original task."
179
+
}
180
+
}]
181
+
}')
182
+
132
183
curl -X POST "${{ secrets.SLACK_WEBHOOK_URL }}" \
133
184
-H "Content-Type: application/json" \
134
-
-d "{\"text\":\"⚠️ Preprocessing failed, using original task\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"⚠️ *Preprocessing Warning*\\n\\nPreprocessing failed, but code generation will continue with original task.\"}}]}"
0 commit comments