Skip to content

Conversation

@arnautov-anton
Copy link
Contributor

@arnautov-anton arnautov-anton commented Jan 21, 2026

🎯 Goal

Add AI_STATE_STOP and adjust typewriter animation so that it stops when ai_indicator.stop event arrives.

This change should be probably ported to the AI SDK too.

@github-actions
Copy link

github-actions bot commented Jan 21, 2026

Size Change: +114 B (+0.04%)

Total Size: 290 kB

Filename Size Change
./dist/cjs/index.js 166 kB +114 B (+0.07%)
ℹ️ View Unchanged
Filename Size
./dist/audioProcessing-BbOs2wMd.js 1.32 kB
./dist/Channel-pqo4jV1s.js 24.4 kB
./dist/ChannelPreview-BNyNO58P.js 17.8 kB
./dist/cjs/emojis.js 3.29 kB
./dist/cjs/experimental.js 5.8 kB
./dist/cjs/mp3-encoder.js 1.27 kB
./dist/css/index.css 6.16 kB
./dist/css/v2/emoji-mart.css 1.84 kB
./dist/css/v2/emoji-replacement.css 300 B
./dist/css/v2/index.css 39.4 kB
./dist/css/v2/index.layout.css 22.8 kB
./dist/MessageInputContext-Buw2XInb.js 314 B

compressed-size-action

@isekovanic
Copy link
Contributor

isekovanic commented Jan 21, 2026

This change should be probably ported to the AI SDK too

This would not be that trivial, as the StreamingMessageView there does not really have access to any chat-related state. What can be done is possibly a forwarded ref (exposing an API to stop streaming when we want to) or something similar in that scenario


const indicatorStoppedListener = channel.on('ai_indicator.stop', (event) => {
const { cid } = event;
if (channel.cid === cid) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is useless but I'm keeping it.

@arnautov-anton arnautov-anton marked this pull request as ready for review January 21, 2026 14:46
@arnautov-anton arnautov-anton force-pushed the fix/stop-generating-animation branch from 341d81b to d0bfb10 Compare January 21, 2026 15:03
@arnautov-anton arnautov-anton merged commit 7777721 into master Jan 21, 2026
4 of 5 checks passed
@arnautov-anton arnautov-anton deleted the fix/stop-generating-animation branch January 21, 2026 15:10
arnautov-anton added a commit that referenced this pull request Jan 21, 2026
### 🎯 Goal

Add `AI_STATE_STOP` and adjust typewriter animation so that it stops
when `ai_indicator.stop` event arrives.

This change should be probably ported to the AI SDK too.
github-actions bot pushed a commit that referenced this pull request Jan 21, 2026
## [13.13.4](v13.13.3...v13.13.4) (2026-01-21)

### Bug Fixes

* **ai:** stop typewriter animation on `ai_indicator.stop` ([#2918](#2918)) ([9e25b3a](9e25b3a))
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.

4 participants