Skip to content

Fix/basic fixes - #58

Merged
snhsish merged 2 commits into
mainfrom
fix/basic-fixes
Aug 23, 2026
Merged

Fix/basic fixes#58
snhsish merged 2 commits into
mainfrom
fix/basic-fixes

Conversation

@snhsish

@snhsish snhsish commented Aug 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

…ailable

Replace rigid single-regex port detection (which required an exact
'opencode server listening on http://127.0.0.1:<port>' line and broke
on chunk boundaries) with a layered detector shared by all tunnel
branches:

1. Buffered log parsing with broadened patterns (any host/format)
2. Active /global/health probe on the requested port
3. OS socket scan of the child PID via lsof/ss/netstat as fallback

Previously, if opencode fell back to a random port, detection timed
out and silently targeted the wrong port.
@snhsish
snhsish merged commit b6240b1 into main Aug 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant