You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MAINT: Remove deprecated WebsocketTarget.cleanup_conversation_async (due in 1.3.0) #4396
WebsocketTarget.cleanup_conversation_async is a deprecated wrapper around reset_conversation_async. Calling it prints a deprecation warning that says it will be removed in 1.3.0. main is at 1.3.0.dev0, so it has to go before the release.
What to change
pyrit/prompt_target/websocket_target.py: remove cleanup_conversation_async. Drop the print_deprecation_message import if nothing else in the file uses it. cleanup_target_async, directly below it, is not deprecated and stays.
RealtimeTarget has the same wrapper; that one is tracked in a separate issue, so please leave it out of this PR.
Done when
WebsocketTarget has no cleanup_conversation_async method and reset_conversation_async is unchanged.
Unit tests and pre-commit pass.
How to contribute
Claim it first. Before you start, comment on this issue to say you are taking it.
First comment wins. If yours is the first claim comment, go ahead and open a PR; you do not need to wait for a reply. If someone has already commented, this issue is taken, so please pick a different one.
I'm taking this one: removing WebsocketTarget.cleanup_conversation_async and its test, keeping cleanup_target_async, and leaving RealtimeTarget to #4395.
Activity
khushi-git-7 commentedon Nov 18, 2026
I'm taking this one: removing
WebsocketTarget.cleanup_conversation_asyncand its test, keepingcleanup_target_async, and leavingRealtimeTargetto #4395.