{"draft":null,"from":84,"to":318,"files":[{"path":"client/src/box-run.ts","added":2,"removed":2,"diff":"--- a/client/src/box-run.ts\n+++ b/client/src/box-run.ts\n@@ -150,7 +150,7 @@\n \t\ttry {\n \t\t\t// stderr=split: the box's stderr comes apart from stdout (7a5a111); older servers ignore it.\n \t\t\t// replace=1: stop the runs still going in the box first; without it the server answers 409 (#25).\n-\t\t\tconst answer = await fetch(\n+\t\t\tconst answer = await api.send(\n \t\t\t\t`${api.url(api.agentPath(\"run\"))}?cmd=${encodeURIComponent(command)}&stderr=split${replace ? \"&replace=1\" : \"\"}${fresh ? \"&fresh=1\" : \"\"}${boxQuery(api.box)}`,\n \t\t\t\t{\n \t\t\t\t\tmethod: \"POST\",\n@@ -216,7 +216,7 @@\n \t\tonReconnect?.(last, attempt + 1);\n \t\tawait new Promise((ok) => setTimeout(ok, delay));\n \t\ttry {\n-\t\t\tconst res = await fetch(followUrl(api, id, seen), { headers: api.headers() });\n+\t\t\tconst res = await api.send(followUrl(api, id, seen), { headers: api.headers() });\n \t\t\tif (res.status === 404)\n \t\t\t\tthrow new ApiError(\n \t\t\t\t\t`the run broke off (${why}) and is gone from the box: ${errorSentence(await res.text())}`,"}],"unmatched":[]}