Plugin UI code gains React context hooks for accessing host, project, and session data
Claude Code's plugin UI framework now includes new provider components, one acting like a SessionProvider and one like a HostProjectProvider, along with useHost and useProject hooks for reading their data. Using either hook outside of its matching provider now throws a clear error message telling the developer it must be called inside a <SessionProvider /> or <HostProjectProvider />.
This gives plugin UI developers a standard, safe way to access host, project, and session information from their components, with a clear error instead of confusing behavior if they're used in the wrong place.