Hook to manage runtime selection and service manager lifecycle.
Uses MutableServiceManager to maintain a stable serviceManager reference,
preventing Notebook2 from re-rendering when runtimes are switched.
This is crucial for UX - prevents cell flickering and scroll position loss.
Hook to manage runtime selection and service manager lifecycle.
Uses MutableServiceManager to maintain a stable serviceManager reference, preventing Notebook2 from re-rendering when runtimes are switched. This is crucial for UX - prevents cell flickering and scroll position loss.