Skip to content

A conversation a routine spoke in last wears a small, light clock in its Bot's orb - #3019

Merged
ataibarkai merged 2 commits into
mainfrom
claude/orb-routine-clock
Dec 5, 2026
Merged

ataibarkai merged 2 commits into
mainfrom
claude/orb-routine-clock

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Before and after

These come from a real browser running the panel's own code and stylesheet, through the browser test's fixture, so the names are made up. "Flights for next week" is Travel's conversation, where its routine spoke last; it is unread too. Before is main; after is this branch.

Conversations panel before and after, light and dark: on main, Flights for next week has only the waiting arcs; on this branch its orb also has a pale soft dial with one slim hand at one o'clock inside

On Atai's own Chats panel against OpenBot Cloud. Cloud doesn't send the field yet, so for this picture his routines' conversations were marked by hand, using the conversation ids from his routines list.

Atai's Chats panel, light and dark, with the pale dial and one hand inside the orbs of his routines' conversations
The third round of options Atai chose 22 from (07, the first pick, is first) Contact sheet of nine clock variants in the Conversations panel, light and dark

What this changes

Atai wants people to tell a routine's conversations apart from their own at a glance. So a conversation where a routine spoke last, and nobody has written since, now shows a small clock inside its Bot's orb in the Conversations panel.

  • The clock. A pale, soft-edged dial inside the orb (a disc of white light at under a third of its strength, a little brighter just inside its edge and fading out, with no drawn line) and one slim hand on a small pivot at one o'clock, in the orb's own color pressed a fifth deeper. It is all drawn inside the orb, much lighter than a dark mark. Atai picked it (22) from three rounds of options, 24 variants in total, after finding the first pick (07, two dark hands and a sweep) too intense.
  • It sits beside the waiting arcs. A routine's conversation that is also unread shows both: the arcs outside the orb at its upper right, and the clock inside.
  • When it shows. The last message is a Bot's, in a turn a routine started. A routine, a check-in and a goal all count as "routine". When the person writes, their message starts a turn of their own and the clock goes. It shows in both the compact and detailed views. Like the arcs, it needs a single orb, so group conversations, skins that draw faces, and the rows under a Bot in the Bots panel draw no clock.
  • It arrives once. A 200ms fade, and nothing moves under reduced motion.

The API: lastTurnInitiator

The conversation list didn't say who started the latest turn, so this adds it, additively:

  • ConversationSummary.lastTurnInitiator and the socket's ConversationActivity.lastTurnInitiator are optional open lists: person, routine or task. These are the same values the spec already uses for a turn's initiator.
  • A server that predates the field sends nothing, and the app then shows nothing. A value the app doesn't know is treated the same way.
  • If a live message arrives without the field, the row's old value is cleared, so a routine's clock never outlives the routine's message.

Nothing shows until the server fills the field. That's a follow-up PR in openbot-backend, which moves its copy of the spec once this merges.

How it's drawn

BotOrb gains startedBy?: "routine" (data-started-by), separate from state, because a conversation can be a routine's and unread at once. The clock lives in .bot-orb[data-started-by="routine"]::after in styles.css, beside the waiting arcs in ::before:

  • Paint: white light, with the hand in the orb's own color (--bot-orb-color) mixed 80% with black.
  • Shape: a mask makes the soft dial a radial gradient and cuts the hand from an SVG, all inside the orb.

A trigger can later wear the same clock, or get one more name.

Where it runs

  • New state that outlives a request? None in the app. The value comes from the server.
  • What happens on the second replica? Nothing different: the app only reads.
  • Anything serialised? One new optional field in a list answer and a socket message.
  • Anything fanned out to a browser? The socket's activity message may carry the new field.
  • New listener, port, or schedule? No.

Boundary and audit

  • No acting call, refusal or failure is touched.
  • Nothing new is trusted from the client.

API and database

  • I read docs/api-and-migrations.md. This only adds: one optional, nullable response field on ConversationSummary, and the same on the socket's ConversationActivity, both declared x-extensible-enum. No database change and no release-policy.json change.
  • bun run api:generate was run. The bundle, the app's and the mobile app's generated clients, and the area files are committed together. bun run api:lint passes. The oasdiff and api:live:diff checks run in CI's API spec job; their tools aren't installed in this worktree.

Changelog

API.

  • Added: lastTurnInitiator on a conversation in the list and on the socket's conversation activity. It says who started the turn the last message belongs to: person, routine or task.

Web app and OpenBot Desktop.

  • Added: a conversation a routine spoke in last shows a small clock in its Bot's orb in the Conversations panel, once the server says so.

Proof

  • Unit tests:
    • channel-event-patch.test.ts: a routine's turn marks the row and a person's next message clears it. A message without the field clears it. A pin, a rename or a busy signal leaves it alone. routineSpokeLast is true only for a Bot's message in a routine's turn.
    • compact-conversations.test.tsx: the clock appears in compact and detailed rows, together with the arcs, and not on groups, face skins or rows under a Bot.
    • bot-orb.test.tsx: data-started-by is set, and only on the routine's orb.
  • New real-browser case in app/tests/bots-panel-waiting-arcs.test.tsx, run in Chromium and WebKit, light and dark. It draws a routine conversation that is also unread, then screenshots its orb with the clock and again without it. The orb must differ inside and not change by a single pixel outside it, the arcs included. Before each screenshot it waits for the orb's entrance animations to finish. If the clock's ink is pushed past the orb's edge, the test fails: 112 pixels changed outside. In practice the clock changes the orb by up to 98 levels inside (Chromium) or 111 (WebKit), and by 0 outside.
  • Seen live against OpenBot Cloud in Atai's Chats panel, with his six routines' conversations marked by hand, since Cloud doesn't send the field yet.

🤖 Generated with Claude Code

…'s orb

The conversation list and its live updates gain lastTurnInitiator: who started the turn the last
message belongs to (person, routine or task, an open list). Optional and additive: a server that
predates it sends nothing, and the app then draws nothing. With a Bot's message last in a routine's
turn, the Conversations panel draws a clock inside the Bot's orb: two fine hands at nine o'clock
in the orb's own foot color, pressed deep, and a faint sweep behind the long hand, just reaching
twelve. Nothing is drawn past the orb's edge, so it sits beside the waiting arcs. A live message
that says nothing of who started its turn clears it, so a routine's clock never outlives the
routine's message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lock, lighter than the first

Atai found the first clock (two dark hands and a sweep) too intense and picked a lighter one from a
third round: a disc of white light at under a third of its strength, brighter just inside its edge
and fading out with no drawn line, and one slim hand on a small pivot at one o'clock in the orb's
own color pressed a fifth deeper. Still all inside the orb, beside the waiting arcs. The orb no
longer needs its foot color for it. The browser test now waits for the orb's entrances to settle
before comparing it with and without the clock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ataibarkai ataibarkai changed the title A conversation a routine spoke in last wears a small clock in its Bot's orb A conversation a routine spoke in last wears a small, light clock in its Bot's orb Dec 5, 2026
@ataibarkai
ataibarkai marked this pull request as ready for review December 5, 2026 16:57
@ataibarkai
ataibarkai merged commit 7953497 into main Dec 5, 2026
42 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