* Rotate the local bearer token and restart the sidecar so it takes effect. * Returns the refreshed connection. AI-client MCP configs must be re-issued * with the new token afterwards.
()
| 42 | * with the new token afterwards. |
| 43 | */ |
| 44 | rotateToken(): Promise<DesktopServerConnection> { |
| 45 | return ipcRenderer.invoke("executor:server:rotate-token"); |
| 46 | }, |
| 47 | /** |
| 48 | * Stop + restart the sidecar so settings changes take effect. |
| 49 | * Main reloads the window and returns the refreshed server connection. |