Problem
When running askcc on a GitHub issue with many comments (e.g., 15+ comments), the command fails with:
OSError: [Errno 7] Argument list too long
This occurs because the full issue content (including all comments) is passed as a command-line argument, exceeding the OS ARG_MAX limit.
Reproduction
Run askcc on any issue with a large number of comments (15+ observed to trigger the error).
Example: sops#9 — "Research: Roles of efficient teams" — failed with this error after accumulating 15 comments.
Expected Behavior
askcc should handle issues with many comments without hitting OS argument length limits.
Proposed Solutions
--no-comments flag — Allow skipping issue comments entirely when only the issue body is needed.
- Comment truncation — Automatically truncate or summarize older comments to stay within
ARG_MAX.
- Pass content via stdin or temp file — Avoid passing large payloads as CLI arguments altogether.
Environment
- OS: Linux (ARG_MAX typically ~2MB)
- Trigger: Issues with 15+ comments
Problem
When running
askccon a GitHub issue with many comments (e.g., 15+ comments), the command fails with:This occurs because the full issue content (including all comments) is passed as a command-line argument, exceeding the OS
ARG_MAXlimit.Reproduction
Run
askccon any issue with a large number of comments (15+ observed to trigger the error).Example:
sops#9— "Research: Roles of efficient teams" — failed with this error after accumulating 15 comments.Expected Behavior
askccshould handle issues with many comments without hitting OS argument length limits.Proposed Solutions
--no-commentsflag — Allow skipping issue comments entirely when only the issue body is needed.ARG_MAX.Environment