Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(agents): make the hovering Gigi solid so nobody walks through it in the office
rubenluetke10-beepca45810069ac
diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsxindex c2ae6c54c6..e931d1d99c 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx@@ -28,7 +28,7 @@ import type { TrailPoint } from "../companion/trail";import { stepMover, stepMoverAvoiding, turnToward, WALK_SPEED, type Mover } from "./officeMotion";import { createRng, planFor, type ActivityKind, type Plan, type Pose, type SpotBook } from "./officeBehavior";import { player, useOfficeStore } from "./officeStore";-import { agentPositions, bodiesExcept, floatingAgents, seatedAtDesk } from "./walkerRegistry";+import { agentPositions, bodiesExcept, seatedAtDesk } from "./walkerRegistry";/** The agent's symbol walks behind it as a little pet, about a fifth of its height. */export const PET_SIZE_M = 0.26;@@ -135,7 +135,6 @@ function Walker({ agent, desk, ctx, arrivesByElevator, awake, reduced, selected,ctx.book.release(agent.agentId);agentPositions.delete(agent.agentId);seatedAtDesk.delete(agent.agentId);- floatingAgents.delete(agent.agentId);}, [ctx.book, agent.agentId]);const pet = useMemo(() => ({ ...resolveCompanion(agent.agentId, agent.figure?.companion), sizeM: PET_SIZE_M, followDistanceM: PET_FOLLOW_M }),[agent.agentId, agent.figure?.companion]);@@ -199,7 +198,6 @@ function Walker({ agent, desk, ctx, arrivesByElevator, awake, reduced, selected,drive.current.speed = 0;}agentPositions.set(agent.agentId, { x: m.x, z: m.z });- if (isGigi) floatingAgents.add(agent.agentId);if (phase.current === "dwell" && (p.kind === "work" || p.kind === "desk")) seatedAtDesk.add(agent.agentId);else seatedAtDesk.delete(agent.agentId);if (group.current) group.current.position.set(m.x, 0, m.z);diff --git a/jarvis/ui/web/frontend/src/components/society/office/walkerRegistry.test.ts b/jarvis/ui/web/frontend/src/components/society/office/walkerRegistry.test.tsnew file mode 100644index 0000000000..253130212e--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/office/walkerRegistry.test.ts@@ -0,0 +1,13 @@+import { afterEach, describe, expect, it } from "vitest";+import { agentPositions, bodiesExcept } from "./walkerRegistry";++describe("bodiesExcept", () => {+ afterEach(() => agentPositions.clear());++ it("counts every agent, the hovering Gigi included, but never the caller itself", () => {+ agentPositions.set("gigi", { x: 1, z: 1 });+ agentPositions.set("walker", { x: 2, z: 2 });+ expect(Array.from(bodiesExcept(null, null))).toEqual([{ x: 1, z: 1 }, { x: 2, z: 2 }]);+ expect(Array.from(bodiesExcept("walker", { x: 5, z: 5 }))).toEqual([{ x: 1, z: 1 }, { x: 5, z: 5 }]);+ });+});diff --git a/jarvis/ui/web/frontend/src/components/society/office/walkerRegistry.ts b/jarvis/ui/web/frontend/src/components/society/office/walkerRegistry.tsindex ad7bb0662b..d5ca187a58 100644--- a/jarvis/ui/web/frontend/src/components/society/office/walkerRegistry.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/walkerRegistry.ts@@ -13,11 +13,11 @@ export const knownAgents = new Set<string>();/** Agents sitting at their own desk right now — their monitor shows their chat. */export const seatedAtDesk = new Set<string>();-/** Agents that fly (Gigi) instead of walking: nobody has to step around them. */-export const floatingAgents = new Set<string>();--/** Every walking body except `selfId`: the agents on foot plus, optionally, the person's character. */+/**+ * Every body except `selfId`: all agents plus, optionally, the person's character.+ * Gigi counts too — it hovers at chest height, so walking "under" it would pass through it.+ */export function* bodiesExcept(selfId: string | null, player: Point | null): Generator<Point> {- for (const [id, p] of agentPositions) if (id !== selfId && !floatingAgents.has(id)) yield p;+ for (const [id, p] of agentPositions) if (id !== selfId) yield p;if (player) yield player;}