Skip to content

BUG: Empty Chat shows a converter-restoration warning #3147

Closed

Description

@romanlutz

Describe the bug

An empty Chat shows this warning even though no converter has been selected:

Converter choices could not be restored. Select and apply converters again before sending.

It appears both while the page initially loads and after a target is available. The message suggests that the user lost converter settings and must reapply them, even when opening an ordinary empty chat.

The October 11 observation recorded an empty localStorage on arrival. It did not involve a failed send or a converter recovery action.

Steps/Code to Reproduce

  1. Open /chat in a fresh browser context on a local PyRIT frontend/backend.
  2. Do not select or apply any converter, restore a failed draft, or open an existing conversation.
  3. Observe the warning above the prompt composer while the page loads.
  4. Wait for the backend/default labels to finish loading and select a configured target if necessary.
  5. Observe that the same warning remains in the empty conversation. Sending a prompt or contacting a live provider is not necessary.

The recorded observation used a local test target, isolated SQLite memory, and a production-served frontend. These steps describe the observed flow; they have not been rerun against today's latest main.

Expected Results

No converter-restoration warning for a new empty chat with no recovery failure. Keep the warning when an actual recovered draft cannot restore its converter choices.

Regression coverage should distinguish a new chat, a successful restoration, and a genuinely failed restoration.

Actual Results

The warning is visible on initial load and remains after a target is selected, alongside "There are no messages in this conversation yet."

There is a likely explanation in ChatWindow.tsx at the observed commit:

{recoveredDraftWarningConversationId === viewedConversationId && (
  <MessageBar intent="warning">
    <MessageBarBody>Converter choices could not be restored. Select and apply converters again before sending.</MessageBarBody>
  </MessageBar>
)}

The warning ID starts as null. If the viewed conversation is also null, the equality passes without a restoration failure. Please check that the warning condition requires a real warning/conversation ID, while preserving warnings for genuine recovery failures.

This is distinct from #2867, which concerns unsaved working-copy text lost during live reinitialization. The recovery feature in merged #2474 is relevant background, not proof that this empty-chat case is fixed.

Screenshots

Two retained October 11 captures show the warning: fresh-chat-converter-warning.png during loading and steady-empty-chat-warning.png after target selection. They are retained locally, not uploaded. The exact displayed text and reproduction steps are included above.

Versions

  • OS: Windows.
  • Browser: Chromium through Playwright 1.63.0.
  • PyRIT: 1.2.0.dev0, source 0a5abbf99b352ed6ce587bf2063dfe10f7f67863.
  • Python: 3.14.4, uv-managed.
  • Frontend: production-served current build; local-only backend/target.
  • Full pyrit.show_versions() output is not included. No source fix or latest-main rerun is claimed.

Activity

  1. github-actions commented on Oct 12, 2026

    @github-actions
    Contributor

    Thanks for the feedback! A maintainer will take a look soon.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: triageGUIUmbrella label for all feedback submitted via the Co-PyRIT GUI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions