Skip to content

Add haptic feedback when streaming starts#2170

Merged
gary149 merged 1 commit intomainfrom
claude/funny-haptic-feedback-CeFn0
Mar 10, 2026
Merged

Add haptic feedback when streaming starts#2170
gary149 merged 1 commit intomainfrom
claude/funny-haptic-feedback-CeFn0

Conversation

@gary149
Copy link
Collaborator

@gary149 gary149 commented Mar 10, 2026

Summary

Added haptic feedback to provide tactile notification when a message stream begins, enhancing user experience by signaling the start of AI response generation.

Changes

  • New haptic function: Added streamStart() function to src/lib/utils/haptics.ts that triggers a distinctive three-pulse vibration pattern (50ms, 30ms, 50ms, 30ms, 80ms) to simulate a "machine starting up" feel
  • Integration: Imported and triggered streamStart() in the conversation page when a pending message stream begins, providing immediate haptic feedback to users

Implementation Details

  • The streamStart() function follows the existing haptics pattern with proper feature detection (navigator.vibrate check) and respects the global enabled and browser flags
  • The haptic feedback is triggered at the moment a stream becomes pending, giving users immediate tactile confirmation that their message is being processed
  • The vibration pattern uses varied pulse lengths to create a distinctive "startup" sensation distinct from other haptic feedback in the app

https://claude.ai/code/session_01Ewm55pEVHLfFzPHxmMyecw

Adds a multi-vibration "machine starting up" haptic pattern that fires
once when the first token of a response starts streaming in, similar to
ChatGPT's behavior. Uses navigator.vibrate([50, 30, 50, 30, 80]) for
three quick pulses that feel fun and responsive.

https://claude.ai/code/session_01Ewm55pEVHLfFzPHxmMyecw
@gary149 gary149 merged commit 46b7488 into main Mar 10, 2026
5 of 6 checks passed
@gary149 gary149 deleted the claude/funny-haptic-feedback-CeFn0 branch March 10, 2026 12:21
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