[PR #11725] Add spinner animation for Task tool #13913

Closed
opened 2026-02-16 18:18:44 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11725

State: closed
Merged: Yes


Summary

Added a spinner animation to the Task tool component that displays while the task is not complete (pending status).

Changes

  • Added spinner prop to BlockTool component in packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
  • Spinner appears in place of the icon/title area when the task is pending
  • Uses the same spinner component and animation style as dialog-session-list.tsx
  • Respects the animations_enabled setting from KV store (shows fallback when animations are disabled)
  • Updated Task component to pass spinner={isPending()} based on part.state.status

How it works

When a Task tool is in "pending" state, the BlockTool will render an animated spinner (using opentui-spinner/solid) next to the title instead of a static icon. Once the task completes, it switches back to the normal title display.

This provides better visual feedback to users while tasks are running.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11725 **State:** closed **Merged:** Yes --- ## Summary Added a spinner animation to the Task tool component that displays while the task is not complete (pending status). ## Changes - Added `spinner` prop to `BlockTool` component in `packages/opencode/src/cli/cmd/tui/routes/session/index.tsx` - Spinner appears in place of the icon/title area when the task is pending - Uses the same spinner component and animation style as `dialog-session-list.tsx` - Respects the `animations_enabled` setting from KV store (shows fallback `⋯` when animations are disabled) - Updated Task component to pass `spinner={isPending()}` based on `part.state.status` ## How it works When a Task tool is in "pending" state, the BlockTool will render an animated spinner (using `opentui-spinner/solid`) next to the title instead of a static icon. Once the task completes, it switches back to the normal title display. This provides better visual feedback to users while tasks are running.
yindo added the pull-request label 2026-02-16 18:18:44 -05:00
yindo closed this issue 2026-02-16 18:18:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13913