[BUG] Permissions Issue
Status Fixed / completed
Maintainer reply ✓ Yes — catherinewu
Activity 3 comments · opened Jul 3, 2025 · closed Nov 30, 2025
💡 Likely answer: A maintainer (catherinewu, contributor)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.41
- Operating System: Docker / Node:18-slim
- Terminal: bash?
Bug Description
Operating the SDK in a docker container, both locally and through AWS ECS I had an issue where files were not being changed, the SDK/CLI was just erroring out. This is what i believe has happened, correct me if i'm off track. This was super hard to debug.
I believe the Claude CLI is rejecting my request because:
- Container runs as root (Docker default)
- SDK sets permission_mode="bypassPermissions" which maps to --dangerously-skip-permissions
- CLI security feature prevents this when running as root
- CLI exits immediately with error code 1
As such, no JSON output is produced → SDK gets 0 messages
Expected Behavior
I'd expect something back to users, or an alternative mode by default.
Actual Behavior
Lost an afternoon wondering why the CLI worked but not the SDK.
Additional Context
na
3 Comments
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Closing as this issue may be stale. Please re-open if this is still occurring.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.