Skip to content

Pipe CC task via stdin and capture stderr - #161

Merged
ElleNajt merged 1 commit into
mainfrom
fix/cc-stdin-task-input
May 7, 2026
Merged

ElleNajt merged 1 commit into
mainfrom
fix/cc-stdin-task-input

Conversation

@ElleNajt

@ElleNajt ElleNajt commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Pass task to Claude Code via stdin instead of CLI argument to avoid ARG_MAX limit on large task prompts (Argument list too long)
  • Capture Claude Code stderr and echo it to stdout for visibility in job logs
  • Surface stderr in ClaudeCodeResult for callers to inspect

Test plan

  • Verified fix resolves bash: /usr/local/bin/claude: Argument list too long errors for large inline tasks
  • Confirm non-inline tasks continue to work as before

Written by Claude

- Pass task to Claude Code via stdin instead of CLI argument to avoid
  ARG_MAX limit on large task prompts
- Capture Claude Code stderr to /tmp/claude_stderr.txt and echo it
  to stdout for visibility in job logs
- Add stderr field to ClaudeCodeResult, populated from CloudRunResult

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ElleNajt
ElleNajt merged commit 272270d into main May 7, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant