Skip to content

Show one spinner for the turn of the agent - #192

Merged
splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:turn-indicator
Nov 18, 2026
Merged

splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:turn-indicator

Conversation

@splitbrain-bot

Copy link
Copy Markdown

The spinner belonged to the last message. assistant-ui shows it while that message runs and ends in something other than text or reasoning. So it went away while the agent paused after a sentence, and it stayed under a sub agent card after the turn ended, beside the spinner of the card.

Change: the per-message indicator is off. The thread shows one spinner under the last message while the turn runs, from the send until the agent hands the conversation back, whatever the last message holds. It does not show while a permission request waits for an answer, or when only background work runs.

Tests:

  • The spinner test of thread.test.ts checks that the spinner shows before the first text, stays after it, and goes when the turn ends.
  • The sub agent test checks that no turn spinner shows while only the sub agent runs.

The spinner belonged to the last message and showed only while that message ran and ended in something other than
text. So it went away while the agent paused after a sentence, and it stayed under a sub agent card after the turn
ended, beside the spinner of the card. The thread now shows one spinner under the last message from the send until
the agent hands the conversation back, whatever the last message holds.
@splitbrain
splitbrain merged commit a0da180 into splitbrain:main Nov 18, 2026
@splitbrain-bot
splitbrain-bot deleted the turn-indicator branch November 18, 2026 17:23
splitbrain added a commit that referenced this pull request Nov 22, 2026
A pull request that was merged before its run started got a run with the ref of the base branch. That run joined the
concurrency group of main and cancelled the run of the merge commit (merge of #192), so no image was built for it. The
run then failed, because its token could not write the build cache. Pull request runs are now grouped by their number,
and a refused write to the cache of GitHub Actions no longer fails the image build.
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.

2 participants