Skip to content

Remove redundant livekit-client pnpm override - #249

Merged
tadaspetra merged 1 commit into
mainfrom
remove-livekit-client-override
Aug 3, 2026
Merged

Remove redundant livekit-client pnpm override#249
tadaspetra merged 1 commit into
mainfrom
remove-livekit-client-override

Conversation

@tadaspetra

Copy link
Copy Markdown
Collaborator

Summary

Four examples pinned livekit-client to 2.16.1 under pnpm.overrides. The pin is a no-op: @elevenlabs/client@1.17.0 already depends on livekit-client at an exact 2.16.1, not a range, so the override just restated the version the SDK forces. Removing it lets the SDK own that version instead of every example having to track it.

Verified by resolving the tree with the override gone — all four examples still install livekit-client 2.16.1:

@elevenlabs/react 1.12.0
└─┬ @elevenlabs/client 1.17.0
  └── livekit-client 2.16.1

The original reason for the pin is also gone server-side. livekit.rtc.elevenlabs.io/rtc/v1/validate, the path whose 404s motivated the pin, now answers 400 join_request is required. That is moot while the SDK hard-pins 2.16.1, but it means there is no longer a known-broken version to defend against.

Removed from setup.sh and example/package.json in:

  • agents/nextjs/quickstart
  • agents/nextjs/guardrails
  • agents/expo/quickstart
  • speech-engine/nextjs/quickstart

Also dropped the instruction to add the pin from speech-engine/nextjs/quickstart/PROMPT.md and the mention in the scaffold skill's reference.md, so a regeneration run does not reintroduce it.

Dependencies were re-resolved from scratch (lockfiles deleted) and the setup-managed versions bumped to current latest, matching what a fresh setup.sh produces: @elevenlabs/react 1.12.0, @elevenlabs/elevenlabs-js 2.60.0, plus openai 7.3.0 and tsx 4.23.5 for speech-engine.

Test plan

Verified locally:

  • next build passes for all three Next.js examples
  • tsc --noEmit passes for the Expo example
  • npx prettier . --check and ruff check . both pass
  • livekit-client still resolves to 2.16.1 in all four examples
  • /api/conversation-token returns a real token in both agents examples, and those tokens validate 200 success against livekit.rtc.elevenlabs.io/rtc/validate
  • speech-engine /api/chat works on the openai 6 → 7 major bump

Not covered:

  • A real browser voice session with a microphone
  • speech-engine voice path in server.mts — the ELEVENLABS_SPEECH_ENGINE_ID in my local .env returns 404 from the API, so that resource needs recreating before it can be exercised

Made with Cursor

@elevenlabs/client depends on livekit-client at an exact 2.16.1, so the
override only restated the version the SDK already forces. Dropping it
lets the SDK own that version going forward instead of each example
needing to track it. Also refreshes the setup-managed dependencies to
current latest, as a fresh setup.sh run would.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tadaspetra
tadaspetra merged commit a413a7a into main Aug 3, 2026
3 checks passed
@tadaspetra
tadaspetra deleted the remove-livekit-client-override branch August 3, 2026 18:55
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