feat: external goosed server (#5978)

supports connecting to an external goosed in client/server mode
This commit is contained in:
Michael Neale
2025-12-15 14:04:39 +11:00
committed by GitHub
parent 108ffad4a4
commit 208417e751
10 changed files with 334 additions and 83 deletions
+4 -4
View File
@@ -13,14 +13,14 @@ const App = lazy(() => import('./App'));
if (!isLauncher) {
console.log('window created, getting goosed connection info');
const baseUrl = await window.electron.getGoosedHostPort();
if (baseUrl === null) {
const gooseApiHost = await window.electron.getGoosedHostPort();
if (gooseApiHost === null) {
window.alert('failed to start goose backend process');
return;
}
console.log('connecting at', baseUrl);
console.log('connecting at', gooseApiHost);
client.setConfig({
baseUrl,
baseUrl: gooseApiHost,
headers: {
'Content-Type': 'application/json',
'X-Secret-Key': await window.electron.getSecretKey(),