Show upcoming scheduled wakes with live countdowns

Aperta
#4,462 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia individuando la timeline della UI dell’agente o l’header dell’entità che legge le righe di pianificazione del manifest. Traccia le righe future_send in sospeso, la corrispondenza con il proprio target e le righe cron, quindi verifica se l’helper cron del runtime esistente è compatibile con il browser o è esportato. Il lavoro è completato quando i risvegli in sospeso vengono riepilogati visibilmente con un conto alla rovescia o dettagli cron, senza sovrapporsi alla correzione separata del rendering dei self-send attivati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

It would be useful for the agent UI to surface upcoming scheduled wakes, especially self-scheduled sends and cron schedules.

Examples:

  • "The agent will wake again in 3:25" with a live countdown for pending self-targeted future sends.
  • "Scheduled cron wake: every 5 minutes" and, if feasible, "next wake in 2:17" for cron schedules.

Motivation

When an agent sends a message to itself with afterMs, or has a cron schedule configured, the timeline currently doesn't make the upcoming wake obvious. A small notice would make scheduled autonomous behavior much easier to understand and debug.

Possible approach

Future sends

Use manifest schedule rows:

manifest.kind === 'schedule'
manifest.scheduleType === 'future_send'
manifest.status !== 'sent'
manifest.status !== 'failed'

For self-wake language, additionally require:

manifest.targetUrl === entityUrl

Then render a compact notice with a live countdown to fireAt:

  • Agent will wake again in 3:25
  • Agent is waking now…
  • optionally Scheduled wake overdue if still pending after fireAt

For future sends targeting another entity, use different copy, e.g.:

  • Will send a message to /agent/foo in 3:25
Cron schedules

Use manifest schedule rows:

manifest.kind === 'schedule'
manifest.scheduleType === 'cron'

Initial UI could display the cron expression and timezone. A follow-up could compute the next fire time client-side if the existing runtime cron helper is browser-safe/exported, or if we add a small browser-safe helper.

Placement ideas

  • Inline in the timeline as a compact schedule row.
  • Entity header/status area as a persistent upcoming wake notice.
  • Possibly both: header summary + timeline details.

Notes

This should be a separate PR from the self-send wake rendering bug fix. That PR makes fired self-send wakes readable; this issue is about making upcoming scheduled wakes visible before they happen.

Lingua principale
TypeScript
Stelle
10.4k
Fork
399
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di electric-sql/electric

Tutte le issue di electric-sql/electric

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.