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.

review: hoist setCodingProjectDir to static import in bus.ts

wytff62ce25de34
diff --git a/src/main/features/group_chat/bus.ts b/src/main/features/group_chat/bus.ts
index 8e07f4f6..aea2db72 100644
--- a/src/main/features/group_chat/bus.ts
+++ b/src/main/features/group_chat/bus.ts
@@ -28,7 +28,7 @@ import * as fs from 'node:fs';
import {
Actor, ActorKind, COMMANDER_ID, USER_ID, RESERVED_IDS,
actorSessionId, addMember, ensureAgentMember, readMembers, seedReservedActors,
- setStatus, markInFlight, readState, transitionStatus,
+ setStatus, markInFlight, readState, transitionStatus, setCodingProjectDir,
} from './state';
import {
GroupMessage, appendVisible, readSlice, buildReplayPrefix,
@@ -1994,7 +1994,6 @@ async function _syncCodingProjectDirWithWorkspace(
if (cur.coding_project_dir_explicit) return; // sticky
if (cur.coding_project_dir === wsPath) return; // already in sync
const oldDir = cur.coding_project_dir || '';
- const { setCodingProjectDir } = await import('./state');
await setCodingProjectDir(uid, cid, wsPath, { explicit: false });
if (oldDir && oldDir !== wsPath) {
// CLI session bindings reference the OLD cwd. claude code keys