Files
chenhg5-cc-connect/agent/qoder
Kagura cf2d258557 fix(agent): skip bypass-permissions flags when running as root (#1056)
Claude Code and Qoder reject permission-bypass flags when the
process runs as root (EUID 0). This causes the agent to crash
with exit status 1, and the nil agentSession triggers a panic in
the engine's interactive message handler.

For Claude Code: downgrade bypassPermissions mode to auto (which
auto-approves permissions internally in cc-connect, avoiding the
CLI flag entirely).

For Qoder: skip --dangerously-skip-permissions under root.

Both log a warning so the user knows why YOLO mode is degraded.

Closes #1054
2026-06-07 09:23:49 +08:00
..