File tree Expand file tree Collapse file tree
packages/agent-gateway/src/routes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,8 +62,9 @@ import {
6262 * Body cap for the fs action route. `WorkspaceFsService.write` accepts 10 MiB
6363 * of decoded content. Two encodings expand it: base64 costs ~4/3, and a UTF-8
6464 * string of control characters costs 6 bytes per character once JSON-escaped,
65- * so a legal 10 MiB write can serialize to ~60 MiB. Anything under that is
66- * rejected as a transport error before `FS_TOO_LARGE` can be returned. Scoped
65+ * so a legal 10 MiB write can serialize to ~60 MiB. A limit below that would
66+ * reject such a request as a transport error before the route could run and
67+ * answer `FS_TOO_LARGE` for content that genuinely is too large. Scoped
6768 * to this route so the raise does not widen the request surface of every other
6869 * endpoint.
6970 */
You can’t perform that action at this time.
0 commit comments