fix(ci): put the command word in the Claude trigger phrase so /focus reaches the model - #438
Conversation
…reaches the model With track_progress, claude-code-action runs in tag mode and forwards everything after the trigger phrase to the CLI as a separate user message, which the CLI runs as a slash command. Under the default `@claude`, `/focus` was that command: the SDK returned in 126 ms with no model usage and the verify step failed the run (36932898300). `/review` only worked because it is a Claude Code built-in, which also ran on top of our prompt. Setting trigger_phrase to `@claude /review` and `@claude /focus` forwards only the guidance after the command word, as plain text. The headers now say how guidance reaches the model, and that the 👀 reaction comes from the Claude GitHub App rather than the workflow.
|
@claude /review |
|
Claude finished @theCodeDrift's task in 4m 5s —— View job Review modeReview mode: incremental — read 0 prior review thread(s) before reviewing. SummaryThis PR's only functional change is adding one line to each workflow:
Everything else is comment/documentation rewording to match the corrected behavior. I traced the mechanism described in the PR body against the diff and the surrounding (unchanged) code:
I didn't find a correctness, security, or clarity issue in the diff. The one caveat — that No inline comments posted; nothing new to flag. |
@claude /focuson #437 failed its verify step (run 36932898300). Claude never ran: the action step reported success after 126 ms with emptymodelUsage. For comparison, a working/reviewrun took 460 s.Cause
track_progress: trueforces claude-code-action into tag mode. Tag mode takes everything aftertrigger_phrasein the comment and sends it to the CLI as a separate user-message block, and the CLI runs that block as a slash command when it starts with/. Under the default@claude, the forwarded block was/focus, so the session ended without a model call./reviewonly worked because/reviewis a Claude Code built-in. Each review therefore also ran the built-in review command on top of our prompt.Fix
trigger_phrase: "@claude /review"and"@claude /focus". Only the text after the command word is forwarded, as plain text. That text is a maintainer's guidance,all, or5.@claudemention, before the workflow starts, not from the action.Verifying
issue_commentworkflows load frommain, so this can only be tested after merge, by commenting@claude /focuson an open PR.