Show upcoming scheduled wakes with live countdowns

未关闭
#4,462 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
frontend

调研方向

先定位读取 manifest schedule 行的 agent UI 时间线或实体标头。跟踪待处理的 future_send 行、自我目标匹配和 cron 行,然后检查现有的 runtime cron helper 是否适用于浏览器,或是否已导出。完成标准是:待处理的唤醒会以倒计时或 cron 详细信息进行可见汇总,同时不与单独的 fired self-send 渲染修复重叠。

由索引模型根据 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

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

electric-sql/electric 的其他 Issue

查看 electric-sql/electric 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。