an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(hive): record WHICH build is running, not just which version
Chaitanya Giri885e281dcc83
diff --git a/src/main/hive.ts b/src/main/hive.tsindex 0ecb3cd6..1493d249 100644--- a/src/main/hive.ts+++ b/src/main/hive.ts@@ -313,11 +313,11 @@ export class HiveManager {* 022. No agent could observe that, several published conclusions had to be* withdrawn, and log.jsonl carried no app-start marker to notice the switch* from either. */- private _runtime: { version: string; packaged: boolean } | null = null;- setRuntimeInfo(info: { version: string; packaged: boolean } | null): void {+ private _runtime: { version: string; packaged: boolean; appPath?: string } | null = null;+ setRuntimeInfo(info: { version: string; packaged: boolean; appPath?: string } | null): void {this._runtime = info;}- runtimeInfo(): { version: string; packaged: boolean } | null {+ runtimeInfo(): { version: string; packaged: boolean; appPath?: string } | null {return this._runtime;}@@ -1266,7 +1266,7 @@ export class HiveManager {// us) was invisible to every investigation.const rt = this.runtimeInfo();const runtimeLine = rt- ? `RUNNING BUILD: Munder Difflin v${rt.version}, ${rt.packaged ? 'packaged app' : 'local dev build'}. Say this version if asked which one is running, and do not assume behaviour from an older one. A local dev build inherits the launching shell's environment (umask included) where a packaged app does not, so file modes and inherited env can legitimately differ between the two. \`log.jsonl\` records an \`app-start\` event on every launch, which is how you spot a restart or a build switch.`+ ? `RUNNING BUILD: Munder Difflin v${rt.version}, ${rt.packaged ? 'packaged app' : 'local dev build'}${rt.appPath ? `, from ${rt.appPath}` : ''}. Say this version if asked which one is running, and do not assume behaviour from an older one. A local dev build inherits the launching shell's environment (umask included) where a packaged app does not, so file modes and inherited env can legitimately differ between the two. \`log.jsonl\` records an \`app-start\` event on every launch, which is how you spot a restart or a build switch.`: '';// Item 11: god could not find the spawn queue. The mechanism has worked since// v0.4.4, but nothing told him it existed — the prompt said "spawn" withoutdiff --git a/src/main/index.ts b/src/main/index.tsindex e720ce23..8100f474 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -4767,7 +4767,7 @@ function bootstrapHiveServices(): void {hive.ensureHive();// Tell the hive what it is running inside, BEFORE anything spawns: the prompt// builder reads this, so an agent spawned earlier would never learn it.- hive.setRuntimeInfo({ version: app.getVersion(), packaged: app.isPackaged });+ hive.setRuntimeInfo({ version: app.getVersion(), packaged: app.isPackaged, appPath: app.getAppPath() });hive.setOrchestratorMaySpawn(readConfig().orchestratorMaySpawn === true);// An app-start marker in the event log. log.jsonl had twelve event kinds and// none of them meant "the app restarted", so a relaunch, and more importantly a@@ -4779,6 +4779,13 @@ function bootstrapHiveServices(): void {kind: 'app-start',version: app.getVersion(),packaged: app.isPackaged,+ // WHICH bundle, not just which version. Version plus packaged is not enough+ // to tell two builds apart: a stale copy in /Applications and a fresh one in+ // dist/ can report the same version and both be packaged, and picking the+ // wrong one by habit looks exactly like the new build being broken. Cost us+ // twice before this line existed.+ appPath: app.getAppPath(),+ exePath: process.execPath,electron: process.versions.electron,platform: process.platform});