Skip to content

fix: Memory leaks in OAuth transport and missing process cleanup on exit #13777

Closed

Description

@sauerdaniel
  1. OAuth transport creates HTTP clients that are never closed
  2. On SIGINT/SIGTERM, spawned MCP server processes are not terminated, leaving orphan processes

Expected: OAuth transports are properly disposed; all child processes are terminated on exit.
Actual: Resources and processes leak.

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Feb 16, 2026
  2. github-actions commented on Feb 16, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • This issue should use the Bug Report template. While it has good technical content, it needs to be formatted with the required template fields (specifically the "Description" field label and structured template format).
    • Please include details like: What version of OpenCode are you using? What OS and terminal are you running?

    Please edit this issue to use the proper Bug Report template within 2 hours, or it will be automatically closed.


    Additionally, this issue appears to be a duplicate of existing issues:

    Please review these existing issues and consider consolidating your report with one of them, or providing new information that distinguishes this issue.

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. sauerdaniel commented on Feb 16, 2026

    @sauerdaniel
    ContributorAuthor

    Duplicate — closing in favor of the original issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs:complianceThis means the issue will auto-close after 2 hours.perfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions