From 7a6ad7261797307ec98f7ed436b23967c6b57471 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 15 Jul 2026 11:02:23 +0200 Subject: [PATCH] Diagnose Claude bypass runtime identity --- .../rootfs/usr/local/bin/claude-tools-doctor.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/claude_desktop/rootfs/usr/local/bin/claude-tools-doctor.sh b/claude_desktop/rootfs/usr/local/bin/claude-tools-doctor.sh index 9ae7dda7da..150b73f46d 100755 --- a/claude_desktop/rootfs/usr/local/bin/claude-tools-doctor.sh +++ b/claude_desktop/rootfs/usr/local/bin/claude-tools-doctor.sh @@ -26,6 +26,18 @@ for option in permission_mode install_headroom headroom_wrap_claude_code expose_ printf '%-30s %s\n' "$option" "$(bashio::config "$option")" done +section "Runtime identity" +printf '%-30s %s\n' "configured PUID:PGID" "$(bashio::config 'PUID'):$(bashio::config 'PGID')" +printf '%-30s %s\n' "effective abc UID:GID" "$(id -u abc):$(id -g abc)" +printf '%-30s %s\n' "current process UID:GID" "$(id -u):$(id -g)" +if [ "$(bashio::config 'permission_mode')" = "bypass" ]; then + if [ "$(id -u abc)" -eq 0 ]; then + echo "bypass runtime: ERROR - Claude Code will reject bypass permissions while abc is root" + else + echo "bypass runtime: OK - Claude Desktop and Cowork run as a non-root UID" + fi +fi + section "Claude Code permission state" python3 - <<'PY' import json