Skip to content

feat: Streaming + typing indicator for live token streaming#19

Open
PoshanP wants to merge 1 commit into
vercel_deploymentfrom
SCRUM-9/streaming-typing-indicator-show-live-token-streami-3
Open

feat: Streaming + typing indicator for live token streaming#19
PoshanP wants to merge 1 commit into
vercel_deploymentfrom
SCRUM-9/streaming-typing-indicator-show-live-token-streami-3

Conversation

@PoshanP

@PoshanP PoshanP commented Jan 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add real-time token streaming with "Thinking..." indicator before first token
  • Display blinking cursor while tokens are being received
  • Support streaming in both desktop and mobile chat layouts

Changes

  • New StreamingIndicator component with reusable ThinkingDots and StreamingCursor
  • SSE stream consumption in chat page for progressive message rendering
  • STREAMING_UI constants for animation delays and messages
  • Refactored duplicate indicator code into shared components

Test plan

  • Send a message in desktop chat view - verify "Thinking..." appears, then tokens stream with cursor
  • Send a message in mobile chat view - verify same behavior
  • Verify cursor disappears when streaming completes
  • Test error handling when stream fails

- Add StreamingIndicator component with ThinkingDots and StreamingCursor
- Implement SSE stream consumption in chat for real-time token display
- Show "Thinking..." indicator before first token arrives
- Display blinking cursor while tokens are streaming
- Add STREAMING_UI constants for animation delays and messages
- Support streaming in both desktop and mobile layouts
- Refactor duplicate code into reusable components
@vercel

vercel Bot commented Jan 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
thinkfolio Ready Ready Preview, Comment Jan 8, 2026 5:51pm

Comment thread app/chat-new/page.tsx
} finally {
reader.releaseLock();
}
}

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

too many duplicate code

@PoshanP PoshanP left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

remove duplicate code

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