prompts: tools-elevate explain before running
This commit is contained in:
parent
30bc3c8eff
commit
33aaae6e20
|
|
@ -11,7 +11,8 @@ execute_code: steps=[{code: "systemctl restart nginx", elevated: true}]
|
|||
```
|
||||
|
||||
**Constraints**:
|
||||
- Before running an elevated step, briefly explain in your response what the command does and why it requires elevation. The user must approve the request — give them enough context to make that decision.
|
||||
- `elevated: true` is a per-step flag — apply it only to steps that actually need it; other steps in the same pipeline run normally inside the sandbox.
|
||||
- Only bash is supported for elevated steps.
|
||||
- Elevation may not be available on all systems; if absent, the step fails with "elevation not available". Do not assume it is always present.
|
||||
- Elevated steps block until the user approves or denies the request — this is expected, not an error. Use elevation whenever the task requires it; the prompt is the user's opportunity to review the action.
|
||||
- Elevated steps block until the user approves or denies the request — this is expected, not an error.
|
||||
|
|
|
|||
Loading…
Reference in New Issue