Skip to content

MAINT: Remove deprecated WebsocketTarget.cleanup_conversation_async - #4426

Open
Khushi (khushi-git-7) wants to merge 1 commit into
microsoft:mainfrom
khushi-git-7:maint/4396-websocket-cleanup
Open

Khushi (khushi-git-7) wants to merge 1 commit into
microsoft:mainfrom
khushi-git-7:maint/4396-websocket-cleanup

Conversation

@khushi-git-7

Copy link
Copy Markdown
Contributor

Description

Removes the deprecated WebsocketTarget.cleanup_conversation_async wrapper, due in 1.3.0. Closes #4396.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 15:27

Copilot AI 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.

🟢 Approval recommended

No active review issues block the removal of the deprecated WebsocketTarget.cleanup_conversation_async API.

No open issues 🎉

What changed in this PR

Removes the deprecated WebsocketTarget.cleanup_conversation_async API for the 1.3.0 release, addressing #4396.

Changes:

  • Deletes the deprecated wrapper and its unused deprecation-helper import.
  • Removes the corresponding warning-and-delegation test.
  • Leaves reset_conversation_async, cleanup_target_async, and RealtimeTarget unchanged.
File Description
tests/​unit/​prompt_target/​target/​test_websocket_target.py Removes the test for the deprecated wrapper.
pyrit/​prompt_target/​websocket_target.py Removes the wrapper and unused import.

Review effort: Balanced

This branch has not been deployed

No deployments
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.

MAINT: Remove deprecated WebsocketTarget.cleanup_conversation_async (due in 1.3.0)

2 participants