Skip to content

fix(bots): let bots set a short timer as a one-time --once --by reminder - #46794

Merged
AmethystLiang merged 6 commits into
mainfrom
AmethystLiang/fix-short-timer-reminders
Nov 25, 2026
Merged

AmethystLiang merged 6 commits into
mainfrom
AmethystLiang/fix-short-timer-reminders

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Asked to "set a 10-minute timer", bots said they couldn't. Orca can already do it: a one-time automation with only a time. The text bots read said nothing but events could start an automation, so they refused. This PR fixes that text and makes the reminder read as a plain reminder in the CLI and in chat.

Files Added Deleted Net
Test 0 0 0 0
Prod 34 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​169 $\color{#cf222e}{\Huge{\mathbf{−}}}$​55 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​114

What Changed

Before: orca automations trigger-options listed events and then said "Nothing else can start an automation." The bot rules said to refuse when nothing listed fit. The --once rule described only "tell me when X / remind me if not by Y", so a bot asked for a timer said it couldn't and offered a recurring schedule.

After:

  • Bot-facing guidance (bot rules in bot-preamble.ts, the trigger-options footer, the no-connector refusal in bot-event-sources.ts, the automations create help, and the orca-cli skill's automations.md / bots.md) now says a plain reminder ("in 10 minutes", "at 3pm") is --once --by <ISO time with offset> with no --on. It also says the reminder usually runs within about a minute of its time (the scheduler checks once a minute), to give the offset in effect at that time (it can differ from today's across a daylight-saving change), and where its result goes. A reminder made while answering a Slack thread posts to that thread. One made in the bot's Chat stays in Orca.
  • CLI output: automations list/show/create/edit print a deadline-only wait as runs once at 2026-12-01 10:10 (-05:00) (local time with offset), not "on an event or at , whichever comes first". The local-time formatter moves from bot-items-format.ts to src/cli/output/local-time.ts so both use it.
  • Chat wait row (desktop and mobile, shared logic in automation-chat-row.ts): a reminder's "Then" line reads "Runs once at {{time}}", not "Runs once; at {{time}} if nothing came". When it fires, it no longer says "Nothing by {{time}}"; the row keeps its Wait over label and time. Adds one copy key, thenAt. A wait time with seconds keeps them ("5:00:30 PM"); a whole hour still reads "5 PM".

No engine, scheduler, or validation change.

Why

The engine and CLI already support this. Before changing anything, --once --by now+2m and now+10m with no --on were each accepted, fired within one 60 s scheduler tick of the deadline, delivered to the bot's chat, and were removed after the run. The gap was only in what the bot is told. Fixing the guidance is the smallest change that makes "remind me in N minutes" work from any bot. Checked against how comparable products handle this: they tell the model directly that a one-shot "in N minutes" is supported and how.

Alternatives considered: a relative form (--in 10m / relative --by). Not added, because --by already works and bots read the clock with date. Evidence that would justify it: bots computing wrong absolute times in practice. Sub-minute precision is out of scope; a reminder can be up to about a minute late.

Linked Issue

N/A (maintainer change from an internal request).

Visual Proof

Screenshot pending: the component-fixture renderer timed out on the build host (it is overloaded); I'll attach one here when it renders. Copy-level before/after for a plain reminder's wait row:

Before After
Then (pending) Runs once; at 5:10 PM if nothing came Runs once at 5:10 PM
Status (after it fired) Nothing by 5:10 PM (empty; the row shows Wait over and the time)
automations show once: runs once, on an event or at 2026-12-01T15:10:00.000Z, whichever comes first once: runs once at 2026-12-01 10:10 (-05:00)

Waits that have an event are unchanged.

Testing

  • Reproduced on a live bot before the change: --once --by with no --on at +2 min and +10 min fired on time and was delivered.

  • Result delivery was checked by reading the code. A wait made by a turn that a Slack thread owns, in a bot chat other than the Home Chat, is saved with toConversation (runs-in-caller-chat.ts), so its run's answer goes back to that thread. A wait made in the Home Chat has no toConversation, so its answer stays in Orca. The guidance says exactly this. Real Slack delivery is untested.

  • No unit tests: main's testing rule (AGENTS.md) excludes copy and formatting tests, so this PR's earlier ones were dropped when it was rebased. CI covers typecheck, lint and the bundled skill guide check. The guides were regenerated, and --check passes.

  • I manually tested these changes locally (not done: live bot behavior with the new wording is unverified; the live runs above were the before-change reproduction)

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Performance

None, because these are static strings and one extra on.length check when formatting a wait. The bot rules grow by about 200 bytes and trigger-options by about 100 bytes. Existing bots get the rules through the existing rules-update path, once.

Risk

The riskiest part is the wording change: a bot could over-apply "a time can start one" and set a one-time reminder where the owner wanted a recurring schedule. The rules keep "for anything recurring, use an automation" and the refusal still offers a schedule. The new thenAt key is translated in every locale. Back out with a plain revert; nothing is saved or migrated.

Level: Low

AI Disclosure

Review

Rebased onto main as one commit; review pending at the new head.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason (text before/after above; screenshot to follow)
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The change adds --once --by reminders to automation instructions and CLI usage. It adds a shared local-time formatter for CLI output and updates reminder timing in native chat rows. Ended wait rows retain the event rules that applied when they ended, so their status and wording can distinguish deadline-only reminders from event-based waits. Mobile rows use a dedicated scheduled-time formatter, and translations and a reminder fixture are added.

Merge Risk: Low · previous review 588db

This change lets bots set short one-time reminders and shows their run time in local time. The remaining concern is minor: bot guidance does not tell users that waits without a deadline expire after 30 days. It is safe to merge with that noted as a follow-up.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: bots can now set a short timer as a one-time --once --by reminder. The changeset updates bot guidance, the CLI output, and the chat wait row so a plain reminder is e…
Description check Passed The description follows the repository template closely. It has an ELI5 section, a What Changed section with before and after behavior, a Why section that explains the alternatives, a Testing section,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: bots can now set a short timer as a one-time --once --by reminder. The changeset updates bot guidance, the CLI output, and the chat wait row so a plain reminder is expressed as a one-time run with --by and no --on. The title uses the fix(bots): prefix and stays under 80 characters. It does not mention the CLI output or chat row changes, which are secondary.

Full details: Description check

Explanation

The description follows the repository template closely. It has an ELI5 section, a What Changed section with before and after behavior, a Why section that explains the alternatives, a Testing section, a Performance line, and a Risk section with a level and rollback plan. The Linked Issue section says N/A with a reason, which the template allows for maintainer changes. The Visual Proof section gives copy-level before and after text and says a screenshot is pending. That is a gap for a UI-facing change, and the template asks for attachments. The AI Disclosure section is empty, which is acceptable for an internal contributor. The Testing checkboxes are partly unchecked, and the manual live-bot test is marked not done.

Resolution

Attach the pending screenshot or video of the wait row, or the rendered before and after, to the Visual Proof section. Mark the Screenshots checklist item once it is attached.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 339f55b2-0307-4fc7-a717-42875e6d3862
Commits

Reviewing files that changed from the base of the PR and between 27c8405 and 588dbc1.

Files selected for processing: 3

  • skill-guides/orca-cli/references/automations.md
  • src/cli/skills/bundled-skill-guides.ts
  • src/main/bots/bot-preamble.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa605ec3-581f-4455-b012-117e006f2607
Commits

Reviewing files that changed from the base of the PR and between 6a936e6 and 3cb6b77.

Files selected for processing: 22

  • mobile/src/session/native-chat/transcript/MobileAutomationSavedRow.tsx
  • skill-guides/orca-cli/references/automations.md
  • skill-guides/orca-cli/references/bots.md
  • src/cli/automations/automation-event-trigger-spec.test.ts
  • src/cli/automations/automation-event-trigger-spec.ts
  • src/cli/automations/automation-event-triggers-cli.test.ts
  • src/cli/automations/automation-format.test.ts
  • src/cli/automations/automation-format.ts
  • src/cli/bots/bot-items-format.ts
  • src/cli/output/local-time.ts
  • src/cli/skills/bundled-skill-guides.ts
  • src/cli/specs/automations.ts
  • src/main/bots/bot-preamble.test.ts
  • src/main/bots/bot-preamble.ts
  • src/renderer/src/components/native-chat/automation-run/NativeChatWaitRow.tsx
  • src/renderer/src/components/native-chat/automation-run/automation-run-wording.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/shared/automations/automation-chat-row.test.ts
  • src/shared/automations/automation-chat-row.ts
  • src/shared/automations/automation-run-row-copy.ts
  • src/shared/bot-event-sources.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

Comment thread src/main/bots/bot-preamble.ts Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 390c23eb-913f-4896-a1b6-741fd419d1a8
Commits

Reviewing files that changed from the base of the PR and between 3cb6b77 and 4b1b09a.

Files selected for processing: 17

  • mobile/src/session/native-chat/transcript/MobileAutomationRowFrame.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatAutomationRunRow.tsx
  • src/cli/automations/automation-event-trigger-spec.test.ts
  • src/cli/automations/automation-format.test.ts
  • src/cli/automations/automation-format.ts
  • src/cli/output/local-time.ts
  • src/cli/specs/automations.ts
  • src/main/bots/bot-preamble.test.ts
  • src/main/bots/bot-preamble.ts
  • src/renderer/src/components/native-chat/automation-run/NativeChatAutomationRowFamily.fixture.tsx
  • src/renderer/src/components/native-chat/automation-run/NativeChatWaitRow.tsx
  • src/renderer/src/components/native-chat/messages/rows/NativeChatMessageRow.tsx
  • src/shared/automations/automation-chat-row.ts
  • src/shared/bots/bot-row-line.test.ts
  • src/shared/native-chat/native-chat-types.ts
  • src/shared/native-chat/transcript/native-chat-transcript-projection.test.ts
  • src/shared/native-chat/transcript/native-chat-transcript-projection.ts
Files skipped from review as they are similar to previous changes: 1

  • src/cli/specs/automations.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

Comment thread src/main/bots/bot-preamble.ts Resolved
Bot rules, trigger-options, the no-connector refusal, automations create
help and the orca-cli skill now say a plain reminder ("in 10 minutes",
"at 3pm") is --once --by <ISO time with offset> with no --on, and that it
runs within about a minute of its time. Its result stays in Orca in the
chat that made it, even when that chat answers a Slack thread; to tell
someone in Slack, add --results-to channel:<channel>.

automations list/show print a deadline-only wait as "runs once at <local
time (offset)>", and the chat wait row reads "Runs once at {{time}}" with
no "Nothing by" status once it fires. A wait time with seconds keeps them.

Rebased onto main as one commit; this PR's copy and formatting tests are
dropped per main's testing rule.
@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/fix-short-timer-reminders branch from 4b1b09a to c1639b8 Compare November 25, 2026 00:04

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5f7090c1-5e3a-4ed8-be0e-8b732896629b
Commits

Reviewing files that changed from the base of the PR and between 4b1b09a and c1639b8.

Files selected for processing: 15

  • mobile/src/session/native-chat/transcript/MobileAutomationRowFrame.tsx
  • mobile/src/session/native-chat/transcript/MobileAutomationSavedRow.tsx
  • mobile/src/session/native-chat/transcript/MobileNativeChatAutomationRunRow.tsx
  • skill-guides/orca-cli/references/automations.md
  • skill-guides/orca-cli/references/bots.md
  • src/cli/bots/bot-items-format.ts
  • src/cli/skills/bundled-skill-guides.ts
  • src/cli/specs/automations.ts
  • src/main/bots/bot-preamble.ts
  • src/renderer/src/components/native-chat/messages/rows/NativeChatMessageRow.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/shared/bot-event-sources.ts
  • src/shared/bots/bot-row-line.ts
  • src/shared/native-chat/transcript/native-chat-transcript-projection.ts
Files skipped from review as they are similar to previous changes: 3

  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/shared/bot-event-sources.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment thread src/main/bots/bot-preamble.ts Resolved
A wait made by a turn a Slack thread owns, in a bot chat other than the
Home Chat, carries toConversation, so its run's answer goes back to that
thread. Restore that in the bot rules and the automations guide, and drop
the --results-to channel: advice, which could post a second copy.
…ad answer

By default a wait made answering a Slack thread answers in that thread and
one made in the bot's Chat stays in Orca. --results-to only adds a separate
delivery: channel or linear posts a copy, and none posts no copy but leaves
the thread answer. Same wording in the bot rules, the automations guide
and the create help.
…es the answer

--results-to thread with --runs-in new answers in the event's thread and
runs in the chat that owns that thread when one is open, so it changes
where the wait runs. Name channel: and linear: as the copies, keep the
none note, and describe thread, in the automations guide and create help.
@AmethystLiang
AmethystLiang merged commit d710e5c into main Nov 25, 2026
62 checks passed
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