feat: a "Run now" button for the memory lints — one pass, for whoever asked
Nightly Build / build (push) Successful in 7m33s
Nightly Build / build (push) Successful in 7m33s
The two memory lints run weekly, which is right for maintenance and wrong for the moment somebody has just reorganised their notes and wants to know what the lint makes of them. Each agent's tab now carries a button that starts one pass immediately, for the caller. It runs as the caller — their pool, their sessions, their hub — so the report lands with the person who asked. The shared lint is the interesting case: its scheduled pass runs as the admin because the shared store belongs to nobody, but a member pressing the button reads the same store and gets the report themselves, which is coherent with shared memory being readable by every member anyway. Two settings are treated differently on purpose. Due-ness is skipped, exactly as manual /compact skips the compactor's token threshold: the interval answers *when*, and a human asking is a good enough answer to that. The Enabled switch is honoured: it answers *whether*, and that one is the admin's. The conversation review gets no button (AgentScope::PerSubject): it is about somebody else and picks its own subjects, so "run it for me" has no meaning. The frontend reads that from the agent's scope, not from a list of ids. A second starter breaks an invariant the scheduler used to hold for free. system_agent_runs::start sweeps any leftover `running` row of the same agent to `failed` before inserting, which was safe only because one sequential loop was the only thing that ever started a pass; a manual run overlapping a scheduled one would have marked a healthy run as interrupted and duplicated its work. So the agent list moves out of the scheduler and onto Skald as SystemAgents, which holds the registry plus an in-flight guard both paths claim through — keyed on what the pass is *about*, so an instance-wide agent is one slot no matter who runs it, and a per-subject review is keyed on the subject rather than on the supervisor lending the runtime. has_work is answered synchronously, before anything is spawned: it leaves no run row, so without that the button would say "started" over a log that never gains a row. Everything after it is spawned — a pass is an LLM turn, and no HTTP request should be held open for one. The run row exists before the browser is answered, so the log itself is the progress surface; the page polls it quietly until the pass leaves `running`.
This commit is contained in:
@@ -977,6 +977,11 @@ export default {
|
||||
'system_agents.tab.all': 'All',
|
||||
'system_agents.settings': 'Settings',
|
||||
|
||||
'system_agents.run.now': 'Run now',
|
||||
'system_agents.run.hint': 'Runs one pass for you, straight away, without waiting for the schedule.',
|
||||
'system_agents.run.started': 'Started — it appears in the log below and reports when it is done.',
|
||||
'system_agents.run.nothing': 'Nothing to look at right now, so no run was started.',
|
||||
|
||||
'system_agents.agent.event-triage.name': 'Event triage',
|
||||
'system_agents.agent.event-triage.desc': 'Reads the events your connectors receive — new mail, calendar changes, incoming messages — decides which of them are worth your attention, and notifies you about those. It runs for one person at a time and reads only that person\'s events.',
|
||||
'system_agents.agent.memory-lint-private.name': 'Private memory lint',
|
||||
|
||||
@@ -967,6 +967,11 @@ export default {
|
||||
'system_agents.tab.all': 'Tous',
|
||||
'system_agents.settings': 'Paramètres',
|
||||
|
||||
'system_agents.run.now': 'Exécuter maintenant',
|
||||
'system_agents.run.hint': 'Lance immédiatement une passe pour vous, sans attendre la planification.',
|
||||
'system_agents.run.started': 'Lancé — l\'exécution apparaît dans le journal ci-dessous et vous prévient une fois terminée.',
|
||||
'system_agents.run.nothing': 'Rien à examiner pour le moment, aucune exécution n\'a donc été lancée.',
|
||||
|
||||
'system_agents.agent.event-triage.name': 'Tri des événements',
|
||||
'system_agents.agent.event-triage.desc': 'Lit les événements reçus par vos connecteurs — nouveaux e-mails, changements d\'agenda, messages entrants — décide lesquels méritent votre attention et ne vous signale que ceux-là. Il s\'exécute pour une personne à la fois et ne lit que les événements de cette personne.',
|
||||
'system_agents.agent.memory-lint-private.name': 'Entretien de la mémoire privée',
|
||||
|
||||
@@ -967,6 +967,11 @@ export default {
|
||||
'system_agents.tab.all': 'Tutti',
|
||||
'system_agents.settings': 'Impostazioni',
|
||||
|
||||
'system_agents.run.now': 'Esegui ora',
|
||||
'system_agents.run.hint': 'Esegue subito una passata per te, senza aspettare la pianificazione.',
|
||||
'system_agents.run.started': 'Avviato — compare nel registro qui sotto e ti avvisa quando ha finito.',
|
||||
'system_agents.run.nothing': 'Al momento non c\'è nulla da esaminare, quindi non è stata avviata nessuna esecuzione.',
|
||||
|
||||
'system_agents.agent.event-triage.name': 'Triage eventi',
|
||||
'system_agents.agent.event-triage.desc': 'Legge gli eventi che arrivano dai tuoi connettori — nuove email, modifiche al calendario, messaggi in arrivo — decide quali meritano la tua attenzione e ti avvisa solo di quelli. Viene eseguito per una persona alla volta e legge solo gli eventi di quella persona.',
|
||||
'system_agents.agent.memory-lint-private.name': 'Manutenzione memoria privata',
|
||||
|
||||
Reference in New Issue
Block a user