Skip to content

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.

fix: show full agent face in roster avatars

rubenluetke10-beepfaa025a5cec1
diff --git a/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx b/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx
index 02ab6b3a09..128b8b52a9 100644
--- a/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx
@@ -8,7 +8,7 @@
* The ground pairs the figure's primary with its secondary so two agents
* never collapse to the same dark disc; the fallback draws a simple
* two-eye face from the figure's own skin/hair/eyes cells; a loaded crop
- * is scaled up so the head fills the disc instead of hiding in it.
+ * is shown in full so the whole face stays visible inside the disc.
*/
import { useEffect, useState } from "react";
@@ -81,11 +81,11 @@ export function AgentSwatch({
src={crop}
alt=""
draggable={false}
- className="absolute inset-0 h-full w-full object-cover"
+ className="absolute inset-0 h-full w-full object-contain"
style={{
imageRendering: size <= 40 ? "auto" : "pixelated",
- transform: "scale(1.25)",
- transformOrigin: "50% 32%",
+ transform: "scale(1.0)",
+ transformOrigin: "50% 45%",
}}
/>
) : (
diff --git a/jarvis/ui/web/frontend/src/components/society/figures/faceCrop.ts b/jarvis/ui/web/frontend/src/components/society/figures/faceCrop.ts
index 80feaa1926..10cacdacf6 100644
--- a/jarvis/ui/web/frontend/src/components/society/figures/faceCrop.ts
+++ b/jarvis/ui/web/frontend/src/components/society/figures/faceCrop.ts
@@ -95,8 +95,8 @@ async function renderCrop(recipe: FigureRecipe): Promise<string | null> {
figure.mixer.update(0.4);
const spirit = figure.extras.archetype === "spirit";
const headY = height * (spirit ? 0.66 : 0.78);
- camera.position.set(0.06, headY + height * 0.03, height * (spirit ? 0.95 : 0.72));
- camera.lookAt(0, headY - height * 0.02, 0);
+ camera.position.set(0.06, headY + height * 0.03, height * (spirit ? 1.15 : 0.92));
+ camera.lookAt(0, headY - height * 0.01, 0);
camera.updateProjectionMatrix();
renderer.render(scene, camera);
return renderer.domElement.toDataURL("image/png");