You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(bots): let bots set a short timer as a one-time --once --by reminder - #46794
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)
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
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.
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.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What Changed
Before:
orca automations trigger-optionslisted events and then said "Nothing else can start an automation." The bot rules said to refuse when nothing listed fit. The--oncerule 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-preamble.ts, thetrigger-optionsfooter, the no-connector refusal inbot-event-sources.ts, theautomations createhelp, and theorca-cliskill'sautomations.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.automations list/show/create/editprint a deadline-only wait asruns 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 frombot-items-format.tstosrc/cli/output/local-time.tsso both use it.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+2mandnow+10mwith no--onwere 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--byalready works and bots read the clock withdate. 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:
automations showWaits that have an event are unchanged.
Testing
Reproduced on a live bot before the change:
--once --bywith no--onat +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 notoConversation, 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
--checkpasses.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.lengthcheck 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
thenAtkey 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
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reason (text before/after above; screenshot to follow)pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)