This is pretty sane default behaviour. If it's sandboxed it really cant edit the file for you, you have to enable bypass/auto mode (shift+tab) so it can request a sandbox breakout, or run with --dangerously-skip-permissions.
I see what you mean now though - you can change the default permission mode with /config in CC, but it will indeed not make that change on your behalf.