T22: Zamena bypassPermissions sa dontAsk — radi kao root

bypassPermissions je interno blokiran za root isto kao
--dangerously-skip-permissions. dontAsk automatski odobrava
sve bez te provere.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
djuka 2026-02-20 15:05:11 +00:00
parent 7efc92feac
commit 5e86421100
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ Planer i Agent nikad direktno. → detalji: `TASKS/Workflow-Spec.md`
"Pusti ▶" pokrene NOV `claude` proces sa čistim kontekstom:
```bash
claude --permission-mode bypassPermissions -p "Pročitaj CLAUDE.md i radi task TASKS/ready/T{XX}.md"
claude --permission-mode dontAsk -p "Pročitaj CLAUDE.md i radi task TASKS/ready/T{XX}.md"
```
Svaki task = zasebna sesija. Nema istorije iz prethodnih taskova.

View File

@ -157,7 +157,7 @@ func cleanEnv() []string {
// runCommand executes a command and streams output to listeners.
func (s *Server) runCommand(session *sessionState, command, execID string) {
// Build the claude command
cmd := exec.Command("claude", "--permission-mode", "bypassPermissions", "-p", command)
cmd := exec.Command("claude", "--permission-mode", "dontAsk", "-p", command)
cmd.Dir = s.projectRoot()
cmd.Env = cleanEnv()

View File

@ -156,7 +156,7 @@ func (s *Server) handleChatSubmit(c *gin.Context) {
// runChatCommand executes claude CLI and streams output to chat listeners.
func (s *Server) runChatCommand(chat *chatState, prompt string) {
cmd := exec.Command("claude", "--permission-mode", "bypassPermissions", "-p", prompt)
cmd := exec.Command("claude", "--permission-mode", "dontAsk", "-p", prompt)
cmd.Dir = s.projectRoot()
cmd.Env = cleanEnv()