{% extends "space-settings-base.html" %} {% from "ui.html" import csrf_field with context %} {% from "tidy-run-now.html" import run_now_button with context %} {% set section = "tidy" %} {% block section %} {# A run right away (its own POST form, outside the settings form), then the settings. #} {% if run_now %}
{{ _("Start a run without waiting for the night") }}

{{ _("The Tidy-up tab follows it and shows its result.") }}

{{ run_now_button("/o/" ~ org.slug ~ "/" ~ space.slug ~ "/-/tidy", run_now.caution, run_now.paid, run_now.average_cost) }} {% if run_now.caution == 'failures' %}

{{ _("The last {n} runs failed: test the connection first.", n=run_now.failures) }}

{% elif run_now.caution == 'test' %}

{{ _("The last connection test failed: test it again before starting a run.") }} {{ _("Organization AI page") }}

{% endif %}
{% endif %} {# Two ways to trigger the tidy-up, each in its group, then the model. #}

{{ _("Every day at the chosen time, the AI agent files the inbox into the wiki. Space-specific instructions: the repository file .synaptane/prompts/tidy.md.") }}

{{ _("People who drop notes get an email when their notes are filed or left (can be turned off in My account).") }}

{% if not ai_configured %}

{{ _("No AI provider is configured for the organization.") }} {{ _("Configure") }}

{% endif %} {{ csrf_field() }}
{{ _("Daily tidy-up") }}
{% for zone in timezones %}

{{ _("Even with an empty inbox, the agent fixes the problems people introduced since the last run: broken links, new pages that nothing links to, missing from their folder's index, untitled or empty. At most {count} a night; it only costs when there are some.", count=max_problems) }}

{{ _("Tidy-up as you go") }}

{{ _("Notes dropped during this delay are tidied together, in a single run. The monthly budget applies.") }}

{% endblock %}