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
2 changes: 1 addition & 1 deletion docs/configuration/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Commands come in three shapes:
> [!IMPORTANT]
> **Behavior differs by frontend**
>
> `url` and `agent` are only fully honored in the **full TUI**, which checks `url` before `agent` (a URL command opens the browser and stops there; an agent-switching command switches before sending any instruction). The **lean TUI** doesn't special-case either field β€” it only resolves a command's expanded text and sends it as a chat message, so a URL-only command silently sends whatever trailing text followed the slash (often nothing, opening no browser) and an agent-switching command sends its instruction to the *current* agent instead of the target. The **CLI** (`docker agent run agent.yaml /command`) switches agents like the full TUI, but has no browser to open, so `url` has no effect there.
> `url` and `agent` are only fully honored in the **full TUI**, which checks `url` before `agent` (a URL command opens the browser and stops there; an agent-switching command switches before sending any instruction). The **lean TUI** doesn't special-case either field β€” it only resolves a command's expanded text and sends it as a chat message, so a URL-only command silently sends whatever trailing text followed the slash (often nothing, opening no browser) and an agent-switching command sends its instruction to the *current* agent instead of the target. The **CLI** (`docker agent run agent.yaml /command`) switches agents like the full TUI, but has no browser to open, so `url` has no effect there. The **HTTP API** (`POST /api/sessions/:id/agent/:agent`) resolves agent-switching commands server-side: if the message content starts with a slash command whose `agent` field is set, the active agent is switched and the message is rewritten before the turn runs. Prompt-only and URL commands are not resolved server-side and pass through to the model unchanged.

## Prompt Commands

Expand Down
6 changes: 6 additions & 0 deletions docs/configuration/permissions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ permissions:
- "write_file:path=/usr/*"
```

> [!NOTE]
> **Colons inside argument values are preserved.** Only the `:key=` token boundaries between
> argument conditions split a pattern β€” colons that appear inside a value are treated as
> ordinary characters and do not start a new condition. Check a tool’s actual argument names
> (and whether they accept a string or a list) before writing an argument-matching pattern.

### Multiple Argument Conditions

Chain multiple argument conditions with colons. All conditions must match:
Expand Down
Loading