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: enlarge human agent faces, keep mascot and animal framing

rubenluetke10-beep15814943c166
diff --git a/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx b/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx
index ffb75b329c..1a68f69ff7 100644
--- a/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/AgentSwatch.tsx
@@ -81,7 +81,7 @@ export function AgentSwatch({
src={crop}
alt=""
draggable={false}
- className="absolute inset-[10%] h-[80%] w-[80%] object-contain"
+ className="absolute inset-[4%] h-[92%] w-[92%] object-contain"
style={{
imageRendering: size <= 40 ? "auto" : "pixelated",
}}
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 50a296fedd..2a9b16a02b 100644
--- a/jarvis/ui/web/frontend/src/components/society/figures/faceCrop.ts
+++ b/jarvis/ui/web/frontend/src/components/society/figures/faceCrop.ts
@@ -94,9 +94,15 @@ async function renderCrop(recipe: FigureRecipe): Promise<string | null> {
scene.add(figure.root);
figure.actions.idle?.play();
figure.mixer.update(0.4);
- const spirit = figure.extras.archetype === "spirit";
+ const archetype = figure.extras.archetype;
+ const spirit = archetype === "spirit";
+ const quadruped = archetype === "quadruped";
const headY = height * (spirit ? 0.66 : 0.78);
- camera.position.set(0.06, headY + height * 0.04, height * (spirit ? 1.6 : 1.35));
+ // Per-archetype distance: a human head is small relative to its body,
+ // so a biped needs a closer camera than the mascot or an animal whose
+ // face already fills more of the frame at the same factor.
+ const distance = height * (spirit ? 1.6 : quadruped ? 1.35 : 0.95);
+ camera.position.set(0.06, headY + height * 0.04, distance);
camera.lookAt(0, headY, 0);
camera.updateProjectionMatrix();
renderer.render(scene, camera);