Skip to content

The open source coding agent.

TypeScript

fix issue with conversations hanging

Dax Raadb72e17a8b7b2
diff --git a/packages/opencode/src/session/system.ts b/packages/opencode/src/session/system.ts
index 6eea6085f69..0823443b7d5 100644
--- a/packages/opencode/src/session/system.ts
+++ b/packages/opencode/src/session/system.ts
@@ -114,7 +114,7 @@ export namespace SystemPrompt {
.text()
.catch(() => ""),
)
- return Promise.all(found).then(Boolean)
+ return Promise.all(found).then((result) => result.filter(Boolean))
}
export function summarize(providerID: string) {