This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-05 01:59:39 -05:00
1 parent 034f35bcb9
commit 1516924e99
4 files changed
+42 -10

No files matched your search

+6 -2
View File
@@ -108,8 +108,12 @@ async def _opencode_server(profile: dict[str, Any], workspace: str):
async def _drain_stderr(proc: asyncio.subprocess.Process) -> None:
assert proc.stderr is not None
while await proc.stderr.readline():
pass
while True:
try:
if not await proc.stderr.readline():
break
except ValueError:
continue
def _headers(profile: dict[str, Any]) -> dict[str, str]: