Skip to content

Commit 2dc5e0c

Browse files
committed
HYPERFLEET-1637: update to Claude Haiku 4.5 and add debug output
- Update model from claude-3-5-haiku-20241022 to claude-haiku-4-5@20251001 - Add 'Check Claude execution result' step to show model and errors in workflow log - Errors will be clearly visible instead of only going to Slack webhook - Improves debugging and visibility of workflow execution
1 parent 86d08e2 commit 2dc5e0c

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/open-prs-digest.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,35 @@ jobs:
102102
Follow SKILL.md instructions: run collect-data.sh, pipe through score.jq,
103103
classify Factor 4 for each PR, then pipe through format-output.jq with --arg mode slack.
104104
Output ONLY the final Slack mrkdwn content — no surrounding explanation or code blocks.
105-
claude_args: "--append-system-prompt-file ./hyperfleet-work-triage/skills/open-prs/SKILL.md.resolved --allowedTools Bash,Read,Glob,Grep --model claude-3-5-haiku-20241022"
105+
claude_args: "--append-system-prompt-file ./hyperfleet-work-triage/skills/open-prs/SKILL.md.resolved --allowedTools Bash,Read,Glob,Grep --model claude-haiku-4-5@20251001"
106106
env:
107107
ANTHROPIC_VERTEX_PROJECT_ID: ${{ secrets.ANTHROPIC_VERTEX_PROJECT_ID }}
108108
CLOUD_ML_REGION: global
109109
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
110-
GH_TOKEN: ${{ secrets.GH_TOKEN_ORG_READ }}
111-
112-
- name: Post to Slack
110+
GH_TOKEN: ${{ secrets.GH_TOKEN_ORG_READ }}
111+
112+
- name: Check Claude execution result
113+
run: |
114+
set -euo pipefail
115+
OUTPUT_FILE="${{ steps.claude.outputs.execution_file }}"
116+
117+
echo "=== Claude Execution Output ==="
118+
IS_ERROR="$(jq -r 'map(select(.type == "result")) | last | .is_error // false' "$OUTPUT_FILE" 2>/dev/null || echo 'unknown')"
119+
MODEL_USED="$(jq -r 'map(select(.type == "system")) | last | .model // "unknown"' "$OUTPUT_FILE" 2>/dev/null || echo 'unknown')"
120+
ERROR_MSG="$(jq -r 'map(select(.type == "assistant")) | last | .message.content[0].text // empty' "$OUTPUT_FILE" 2>/dev/null || echo '')"
121+
122+
echo "Is Error: $IS_ERROR"
123+
echo "Model Used: $MODEL_USED"
124+
if [ ! -z "$ERROR_MSG" ]; then
125+
echo "Error Message: $ERROR_MSG"
126+
fi
127+
128+
if [ "$IS_ERROR" = "true" ]; then
129+
echo "::error::Claude execution failed. Check error message above"
130+
exit 1
131+
fi
132+
133+
- name: Post to Slack
113134
env:
114135
OUTPUT_FILE: ${{ steps.claude.outputs.execution_file }}
115136
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)