Skip to content

feat(session): increase per-session connections to 3#155

Merged
kianwoon merged 1 commit intomainfrom
feat/increase-session-connections
Apr 3, 2026
Merged

feat(session): increase per-session connections to 3#155
kianwoon merged 1 commit intomainfrom
feat/increase-session-connections

Conversation

@kianwoon
Copy link
Copy Markdown
Owner

@kianwoon kianwoon commented Apr 3, 2026

Summary

  • Bump SESSION_AGENT_CONNECTIONS from 1 → 3 to support parallel subagent traffic
  • Claude Code can fire multiple concurrent upstream requests via subagents; a single HTTP/2 connection could bottleneck during parallel agent workflows
  • 3 connections per provider per session gives headroom for typical subagent concurrency (2-3 parallel calls)

Test plan

  • npx vitest run tests/session-pool.test.ts — 8/8 pass
  • npm run build — clean
  • Daemon reloaded, /api/sessions returns correct stats
  • Verify parallel subagent calls don't see connection排队

…agent traffic

Claude Code can fire multiple concurrent upstream requests via subagents.
A single HTTP/2 connection was sufficient for basic use but could bottleneck
during parallel agent workflows. Bumping to 3 connections per provider
per session gives headroom for typical subagent concurrency.
@kianwoon kianwoon merged commit b482d95 into main Apr 3, 2026
5 checks passed
@kianwoon kianwoon deleted the feat/increase-session-connections branch April 3, 2026 13:20
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