Repository navigation
A conversation a routine spoke in last wears a small, light clock in its Bot's orb - #3019
Merged
Merged
Conversation
…'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
marked this pull request as ready for review
December 5, 2026 16:57
ataibarkai
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
mxmzb,
samjulien and
tylerslaton
as code owners
December 5, 2026 16:57
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.
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.
The third round of options Atai chose 22 from (07, the first pick, is first)
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 API:
lastTurnInitiatorThe conversation list didn't say who started the latest turn, so this adds it, additively:
ConversationSummary.lastTurnInitiatorand the socket'sConversationActivity.lastTurnInitiatorare optional open lists:person,routineortask. These are the same values the spec already uses for a turn'sinitiator.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
BotOrbgainsstartedBy?: "routine"(data-started-by), separate fromstate, because a conversation can be a routine's and unread at once. The clock lives in.bot-orb[data-started-by="routine"]::afterinstyles.css, beside the waiting arcs in::before:--bot-orb-color) mixed 80% with black.A trigger can later wear the same clock, or get one more name.
Where it runs
Boundary and audit
API and database
docs/api-and-migrations.md. This only adds: one optional, nullable response field onConversationSummary, and the same on the socket'sConversationActivity, both declaredx-extensible-enum. No database change and norelease-policy.jsonchange.bun run api:generatewas run. The bundle, the app's and the mobile app's generated clients, and the area files are committed together.bun run api:lintpasses. Theoasdiffandapi:live:diffchecks run in CI's API spec job; their tools aren't installed in this worktree.Changelog
API.
lastTurnInitiatoron a conversation in the list and on the socket's conversation activity. It says who started the turn the last message belongs to:person,routineortask.Web app and OpenBot Desktop.
Proof
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.routineSpokeLastis 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-byis set, and only on the routine's orb.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.🤖 Generated with Claude Code