diff options
| author | Spoon <[email protected]> | 2026-01-06 22:00:34 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-06 15:00:34 -0600 |
| commit | 32e0b612d98766e49f46e0d2d79c429e2c57b819 (patch) | |
| tree | a17ba823e0031ab2983f60cec476f083e856c713 | |
| parent | 7d6ce6fc5ebf96db8afc1d93a8308deeddba67db (diff) | |
| download | opencode-32e0b612d98766e49f46e0d2d79c429e2c57b819.tar.gz opencode-32e0b612d98766e49f46e0d2d79c429e2c57b819.zip | |
adding timeout (#7128)
| -rw-r--r-- | packages/opencode/src/session/system.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/session/system.ts b/packages/opencode/src/session/system.ts index 12b6a537e..5ab165ba2 100644 --- a/packages/opencode/src/session/system.ts +++ b/packages/opencode/src/session/system.ts @@ -123,7 +123,7 @@ export namespace SystemPrompt { .then((x) => "Instructions from: " + p + "\n" + x), ) const foundUrls = urls.map((url) => - fetch(url) + fetch(url, { signal: AbortSignal.timeout(5000) }) .then((res) => (res.ok ? res.text() : "")) .catch(() => "") .then((x) => (x ? "Instructions from: " + url + "\n" + x : "")), |
