[BUG] Claude continually asks for permission,even add permissin in .claude/settings.local.json

Status Closed — not planned
Maintainer reply None cached
Activity 12 comments · opened Nov 12, 2025 · closed Mar 1, 2026

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_

View original on GitHub ↗

12 Comments

github-actions[bot] · 9 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/11172
  2. https://github.com/anthropics/claude-code/issues/6850
  3. https://github.com/anthropics/claude-code/issues/11380

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

cruftyoldsysadmin · 9 months ago

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.

sibikrishnan · 9 months ago

I face the same issue. This needs fixing.

fabswt · 9 months ago

This breaks flow and coding speed like nuts and it's been going on for months.

omerfdasar · 8 months ago

It is still and issue and needs some attention.

andmanea · 8 months ago

Still an issue. It seems like I can't leave it unattended for more than 15 seconds...

github-actions[bot] · 7 months ago

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.

fabswt · 7 months ago

oh the issue is gone for me alright:

which claude
claude: aliased to claude --dangerously-skip-permissions
andmanea · 7 months ago

Still occurring for me. I don't want to use "--dangerously-skip-permissions".

andmanea · 7 months ago

Will this issue ever get fixed?

github-actions[bot] · 6 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 5 months ago

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.