[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_
This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗