{#- The page of a chat: its messages and proposals, then what the user may write. With `full` and an agent of `open_agents`, the agents open to the user, it is the form that sends a message to one of them. With `propose` it is the same form without the agents: it writes a proposal. Anyone else gets a line that says why there is no form. -#} {% extends "project/base.html" %} {% block title %}{{ chat.shown_title }} — aiwe{% endblock %} {% from "model_setting.html" import used_name %} {% block project %} {% set proposing = access == "propose" %}
{% if access == "read" %}You may only read this project.
{% elif chat.in_trash and proposing %}This chat is in the trash: nobody writes here.
{% elif chat.in_trash %} {# A plain form: the page comes anew, with the form that sends a message. #} {% elif proposing or open_agents %} {# The script shows one of these while the page cannot reach the server or the sign-in is gone. The link opens a new tab, so the files picked here stay. #}No connection to the server. This page may be out of date.
You are signed out. Sign in in a new tab, then go on here.
{# Why the server refused the last message or the last pick of a model, in its own words. #} {# htmx posts the form and puts the messages it gets back in place of the list. drop: a second Send while one is on its way does nothing. The form is one line while it is out of focus and holds nothing to send. tabindex: a click on any part of the form gives it the focus, which unfolds it and keeps it so. A chat with no message opens ready to write. #} {% if not proposing %} {% include "chat/models.html" %} {% endif %} {% if speech_models %} {# The speech models of voxo, in a box over the microphone. The script marks the one the browser keeps as picked. No part of the form: a pick is not sent with a message. #}Speech model
{% for model in speech_models %} {% endfor %}No agent is open to you, so you write to none. The admin opens an agent to a user.
{% else %}No agent to write to yet: the admin adds a Claude or Codex CLI on the Admin page.
{% endif %} {% endblock %}