Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

Fix OrkasOpen startup import order

wyt9467388f126d
diff --git a/src/main/index.ts b/src/main/index.ts
index 01525f10..5cc5b258 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -36,11 +36,8 @@ import { app, BrowserWindow, Menu, ipcMain, nativeImage, protocol, session, shel
// container, runs the one-shot PC/data → <container>/data migration, and
// sets process.env.ORKAS_WORKSPACE_ROOT. Must be the FIRST project import
// — any module loaded before this would not see the env var. See
-// install-data-root.ts header for why the side effect lives at load time
-// rather than in index.ts body (esbuild CJS hoists imports → body runs
-// after paths.ts loads, which is too late to set the env var).
-// eslint-disable-next-line @typescript-eslint/no-require-imports
-require('./install-data-root.cjs');
+// install-data-root.cjs header for why the side effect lives at load time.
+import './install-data-root.cjs';
// Force the user-visible app name to "Orkas" before anything else
// reads it. In dev (running `electron .`) Electron defaults to the
diff --git a/src/renderer/modules/boot.js b/src/renderer/modules/boot.js
index af487b91..a6102fdf 100644
--- a/src/renderer/modules/boot.js
+++ b/src/renderer/modules/boot.js
@@ -250,7 +250,6 @@ async function initUser() {
function setView(view, cid, opts = {}) {
if (currentView !== view || (view === 'conversation' && currentCid !== cid)) {
_bootLog.info('view change', { view, cid: cid || undefined });
- }
}
currentView = view;
_saveLastView(view, cid);
@@ -404,3 +403,4 @@ function setView(view, cid, opts = {}) {
currentCid = null;
}
if (typeof renderProjectsSection === 'function') renderProjectsSection();
+}