[BUG] Permissions Issue
Resolved 💬 3 comments Opened Jul 3, 2025 by Rucknar Closed Nov 30, 2025
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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗