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: floor text readable - HiDPI canvas, bold bubbles, no walk flicker
Gulume8c8dca01814
diff --git a/src/renderer/src/scene/office/OfficeFloor.tsx b/src/renderer/src/scene/office/OfficeFloor.tsxindex 0b38d4a9..9a6e4d46 100644--- a/src/renderer/src/scene/office/OfficeFloor.tsx+++ b/src/renderer/src/scene/office/OfficeFloor.tsx@@ -141,7 +141,14 @@ export function OfficeFloor() {background: hexNum(colors.ink[900]),antialias: false,roundPixels: true,- resolution: 1,+ // resolution: 1 let the OS/browser upscale the canvas on scaled and+ // HiDPI displays (125–150% is the Windows laptop default), blurring+ // everything — worst of all the bubble text, which is small to begin+ // with. Render at the real device pixel density instead, floored at 2+ // so the half-scale-supersampled bubble text stays legible even at+ // 100% scaling. autoDensity keeps the canvas CSS size in logical px.+ resolution: Math.max(window.devicePixelRatio || 1, 2),+ autoDensity: true,width: host.clientWidth || 800,height: host.clientHeight || 600,});diff --git a/src/renderer/src/scene/office/ThoughtBubble.ts b/src/renderer/src/scene/office/ThoughtBubble.tsindex 100898f3..3c051809 100644--- a/src/renderer/src/scene/office/ThoughtBubble.ts+++ b/src/renderer/src/scene/office/ThoughtBubble.ts@@ -19,7 +19,7 @@ const MAX_WIDTH = 150;const FILL_COLOR = colors.cream[50]; // light cloudconst OUTLINE_COLOR = colors.ink[900];const TEXT_COLOR = '#3d2e4a'; // ink-700-const FONT_SIZE = 11;+const FONT_SIZE = 12;const RENDER_SCALE = 0.5; // render at 2x, scale down for crispnessconst OFFSET_Y = -38; // a touch higher than the tool bubbleconst FADE_IN_DURATION = 0.15;@@ -71,6 +71,7 @@ export class ThoughtBubble {text: '',style: {fontSize: FONT_SIZE,+ fontWeight: 'bold',fill: TEXT_COLOR,fontFamily: 'monospace',align: 'left',diff --git a/src/renderer/src/scene/office/ToolBubble.ts b/src/renderer/src/scene/office/ToolBubble.tsindex 1e03a8c5..74811c6b 100644--- a/src/renderer/src/scene/office/ToolBubble.ts+++ b/src/renderer/src/scene/office/ToolBubble.ts@@ -24,9 +24,9 @@ const PADDING_Y = 3;const CORNER_RADIUS = 4;const MAX_WIDTH = 140;const BG_COLOR = 0x1a1320; // ink-900-const BG_ALPHA = 0.82;+const BG_ALPHA = 0.95; // near-opaque: thin text over a busy floor was hard to readconst TEXT_COLOR = '#fffdf5';-const FONT_SIZE = 10;+const FONT_SIZE = 12;const RENDER_SCALE = 0.5; // render at 2x, scale down for crispnessconst OFFSET_Y = -36;const FADE_IN_DURATION = 0.15;@@ -76,6 +76,7 @@ export class ToolBubble {text: '',style: {fontSize: FONT_SIZE,+ fontWeight: 'bold',fill: TEXT_COLOR,fontFamily: 'monospace',align: 'left',@@ -145,8 +146,12 @@ export class ToolBubble {setPosition(px: number, py: number): void {const halfBubble = (this.bgW * RENDER_SCALE) / 2;- this.container.x = px - halfBubble;- this.container.y = py + OFFSET_Y - this.bgH * RENDER_SCALE;+ // Round: the avatar glides at sub-pixel steps every frame, and a bubble+ // following it on fractional coordinates makes the half-scaled text+ // resample differently each frame — visible as shimmering/flickering+ // while the character walks. (ThoughtBubble already does this.)+ this.container.x = Math.round(px - halfBubble);+ this.container.y = Math.round(py + OFFSET_Y - this.bgH * RENDER_SCALE);}hide(): void {