Skip to content

[P3.8] httpx.AsyncClient leaked on every PR-merge webhook dispatch #779

Description

@frankbria

Severity: low | Category: correctness | Phase: P3.8

Problem

_dispatch_pr_merged_webhook constructs GitHubIntegration() (eagerly opening an AsyncClient) only to read gh.repo (just os.getenv('GITHUB_REPO')), then discards it without close() — a socket leak per merge.

Evidence

codeframe/ui/routers/pr_v2.py:204

Acceptance criteria

Read GITHUB_REPO from env directly, or try/finally: await gh.close().

Dependencies

None


Filed from the SaaS launch-readiness audit. Atomic: one developer, one session. Work order: strictly P0.1 → P3.12 (no forward dependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-post-betaLow priority - can wait until after beta (v2.0)priority:lowtype:bugSomething is broken and needs fixing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions