Show upcoming scheduled wakes with live countdowns

オープン
#4,462 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
frontend

調査の方向性

まず、manifest の schedule 行を読み取る agent UI のタイムラインまたはエンティティヘッダーを見つけます。保留中の future_send 行、自己ターゲットのマッチング、cron 行を追跡し、次に既存の runtime cron helper が browser-safe か、または export されているかを確認します。完了条件は、保留中の wake が countdown または cron の詳細付きで視覚的に要約され、別個の fired self-send rendering fix と重複しないことです。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
10.4k
フォーク
399
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

electric-sql/electric のほかの issue

electric-sql/electric の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。