KamoCRM

Mount SoftphoneProvider above ToolDock so tool windows can read it

Fixkamo-internal
Shipped
26 ஏப்ரல், 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing