Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

901 B
Raw Blame
<%# A persona was picked -- re-render the control so the selection sticks.

    Nothing else happens: choosing a persona sets it and triggers no answer. That
    is the separate, explicit regenerate action on the answer itself, the same
    split the style levels document.

    replace_all over a CLASS, not replace over an id. The control is rendered once
    today, but the panel is exactly the surface that puts chat controls on top of a
    page which may hold its own copy, and a fixed id has shipped that bug three
    times in this feature (last one in production). Every copy is meant to move --
    the preference is per user and per org. %>
<%= turbo_stream.replace_all ".#{Neo::Chat::PersonaControlComponent::DOM_CLASS}" do %>
  <%= render Neo::Chat::PersonaControlComponent.new(
        current_user: current_user,
        current_organisation: @current_organisation
      ) %>
<% end %>