Skip to content

Migrate conversation state to upstream @pipecat-ai/client-react#103

Open
Regaddi wants to merge 2 commits intomainfrom
cst/pipecat-react-conversation
Open

Migrate conversation state to upstream @pipecat-ai/client-react#103
Regaddi wants to merge 2 commits intomainfrom
cst/pipecat-react-conversation

Conversation

@Regaddi
Copy link
Contributor

@Regaddi Regaddi commented Mar 10, 2026

Summary

  • Replaces the local conversation state management (zustand store, bot output cursor, ConversationProvider event orchestration) with the upstream implementation now available in @pipecat-ai/client-react ^1.2.0
  • Removes ~5,000 lines of local code including stores, types, tests, and test helpers that are now upstream concerns
  • Preserves backwards compatibility: ConversationProvider becomes a no-op passthrough, useConversation is a deprecated alias for usePipecatConversation, and all conversation types are re-exported from the upstream package

@Regaddi Regaddi self-assigned this Mar 10, 2026
@vercel
Copy link

vercel bot commented Mar 10, 2026

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

Project Deployment Actions Updated (UTC)
voice-ui-kit-console-example Ready Ready Preview Mar 12, 2026 3:32pm
voice-ui-kit-docs Ready Ready Preview Mar 12, 2026 3:32pm

Request Review

Regaddi added 2 commits March 12, 2026 16:30
…eact

Conversation state management (stores, types, provider, hook, and tests)
now lives in @pipecat-ai/client-react. This removes ~2500 lines of local
code (zustand store, botOutput cursor, ConversationProvider, tests) and
re-exports the upstream implementations to preserve the public API.

- ConversationProvider replaced with a deprecated no-op shim
- usePipecatConversation and types re-exported from client-react
- zustand dependency removed
- Local tests removed (coverage now lives upstream)
Use re-export alias for deprecated useConversation instead of
import+const pattern. Move static array to module scope in stories.
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