Mount SoftphoneProvider above ToolDock so tool windows can read it

Fixkamo-internal
Shipped
April 26, 2026 at 10:14 PM UTC
Author
kamo
Commit
14c2e06

Opening the Softphone popup crashed the page with "This page couldn't load" because tool windows mount inside ToolDock, which lives in ToolProviders — a SIBLING of AuthenticatedToolWrapper. The SoftphoneProvider was nested inside AuthenticatedToolWrapper, so SoftphonePanel was rendered outside the context, and useSoftphone() threw "must be used inside <SoftphoneProvider>". Move SoftphoneProvider up into ToolProviders, wrapping both `children` (the page tree + AuthenticatedToolWrapper) and `<ToolDock />`. The session hook gracefully no-ops when the user isn't authenticated yet (API calls return 401 and the SDK init bails), so unconditional mounting is safe.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing