fix(agent): provide current workspace access before model requests
This commit is contained in:
1 parent
d7d4b97df3
commit
1d69f630d7
17 files changed
+265
-44
No files matched your search
@@ -2083,6 +2083,12 @@ For API keys, tokens, and other secrets, see [Environment Variables for Secrets]
|
||||
| `tools.ssrfWhitelist` | `[]` | CIDR ranges exempted from the shared SSRF guard used by web fetches and HTTP/SSE MCP connections. Prefer exact host CIDRs such as `192.168.1.50/32`; broad ranges increase SSRF exposure. |
|
||||
| `channels.*.allowFrom` | omitted | Access control per channel. Omit to use pairing-only mode; set `["*"]` to allow everyone; or list specific user IDs. See [Pairing](#pairing) for details. |
|
||||
|
||||
Each new user request includes the current project and file-access restriction in model-only
|
||||
context. This uses the same policy resolver as the tools, including restrictions from
|
||||
a configured exec sandbox. It does not grant access or change OS permissions.
|
||||
The context is stored with that request, not rewritten in earlier messages. New requests
|
||||
refresh it after a project switch or context compaction. It is hidden from the chat view.
|
||||
|
||||
To diagnose a path error, the agent can call `my(action="check", key="workspace_sandbox")`.
|
||||
This read-only result shows the current tool directory and workspace restriction, including
|
||||
the restriction from `tools.exec.sandbox`. The older `workspace` value is an agent-directory
|
||||
|
||||
Reference in new issue
Block a user