Skip to content

Prevent Python SDK harness disconnect tracebacks from contaminating stderr assertions #790

Description

@shiny-code-bot

Finish Line

Expected client disconnects in the Python SDK app-server test harness do not print BrokenPipeError or connection-reset tracebacks to process stderr, and the full Python SDK test job passes reliably without weakening unrelated output assertions.

Current Status

State: completed and merged to main on August 23, 2026.

The repair landed through stacked PR #791 and default-branch PR #789. Final merge commit: 9e5acadfbd984332b09494495b5e647a26257018.

Implemented behavior:

  • _ResponsesHttpServer.handle_error suppresses only expected BrokenPipeError and ConnectionResetError client disconnects.
  • Every other exception delegates to the standard server error path and remains visible.
  • Focused coverage proves both silent disconnect cases and unexpected-error delegation.
  • No production SDK behavior, formatter assertion, workflow retry policy, or CI threshold was weakened.

Evidence:

#790's finish line is satisfied. #634 is no longer blocked by this issue; PR #789 is merged, and PR #788 can now update from repaired main before resuming #787.

Blocked by: none.

Last verified: August 23, 2026.

Metadata

Metadata

Assignees

No one assigned

    Labels

    planDurable planning issueplan:donePlan completed or superseded

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions