Skip to content

Fold a Bot's work in the conversation, and shimmer a step while it runs - #2201

Merged
davidmckayv merged 1 commit into
mainfrom
collapse-work-cards
Nov 25, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
collapse-work-cards

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What

A Bot asked for the day's top articles on a news site ran one command, and the conversation drew it as a terminal card holding every line it printed. The answer sat below a screen of raw output.

Every step of a Bot's work is now one folded line saying what was done, which the person opens for the detail. Opening it shows the card exactly as before.

Now folded (new):

  • A command on the Bot's computer (computer_run_command): "Ran a command ", opening to the terminal block (output, exit, open-in-terminal).
  • A coding harness's command (Bash), file edit (Edit, MultiEdit), new file (Write) and plan (TodoWrite): "Edited a file greet.py +1 −1", "Updated the to-dos 2 of 4 done", and so on, opening to the diff, output or checklist.

Already folded, unchanged: tool and app groups ("Used Gmail"), browsing ("Browsed dev.to"), searches and page reads, file reads, writes and listings, subtasks, hand-offs to another Bot, server tool lines.

Stay in view: the reply text, approval cards, connect and sign-in cards, questions, help requests, a sent file, settings cards, gallery components, a started task.

A failed or blocked step says so on its line ("Ran a command, exit 2", "Blocked: Run a command You declined it."), still folded.

Same look as the app's folds

The lines are the app's existing ToolLine: same chevron, type, spacing and tokens as "Used Gmail". No new visual design. Opened, the card sits in the same indented column a group opens to.

Open state

  • Folded by default, live, after a reload and when replaying a conversation.
  • A line the person opens stays open while the page is open, even if the SDK draws its renderer again (remembered by tool call id for the page; a reload starts folded).

Shimmer while running

A running step's line has a soft band of light sweeping across it, left to right at an even pace, and goes still when the step finishes. It is a mask over the words rather than a gradient fill, so they keep their own colours in light and dark and never go transparent. It is off under reduced motion. It replaces the slow pulse on .tool-line-running, which every running line and "Thinking" use. The earlier sweep that the pulse replaced looked like blinking because a narrow band darted across and then stopped. This band is wide, never stops, takes 2.4 s per pass, and keeps the words at 55% or more.

Tests

  • app/tests/work-folded.test.tsx (new, real transcript, real renderers): the command line is folded with its summary and opens on click, stays open when drawn again, folds after a reload, shimmers while running and stops when done. It also covers a failed command's line, the coding command, edit, write and plan folding, and a sent file staying in view. Red on main: 6 fail ("Ran a command" is drawn open). Green here: 6 pass.
  • app/tests/tool-line-reduced-motion.test.tsx (updated, real Chromium and optionally WebKit): the sweep runs in 2 to 3 s at a linear pace, words stay drawn, a finished line has no mask or motion, and nothing moves under reduced motion. Red on main: the sweep cases fail (tool-line-pulse). Green here.
  • app/tests/work-folded-layout.test.tsx (new, real browser, app stylesheet): a conversation with a long command, a browsing group, a Gmail group, a sent file, an answer and a pending approval. It runs in Chromium and WebKit, light and dark, at 1440 px and 390 px. Only the work is folded, the file, answer and approval are visible, nothing scrolls sideways, the opened command fits the column, and the running line shimmers. 16 pass with OPENBOT_APP_ENGINES=chromium,webkit.

The computer panel is not changed.

A Bot asked for the day's top articles ran one command, and the conversation
drew it as a terminal card with every line it printed, so the answer sat below
a screen of raw output.

Every step of a Bot's work is now one line saying what was done, which the
person opens for the detail: a command on its computer, a coding harness's
command, file edit, new file and plan, alongside the searches, page reads,
app calls and browsing that already folded. Opening a line shows the card as
it was. The reply, approvals, sign-in and connect cards, questions, a sent
file and settings cards stay in view.

A line the person opens stays open while the page is open, even when the
renderer draws it again. A reload or a replayed conversation starts folded.

A running step's line now has a soft band of light sweeping across it, drawn
with a mask so the words keep their own colours and stay readable; it stands
still under reduced motion and once the step is done.
@davidmckayv
davidmckayv merged commit 25d50a1 into main Nov 25, 2026
23 checks passed
@davidmckayv
davidmckayv deleted the collapse-work-cards branch November 25, 2026 18:07
davidmckayv added a commit that referenced this pull request Nov 25, 2026
Unreleased gains, from the code of each change since rc.5 (OpenBot main
a9ba3fe to 25d50a1, and the server since rc.5's): a Bot's work folded with a
shimmer on the running step (#2201), long tasks that keep going instead of
stopping as too long (#2184), a push to your phone when a Bot finishes while
you're away and a conversation marked read only while it's seen (#2192), an
invited address with no account signing up (#2187), the version on screen on
OpenBot Cloud (#2197), Setup's model row as the reader's AI (#2185), Admin's
managed-updates and favicon requests (#2186), the screen guide's Open apps and
Every Bot, the pre-upgrade backup of every database with a restore command,
and the API's invitationSignUp and setup checklist wording.

release-policy.json: fromVersions adds v1.2.0-rc.5 and database.from adds its
last migration, 0181_organization_ai_sign_in_credentials.
davidmckayv added a commit that referenced this pull request Nov 25, 2026
Unreleased gains, from the code of each change since rc.5 (OpenBot main
a9ba3fe to 25d50a1, and the server since rc.5's): a Bot's work folded with a
shimmer on the running step (#2201), long tasks that keep going instead of
stopping as too long (#2184), a push to your phone when a Bot finishes while
you're away and a conversation marked read only while it's seen (#2192), an
invited address with no account signing up (#2187), the version on screen on
OpenBot Cloud (#2197), Setup's model row as the reader's AI (#2185), Admin's
managed-updates and favicon requests (#2186), the screen guide's Open apps and
Every Bot, the pre-upgrade backup of every database with a restore command,
and the API's invitationSignUp and setup checklist wording.

release-policy.json: fromVersions adds v1.2.0-rc.5 and database.from adds its
last migration, 0181_organization_ai_sign_in_credentials.
davidmckayv added a commit that referenced this pull request Nov 25, 2026
Unreleased gains everything since 1.2.0-rc.5, written from the code, including #2201, #2196 and #2204. release-policy.json: fromVersions adds v1.2.0-rc.5, database.from adds 0181_organization_ai_sign_in_credentials, database.to moves to 0182_withdraw_default_source_imports.
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