[BUG] Claude continually asks for permission,even add permissin in .claude/settings.local.json
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
i set export command in allow
<img width="332" height="284" alt="Image" src="https://github.com/user-attachments/assets/6df9f0fa-a184-4742-b33a-e97a58f2de73" />
but claude code still ask for permission
<img width="468" height="157" alt="Image" src="https://github.com/user-attachments/assets/528e826e-dd82-4796-8ee7-87e601992820" />
What Should Happen?
claude code should not ask for permission for command export
Error Messages/Logs
Steps to Reproduce
容器启动
此步骤负责基于已加载的镜像启动Docker容器,并配置必要的运行环境。
容器启动规则
- 严格按照容器启动命令中列出的步骤逐一执行;
- 禁止使用 '&&' 将它们连接在一起;
- 禁止再做任何检查操作
容器启动命令
- 自动生成容器名称
``bash``
export CONTAINER_NAME="quant_$(date +%Y_%m_%d_%H_%M)"
- 打印容器名称
``bash``
echo $CONTAINER_NAME
- 生成挂载目录名称
``bash``
CURRENT_DIR=$(pwd)
- 打印当前目录
``bash``
echo $CURRENT_DIR
- 生成挂载目录
``bash``
export DIR_NAME=$(basename $CURRENT_DIR)
- 打印挂载目录
``bash``
echo $DIR_NAME
- 启动容器
``bash``
./start_docker_fixed.sh 【容器id】 $CONTAINER_NAME -v $CURRENT_DIR:/$DIR_NAME
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.30
Platform
Other
Operating System
Other Linux
Terminal/Shell
Xterm
Additional Information
_No response_
12 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
It would be awesome if @Anthropics would put a few days into fixing this. It really ruins the experience, and given the high cost of Claude, it should be one of the topi bug fix priorities.
I face the same issue. This needs fixing.
This breaks flow and coding speed like nuts and it's been going on for months.
It is still and issue and needs some attention.
Still an issue. It seems like I can't leave it unattended for more than 15 seconds...
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.
oh the issue is gone for me alright:
Still occurring for me. I don't want to use "--dangerously-skip-permissions".
Will this issue ever get fixed?
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
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.