Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

fix(device): Codex at 1.25x over a four-line recap, not 1.5x

0xdiego258d279d85a533
diff --git a/devices/harness-device/firmware/main/ui/habitat/focus.c b/devices/harness-device/firmware/main/ui/habitat/focus.c
index 2a00b0c26..4c4dce12f 100644
--- a/devices/harness-device/firmware/main/ui/habitat/focus.c
+++ b/devices/harness-device/firmware/main/ui/habitat/focus.c
@@ -741,8 +741,10 @@ void ht_focus_face(ht_scene_t *s, const ht_character_face_t *f, uint8_t frame, u
// Claude's block of a body reads larger than the others at the same size (owner, 2026-10-06): it stays at 1.5x
// resting and over a recap of one to three lines, and 1x over four.
if (f->engine && !strcmp(f->engine, "claude") && ((has_recap && recap_n <= 3) || empty || retry)) size = 0;
- // Codex's robot reads small at 1x over a full recap (owner, 2026-10-06): 1.5x over four lines too.
- if (f->engine && !strcmp(f->engine, "codex") && has_recap && recap_n >= 4) size = 0;
+ // Codex's robot reads small at 1x over a full recap, and 1.5x was too big (owner, 2026-10-06): over four lines it is
+ // 1.25x (the eighths nearest the asked 1.3x), placed like the sizes over a shorter recap.
+ bool codex_full = f->engine && !strcmp(f->engine, "codex") && has_recap && recap_n >= 4;
+ if (codex_full) size = 0;
int mark_top = TITLE_BOTTOM + (below - TITLE_BOTTOM - MARK_SIZE) / 2;
// The name on the top curve, the octopus's arc; a tap there opens the pane list.
@@ -777,7 +779,7 @@ void ht_focus_face(ht_scene_t *s, const ht_character_face_t *f, uint8_t frame, u
// first line, its hop scaled with it (zoom in eighths of the drawing: 4 = 1x, 6, 7, 8 = 2x).
static const uint8_t zooms[4] = {4, 6, 7, 8};
const ht_cell_frame_t *fr = &pet->cells[p->frame];
- int z = zooms[size + 1];
+ int z = codex_full ? 5 : zooms[size + 1];
int pw = (fr->cols * fr->cell * z + 7) / 8, ph = (fr->rows * fr->cell * z + 7) / 8;
int px = (HT_WIDTH - pw) / 2;
int py = (size >= 0 ? TITLE_BOTTOM + (below - TITLE_BOTTOM - ph) / 2 : mark_top + (MARK_SIZE - ph) / 2) + p->dy * z / 4;
diff --git a/devices/harness-device/firmware/test/test_character.c b/devices/harness-device/firmware/test/test_character.c
index 775654a64..b5783d05c 100644
--- a/devices/harness-device/firmware/test/test_character.c
+++ b/devices/harness-device/firmware/test/test_character.c
@@ -936,8 +936,8 @@ static void focus_face(void)
int dy0 = pt->loops[HT_PET_IDLE][0].dy * (claude ? 6 : 8) / 4;
assert(m->y - dy0 == 44 + (cap - 44 - h) / 2);
}
- // Codex over a four-line recap is 1.5x, not 1x (owner, 2026-10-06: "it looks tiny"), between the name and the
- // recap's first line; Muse stays 1x there.
+ // Codex over a four-line recap is 1.25x, not 1x (owner, 2026-10-06: "it looks tiny"; 1.5x "a bit big"), between
+ // the name and the recap's first line; Muse stays 1x there.
for (int e = 0; e < 2; e++) {
const char *eng_ = e ? "muse" : "codex";
ht_character_face_t g = {.recipient = "x", .engine = eng_, .activity = "", .status = "", .hint = "",
@@ -948,7 +948,7 @@ static void focus_face(void)
int lines = 0;
for (int i = 3; i < 7; i++) lines += sc.runs[i].text[0] != 0;
const ht_run_t *m = &sc.runs[1];
- assert(lines == 4 && m->sprite.cells && m->sprite.zoom == (e ? 4 : 6));
+ assert(lines == 4 && m->sprite.cells && m->sprite.zoom == (e ? 4 : 5));
assert(m->y >= 44 && m->y + m->sprite.height <= sc.runs[3].y + ht_lv_inter_30.ascent - 22);
}
// No pane's engine (no pet, no mark: design 2026-10-06 "No pane"): the resting line alone, its one or two lines