Skip to content

Commit 32e0b61

Browse files
adding timeout (#7128)
1 parent 7d6ce6f commit 32e0b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/session/system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export namespace SystemPrompt {
123123
.then((x) => "Instructions from: " + p + "\n" + x),
124124
)
125125
const foundUrls = urls.map((url) =>
126-
fetch(url)
126+
fetch(url, { signal: AbortSignal.timeout(5000) })
127127
.then((res) => (res.ok ? res.text() : ""))
128128
.catch(() => "")
129129
.then((x) => (x ? "Instructions from: " + url + "\n" + x : "")),

0 commit comments

Comments
 (0)