Skip to content

feat(cron): render scheduled reminders in TUI and expose fired events#204

Open
sailist wants to merge 2 commits into
MoonshotAI:mainfrom
sailist:haozhe/cron-refine
Open

feat(cron): render scheduled reminders in TUI and expose fired events#204
sailist wants to merge 2 commits into
MoonshotAI:mainfrom
sailist:haozhe/cron-refine

Conversation

@sailist
Copy link
Copy Markdown
Collaborator

@sailist sailist commented May 29, 2026

Summary

This PR improves the cron (scheduled reminder) experience by rendering fired reminders distinctly in the TUI, exposing cron events to SDK consumers, and clarifying user-facing documentation around task management.


1. Render scheduled reminders in TUI and expose fired events

Problem: Previously, cron-fired reminders were invisible during an active session and were skipped entirely during session replay, making it impossible for users to see what reminders had fired. Additionally, SDK clients had no way to observe cron events.

What was done:

  • Added CronMessageComponent to render cron transcript entries distinctly in the TUI.
  • Emitted cron.fired events from agent-core and exposed them via node-sdk.
  • Reported cron fire times with local ISO timestamps including timezone offsets.
  • Rendered cron_job and cron_missed origins during session replay instead of skipping them.
  • Handled warning events in the CLI and session event handler.
  • Added unit tests for TUI message flow and replay rendering.

2. Clarify user documentation for cron task management

Problem: The cron tool documentation did not clearly explain that users must ask the model to cancel or modify reminders, rather than managing them directly.

What was done:

  • Updated cron-create.md to instruct the model to proactively tell users how to cancel or modify reminders.
  • Updated cron-list.md to add a guideline that users cannot directly manage cron tasks.
  • Updated cron-delete.md to emphasize that users must ask the model to cancel reminders.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

sailist added 2 commits May 29, 2026 16:25
- add CronMessageComponent for distinct cron transcript entries in TUI\n- emit cron.fired events from agent-core and expose via node-sdk\n- report cron fire times with local ISO timestamps including timezone offsets\n- render cron_job and cron_missed origins during session replay instead of skipping\n- handle warning events in CLI and session event handler
- cron-create.md: instruct model to proactively tell users how to cancel/modify reminders\n- cron-list.md: add guideline that users cannot directly manage cron tasks\n- cron-delete.md: emphasize users must ask model to cancel reminders
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

🦋 Changeset detected

Latest commit: 534064a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@moonshot-ai/agent-core Minor
@moonshot-ai/kimi-code-sdk Minor
@moonshot-ai/kimi-code Minor
@moonshot-ai/migration-legacy Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 29, 2026

pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@534064a
npx https://pkg.pr.new/@moonshot-ai/kimi-code@534064a

commit: 534064a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant