anthropics / anthropics/claude-code-action
SDK execution error after successful Claude completion in workflow_dispatch
- Dominant language
- TypeScript
- Stars
- 8.9k
- Forks
- 2.1k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 10
Description
## Description
The action crashes with `SDK execution error` after Claude completes successfully. This happens consistently in `workflow_dispatch` context.
## Environment
| Item | Value |
|------|-------|
| Action | `anthropics/claude-code-action@v1` |
| Trigger | `workflow_dispatch` |
| Runner | `ubuntu-latest` |
## Workflow
```yaml
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
Run /syner-skill-reviewer (no argument = batch mode).
Write the report to .syner/reports/skill-review.md
claude_args: |
--max-turns 50
--allowedTools Read,Write,Glob
```
## Logs
Claude completes successfully:
```json
{
"type": "result",
"subtype": "success"
}
```
Then SDK crashes:
```
SDK execution error: 14 | depsCount: ${X},
15 | deps: ${Y}}`};var mI={keyword:"dependencies"...
error: Claude Code process exited with code 1
```
## Failed runs
- [Run 22783227828](https://github.com/synerops/syner/actions/runs/22783227828)
- [Run 22783342324](https://github.com/synerops/syner/actions/runs/22783342324)
## Expected behavior
Action should complete successfully when Claude execution succeeds (`subtype: "success"`).
Contributor guide
Research direction
Reproduce the failure using the provided workflow_dispatch configuration and Run 22783227828 or Run 22783342324. Trace the action's SDK execution handling after a result with subtype "success" and compare that path with the reported process exit code; done means the workflow completes successfully after Claude reports success.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100