Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
.cursor

/zero
/zero-linux-sandbox.prev
/zero-linux.prev
/zero.prev
/zero-patched
/zero-patched.prev
/zero.exe
/zero-windows-command-runner.exe
/zero-windows-sandbox-setup.exe
Expand Down
5 changes: 3 additions & 2 deletions internal/acp/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ func (a *Agent) handleSetMode(_ context.Context, params json.RawMessage) (any, e
defer sess.turnMu.Unlock()
mode := agent.PermissionMode(p.ModeID)
switch mode {
case agent.PermissionModeAuto, agent.PermissionModeAsk, agent.PermissionModePlan:
case agent.PermissionModeAuto, agent.PermissionModeAsk, agent.PermissionModePlan, agent.PermissionModeSpecDraft:
if err := a.updateMode(sess, mode); err != nil {
return nil, err
}
Expand Down Expand Up @@ -739,7 +739,7 @@ func (a *Agent) handleSetConfigOption(_ context.Context, params json.RawMessage)
defer sess.turnMu.Unlock()
mode := agent.PermissionMode(p.Value)
switch mode {
case agent.PermissionModeAuto, agent.PermissionModeAsk, agent.PermissionModePlan:
case agent.PermissionModeAuto, agent.PermissionModeAsk, agent.PermissionModePlan, agent.PermissionModeSpecDraft:
if err := a.updateMode(sess, mode); err != nil {
return nil, err
}
Expand Down Expand Up @@ -836,6 +836,7 @@ func (a *Agent) modeState(s *acpSession) *SessionModeState {
{ID: string(agent.PermissionModeAuto), Name: "Auto", Description: "Run safe tools automatically; ask before risky ones."},
{ID: string(agent.PermissionModeAsk), Name: "Ask", Description: "Ask before every tool that changes state."},
{ID: string(agent.PermissionModePlan), Name: "Plan", Description: "Read-only planning; write and shell tools are hidden."},
{ID: string(agent.PermissionModeSpecDraft), Name: "Spec-Draft", Description: "Spec-draft planning; write and shell tools are hidden."},
},
}
}
Expand Down