opencode
opencode copied to clipboard
fix: add timeout to `BunProc.run` to fix network monitor related hangs
When using a network monitor like LuLu or Little Snitch that requires permission to make network requests, opencode hangs and never recovers requiring it to be forcefully quit or killed.
This seems to stop that from happening.
i added increasing timeouts because waiting a long time sucks, so the first one is quicker, but in case some people are on slow connections they get a better shot after that? ¯\_(ツ)_/¯
Fixes #421