Skip to content

chore: integrate open PRs and issue fixes (#29, #31, #30) - #32

Merged
OnlyTerp merged 3 commits into
mainfrom
devin/integrate-open-items
Jul 30, 2026
Merged

chore: integrate open PRs and issue fixes (#29, #31, #30)#32
OnlyTerp merged 3 commits into
mainfrom
devin/integrate-open-items

Conversation

@OnlyTerp

@OnlyTerp OnlyTerp commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

This rolls up the two currently open PRs and the one open issue into a single, rebased integration branch:

Verification

  • python test_proxy.pyALL TESTS PASSED (27/27)
  • python scripts/doctor.py --no-test --ci — 13 ok, 0 failures
  • python -m compileall proxy.py test_proxy.py scripts/ultracode_selector.py scripts/doctor.py examples/auto_router_demo.py — clean
  • python examples/auto_router_demo.pyRESULT: PASS

Closes #30.

Link to Devin session: https://app.devin.ai/sessions/fd9010edb0274e7a94e94dec89a8699f
Requested by: @OnlyTerp


Open in Devin Review

lxinfei and others added 3 commits July 30, 2026 19:07
All five urllib.request.urlopen() call sites in the proxy now close the
HTTPResponse object after use (via try/finally), preventing
file-descriptor leaks that crash the proxy under UltraCode concurrency,
surfacing as 'ConnectionRefused' in Claude Code mid-session.

Affected call sites:
- _relay_response: wrap body in try/finally resp.close()
- _mk_events (openai_compat): close resp in finally
- _classifier_complete: close resp after read (both openai_compat and
  Anthropic passthrough backends)
- _handle_models: close resp after /v1/models fetch

27/27 offline self-tests pass.
@OnlyTerp OnlyTerp self-assigned this Jul 30, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@OnlyTerp
OnlyTerp merged commit 1870e58 into main Jul 30, 2026
9 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.

Proxy crashes mid-session with ConnectionRefused — upstream HTTPResponse objects are never closed (FD exhaustion)

3 participants