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.

feat(pro): Classic restyled after the Index v5 design handoff (#1299)

0xdiego2583aae2a7682f
diff --git a/devices/harness-pro/firmware/fonts/LiberationSans-Bold.ttf b/devices/harness-pro/firmware/fonts/LiberationSans-Bold.ttf
new file mode 100644
index 000000000..dc5d57f15
Binary files /dev/null and b/devices/harness-pro/firmware/fonts/LiberationSans-Bold.ttf differ
diff --git a/devices/harness-pro/firmware/fonts/README.md b/devices/harness-pro/firmware/fonts/README.md
index 88802b8ef..de33932e8 100644
--- a/devices/harness-pro/firmware/fonts/README.md
+++ b/devices/harness-pro/firmware/fonts/README.md
@@ -7,4 +7,10 @@ Console faces (always these files, whatever `PRO_FONT` is; baked by `scripts/gen
| Inter-SemiBold.ttf, Inter-Medium.ttf, Inter-Regular.ttf | `extras/ttf/` of https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip (zip sha256 `9883fdd4a49d4fb66bd8177ba6625ef9a64aa45899767dde3d36aa425756b11e`) | Inter 4.1 | SemiBold `78a843fade9d4612a5567302fb595b56976eb5fcebf4fea5a5912d638bafcde3`, Medium `97ad806f526e41546d46365bb3a393145f75b7b1568913db74549ad8b8dba872`, Regular `40d692fce188e4471e2b3cba937be967878f631ad3ebbbdcd587687c7ebe0c82` |
| JetBrainsMono-Medium.ttf | `fonts/ttf/` of https://github.com/JetBrains/JetBrainsMono/releases/download/v2.304/JetBrainsMono-2.304.zip (zip sha256 `6f6376c6ed2960ea8a963cd7387ec9d76e3f629125bc33d1fdcd7eb7012f7bbf`) | JetBrains Mono 2.304 | `31c92d01a8a08528b718a43addf0ad3df0af2ca4b7b3290a452f70f358e14d3d` |
-Licences: `LICENSE-Inter.txt`, `LICENSE-JetBrainsMono.txt`, `LICENSE-LiberationSans.txt` (the Classic fallback, `LiberationSans-Regular.ttf`).
+Classic faces (`ci_rg_*` from `LiberationSans-Regular.ttf`, `ci_bd_*` from `LiberationSans-Bold.ttf`; baked by `scripts/gen_fonts.py`, SIL OFL 1.1):
+
+| File | Source | Version | sha256 |
+|---|---|---|---|
+| LiberationSans-Regular.ttf, LiberationSans-Bold.ttf | `liberation-fonts-ttf-2.1.5/` of https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-2.1.5.tar.gz (tarball sha256 `7191c669bf38899f73a2094ed00f7b800553364f90e2637010a69c0e268f25d0`) | Liberation Fonts 2.1.5 | Regular `76d04c18ea243f426b7de1f3ad208e927008f961dc5945e5aad352d0dfde8ee8`, Bold `788abee4c806d660e8aee46689dd8540cd4bb98da03dcc9d171ce3efd99a9173` |
+
+Licences: `LICENSE-Inter.txt`, `LICENSE-JetBrainsMono.txt`, `LICENSE-LiberationSans.txt` (the Classic fallback and the Classic faces; it covers both `LiberationSans-Regular.ttf` and `LiberationSans-Bold.ttf`, byte-identical to the 2.1.5 tarball's `LICENSE`).
diff --git a/devices/harness-pro/firmware/main/CMakeLists.txt b/devices/harness-pro/firmware/main/CMakeLists.txt
index 29d128fde..4065f7bb7 100644
--- a/devices/harness-pro/firmware/main/CMakeLists.txt
+++ b/devices/harness-pro/firmware/main/CMakeLists.txt
@@ -33,6 +33,8 @@ idf_component_register(
"display/pro_canvas.c"
"display/terminal.c"
"display/scroll.c"
+ "pod/classic/ci_chrome.c"
+ "pod/classic/ci_connection.c"
"pod/classic/pod_chrome.c"
"pod/classic/pod_view_agent.c"
"pod/classic/pod_view_inbox.c"
diff --git a/devices/harness-pro/firmware/main/app/pod_glue.c b/devices/harness-pro/firmware/main/app/pod_glue.c
index eae30c067..7c247bc7a 100644
--- a/devices/harness-pro/firmware/main/app/pod_glue.c
+++ b/devices/harness-pro/firmware/main/app/pod_glue.c
@@ -46,17 +46,22 @@ void pod_ui_render(pod_ui_t *u, ht_scene_t *scene, uint32_t now_ms)
pod_render(&u->frame, &u->nav, &u->model, now_ms);
if (u->frame.banner) { // over everything, with the hit on top
if (u->nav.skin == POD_SKIN_CONSOLE) cs_toast(&u->frame, &u->model, ban, now_ms);
- else pod_banner(&u->frame, &u->model, ban, now_ms);
+ else pod_banner(&u->frame, &u->model, ban, pod_ui_banner_shown_ms(u), now_ms);
}
if (u->notice_on && (int32_t)(now_ms - u->notice_until) >= 0) u->notice_on = false;
if (u->notice_on && u->model.linked) {
- // Two runs: the dark pill and its white line. Present or absent is a different state, each constant.
- int w = ht_pro_width(&ht_pro_24, u->notice);
- if (w > 600) w = 600;
- int pw = w + 40;
- const int ny = POD_TRANSPORT_Y - 8 - 40; // just above the transport bar; the agent's name is up top
- ht_pro_rect(scene, (POD_W - pw) / 2, ny, pw, 40, 20, ht_rgb(u->notice_bad ? 0xb3261e : 0x111111));
- ht_pro_text(scene, (POD_W - w) / 2, ny + 7, w, &ht_pro_24, ht_rgb(0xffffff), u->notice);
+ // Two runs: the pill and its line. Present or absent is a different state, each constant.
+ const bool classic = u->nav.skin != POD_SKIN_CONSOLE;
+ // Classic: the mockup's toast (Regular 24, 12 px padding, radius 7, at most 604 wide) just above its transport bar.
+ const ht_pro_font_t *font = classic ? &ci_rg_24 : &ht_pro_24;
+ int w = ht_pro_width(font, u->notice);
+ if (w > (classic ? 580 : 600)) w = classic ? 580 : 600;
+ int pw = w + (classic ? 24 : 40);
+ const int ny = (classic ? POD_CLASSIC_TRANSPORT_Y : POD_TRANSPORT_Y) - 8 - 40; // just above the transport bar; the agent's name is up top
+ const uint16_t bg = ht_rgb(u->notice_bad ? 0xb3261e : classic ? 0x25372f : 0x111111);
+ if (classic) ht_pro_rect_aa(scene, (POD_W - pw) / 2, ny, pw, 40, 7, bg);
+ else ht_pro_rect(scene, (POD_W - pw) / 2, ny, pw, 40, 20, bg);
+ ht_pro_text(scene, (POD_W - w) / 2, ny + (classic ? (40 - font->height) / 2 : 7), w, font, ht_rgb(0xffffff), u->notice);
}
u->seen_revision = u->model.revision;
u->dirty = false;
@@ -416,10 +421,10 @@ pod_out_t pod_ui_touch(pod_ui_t *u, bool down, int x, int y, uint32_t now_ms, bo
u->anchor_y = y;
u->scroll_px = 0;
u->pg_dy = u->pg_vel = 0;
- // Console has no transport line: a contact from anywhere may swipe sideways. One that starts in the bottom zone is a
+ // Console has no transport line (Classic's starts at POD_CLASSIC_TRANSPORT_Y): a contact from anywhere may swipe sideways. One that starts in the bottom zone is a
// swipe up (BACK) or sideways (panes), decided on the lift by which direction dominates.
const bool console = u->nav.skin == POD_SKIN_CONSOLE;
- u->sw_ok = !u->hands_free && swipes(u) && (console || y < POD_TRANSPORT_Y);
+ u->sw_ok = !u->hands_free && swipes(u) && (console || y < POD_CLASSIC_TRANSPORT_Y);
const pod_view_t tv = top(u)->view;
u->edge = !u->hands_free && console && u->nav.depth > 1 && tv != POD_V_TALK &&
y >= (tv == POD_V_TAB || tv == POD_V_INBOX ? POD_LIST_BOTTOM_Y : POD_BOTTOM_Y);
@@ -437,12 +442,19 @@ pod_out_t pod_ui_touch(pod_ui_t *u, bool down, int x, int y, uint32_t now_ms, bo
u->pg_mode = POD_PG_IDLE;
}
// The later hit is drawn on top of the earlier ones.
- for (int i = (int)u->frame.hit_count - 1; i >= 0; i--)
- if (inside(&u->frame.hits[i], x, y)) {
- u->hit = u->frame.hits[i];
- u->hit_valid = true;
- break;
- }
+ // Priority: the banner's x sits inside the card's POD_A_BANNER hit, so it is looked for first, whatever the order
+ // the views added them in. Every other hit: the last added wins.
+ int pick = -1;
+ if (u->frame.banner)
+ for (int i = (int)u->frame.hit_count - 1; i >= 0 && pick < 0; i--)
+ if (u->frame.hits[i].action == POD_A_BANNER_CLOSE && inside(&u->frame.hits[i], x, y)) pick = i;
+ if (pick < 0)
+ for (int i = (int)u->frame.hit_count - 1; i >= 0; i--)
+ if (inside(&u->frame.hits[i], x, y)) { pick = i; break; }
+ if (pick >= 0) {
+ u->hit = u->frame.hits[pick];
+ u->hit_valid = true;
+ }
if (u->hands_free && pod_ui_talking(u)) { // the send tap is the whole screen's, even before Talk is drawn (u->frame is the old screen's)
memset(&u->hit, 0, sizeof u->hit);
u->hit.w = POD_W;
@@ -450,7 +462,7 @@ pod_out_t pod_ui_touch(pod_ui_t *u, bool down, int x, int y, uint32_t now_ms, bo
u->hit.action = POD_A_TALK;
u->hit_valid = true;
}
- if (u->hit_valid && u->hit.action == POD_A_BANNER) { // the banner takes the whole contact: no scroll, no swipe, no tap through it
+ if (u->hit_valid && (u->hit.action == POD_A_BANNER || u->hit.action == POD_A_BANNER_CLOSE)) { // the banner takes the whole contact: no scroll, no swipe, no tap through it
u->ban_touch = true;
u->sw_ok = false;
if (u->pg_mode == POD_PG_DRAG && pg_on(u)) pg_release(u, now_ms, false); // a grid caught mid-settle lets go
@@ -532,7 +544,10 @@ pod_out_t pod_ui_touch(pod_ui_t *u, bool down, int x, int y, uint32_t now_ms, bo
int dx = x - u->start_x, dy = y - u->start_y;
*changed = true;
if (dy <= -POD_BANNER_SWIPE_PX && iabs(dx) < -dy) { u->ban_on = false; return none; }
- if (u->ban_on && iabs(dx) <= POD_TAP_SLOP && iabs(dy) <= POD_TAP_SLOP && inside(&u->hit, x, y)) return banner_open(u, now_ms);
+ if (u->ban_on && iabs(dx) <= POD_TAP_SLOP && iabs(dy) <= POD_TAP_SLOP && inside(&u->hit, x, y)) {
+ if (u->hit.action == POD_A_BANNER_CLOSE) { u->ban_on = false; return none; } // the x: end it, keep the unread entry, open nothing
+ return banner_open(u, now_ms);
+ }
return none;
}
if (was && u->bar) { // Console: a swipe down from the command bar opens the Inbox (and is not a crumb tap); on the Inbox, nothing
@@ -666,6 +681,8 @@ pod_out_t pod_ui_tick(pod_ui_t *u, uint32_t now_ms)
// ---- voice and clock ---------------------------------------------------------------------------------------
+uint32_t pod_ui_banner_shown_ms(const pod_ui_t *u) { return u->ban_until - POD_BANNER_MS; }
+
bool pod_ui_talking(const pod_ui_t *u)
{
const pod_frame_t *f = top(u);
@@ -749,7 +766,10 @@ static uint32_t edge_ms(const pod_ui_t *u, uint32_t now_ms)
int32_t left = (int32_t)(u->ban_until - now_ms);
if (left < 1) left = 1;
if ((uint32_t)left < edge) edge = (uint32_t)left;
- if (u->nav.skin == POD_SKIN_CONSOLE && edge > 33 && u->model.linked && !pod_ui_talking(u) && !u->ota) edge = 33; // the toast's timer line shrinks (only while it is drawn)
+ if (u->model.linked && !pod_ui_talking(u) && !u->ota) { // the timer line shrinks (only while the banner is drawn): Console 33 ms, Classic 66
+ uint32_t cap = u->nav.skin == POD_SKIN_CONSOLE ? 33 : 66;
+ if (edge > cap) edge = cap;
+ }
}
if (bar_mark(u)) { // the bar's working mark: a new height every POD_CS_ANIM_MS on every Console screen, only while someone runs
uint32_t beat = POD_CS_ANIM_MS - now_ms % POD_CS_ANIM_MS;
diff --git a/devices/harness-pro/firmware/main/app/pod_glue.h b/devices/harness-pro/firmware/main/app/pod_glue.h
index e11423de1..2b9d453cb 100644
--- a/devices/harness-pro/firmware/main/app/pod_glue.h
+++ b/devices/harness-pro/firmware/main/app/pod_glue.h
@@ -172,6 +172,8 @@ bool pod_ui_updating(const pod_ui_t *);
#define POD_BANNER_MS 6000
#define POD_BANNER_SWIPE_PX 40
// `awake`: the glass is lit. A dark one is not looking, even when it rests on that agent's screen.
+// When the current banner started (it shows for POD_BANNER_MS); the banner draw reads it for its timer line.
+uint32_t pod_ui_banner_shown_ms(const pod_ui_t *);
bool pod_ui_notify(pod_ui_t *, const char *agent_id, bool awake, uint32_t now_ms);
// notif.replace: begin (clears the list), one row per item, end. The banner is not shown for these.
void pod_ui_notif_begin(pod_ui_t *);
diff --git a/devices/harness-pro/firmware/main/display/pro_canvas.c b/devices/harness-pro/firmware/main/display/pro_canvas.c
index a166bb49d..8432c6c4d 100644
--- a/devices/harness-pro/firmware/main/display/pro_canvas.c
+++ b/devices/harness-pro/firmware/main/display/pro_canvas.c
@@ -5,20 +5,7 @@
enum { PRO_TEXT = 1, PRO_RECT, PRO_IMAGE, PRO_RECT_AA, PRO_RECT_AA_STROKE };
static int min_(int a, int b) { return a < b ? a : b; }
static int max_(int a, int b) { return a > b ? a : b; }
-static uint16_t over(uint16_t fg, uint16_t bg, unsigned a)
-{
- if (a == 255) return fg;
- unsigned b = 255 - a;
- // Exact rounded division by255 for these bounded channel products. This
- // avoids the wide multiply used for a constant division on the P4's RV32.
- unsigned r = (fg >> 11) * a + (bg >> 11) * b + 128;
- unsigned g = ((fg >> 5) & 63) * a + ((bg >> 5) & 63) * b + 128;
- unsigned v = (fg & 31) * a + (bg & 31) * b + 128;
- r = (r + (r >> 8)) >> 8;
- g = (g + (g >> 8)) >> 8;
- v = (v + (v >> 8)) >> 8;
- return (uint16_t)((r << 11) | (g << 5) | v);
-}
+static inline uint16_t over(uint16_t fg, uint16_t bg, unsigned a) { return ht_pro_over(fg, bg, a); }
static void fill_span(uint16_t *dst, int count, uint16_t ink)
{
@@ -80,8 +67,9 @@ static unsigned code(const ht_pro_font_t *f, uint32_t cp)
int vietnamese = ht_pro_vietnamese_index(cp);
if (vietnamese >= 0 && f->last - f->first + 1 + vietnamese < f->glyph_count)
return f->last + 1 + (unsigned)vietnamese;
- int extra = ht_pro_extra_index(cp);
- if (extra >= 0 && f->last - f->first + 1 + extra < f->glyph_count) return f->last + 1 + (unsigned)extra;
+ int extra = ht_pro_extra_pos(f, cp); // marks the face was baked with, after the Vietnamese entries
+ if (extra >= 0 && f->last - f->first + 1 + 102 + extra < f->glyph_count)
+ return f->last + 1 + 102 + (unsigned)extra;
if (cp == 0x2018 || cp == 0x2019) cp = '\'';
if (cp == 0x201c || cp == 0x201d) cp = '"';
if (cp >= 0x2010 && cp <= 0x2015) cp = '-';
@@ -89,8 +77,6 @@ static unsigned code(const ht_pro_font_t *f, uint32_t cp)
}
/* Glyph advances position the next glyph; atlas ink may extend beyond them.
* Keep that last overhang inside both fit decisions and damage bounds. */
-// A Console face has the extra marks after the Vietnamese entries (see ht_pro_extra_index).
-static bool has_marks(const ht_pro_font_t *f) { return f->last - f->first + 1 + 102 < f->glyph_count; }
static int visible_width(const ht_pro_font_t *f, const char *text)
{
int advance = 0, extent = 0;
@@ -107,7 +93,7 @@ int ht_pro_width(const ht_pro_font_t *f, const char *text)
// Measurement follows the same display normalization as wrapping/raster:
// fractions and unsupported characters may expand to several glyphs.
char visible[4096];
- ht_display_text_ex(visible, sizeof visible, text, has_marks(f));
+ ht_display_text_ex(visible, sizeof visible, text, f);
return visible_width(f, visible);
}
static ht_run_t *run(ht_scene_t *s, int kind, int x, int y, int w, int h)
@@ -126,7 +112,7 @@ bool ht_pro_text(ht_scene_t *s, int x, int y, int width, const ht_pro_font_t *fo
if (!r) return false;
r->pro_font = font; r->fg = ink;
char normalized[HT_TEXT_BYTES * 4];
- bool complete = ht_display_text_ex(normalized, sizeof normalized, text, has_marks(font));
+ bool complete = ht_display_text_ex(normalized, sizeof normalized, text, font);
const char *p = normalized;
int used = 0, advance = 0, extent = 0;
while (*p && *p != '\n') {
@@ -192,7 +178,7 @@ int ht_pro_text_rows(const char *text, const ht_pro_font_t *font, int width)
{
if (!font || width <= 0 || !text || !*text) return 0;
char visible[4096], row[HT_TEXT_BYTES];
- ht_display_text_ex(visible, sizeof visible, text, has_marks(font));
+ ht_display_text_ex(visible, sizeof visible, text, font);
const char *p = visible; int count = 0;
while (*p) { line(&p, font, width, row); count++; }
return count;
@@ -202,7 +188,7 @@ int ht_pro_wrap(ht_scene_t *s, int x, int y, int width, int rows, int skip,
{
if (!font || width <= 0 || rows <= 0 || !text) return 0;
char visible[4096], row[HT_TEXT_BYTES];
- ht_display_text_ex(visible, sizeof visible, text, has_marks(font));
+ ht_display_text_ex(visible, sizeof visible, text, font);
const char *p = visible; int shown = 0;
while (*p && skip-- > 0) line(&p, font, width, row);
while (*p && shown < rows) {
@@ -242,31 +228,6 @@ bool ht_pro_rect_aa_stroke(ht_scene_t *s, int x, int y, int w, int h, int radius
memcpy(r->text, &fill, sizeof fill);
return true;
}
-static unsigned isqrt_(unsigned n)
-{
- unsigned r = 0, bit = 1u << 30;
- while (bit > n) bit >>= 2;
- for (; bit; bit >>= 2) {
- if (n >= r + bit) { n -= r + bit; r = (r >> 1) + bit; } else r >>= 1;
- }
- return r;
-}
-// The corner circle's coverage of the pixel at (cx, cy) from the corner circle's centre, in sixteenths: the
-// pixel centre's distance from the centre against the radius, a one-pixel linear ramp (as pod_arc's edges).
-static unsigned corner_cover(int rad, int px, int py)
-{
- int vx = (px*2+1-2*rad)*8, vy = (py*2+1-2*rad)*8; // 16ths from the circle's centre to the pixel's centre
- int d2 = vx*vx + vy*vy;
- // coverage = rad*16 + 8 - floor(sqrt(d2)), clamped to 0..16. Only the one-pixel edge ring needs the square root: floor(sqrt(d2))
- // is at most rad*16 - 8 (full) exactly when d2 < (rad*16 - 7)^2, and at least rad*16 + 8 (none) exactly when d2 >= (rad*16 + 8)^2.
- if (rad > 0) {
- int lo = rad*16 - 7, hi = rad*16 + 8;
- if (d2 < lo*lo) return 16;
- if (d2 >= hi*hi) return 0;
- }
- int cov = rad*16 - (int)isqrt_((unsigned)d2) + 8;
- return cov <= 0 ? 0 : cov >= 16 ? 16 : (unsigned)cov;
-}
static void rect_aa_raster(const ht_run_t *r, int x0, int y0, int x1, int y1, ht_rect_t clip, uint16_t *out)
{
int rad = r->radius;
@@ -277,7 +238,7 @@ static void rect_aa_raster(const ht_run_t *r, int x0, int y0, int x1, int y1, ht
if (cy < 0) { fill_span(row + x0, x1-x0, r->fg); continue; }
for (int x = x0; x < x1; x++) {
int dx = x - r->x, cx = dx < rad ? dx : dx >= r->w-rad ? r->w-1-dx : -1;
- unsigned cov = cx < 0 ? 16 : corner_cover(rad, cx, cy);
+ unsigned cov = cx < 0 ? 16 : ht_pro_corner_cover(rad, cx, cy);
if (cov >= 16) row[x] = r->fg;
else if (cov) row[x] = over(r->fg, row[x], cov*255/16);
}
@@ -288,7 +249,7 @@ static unsigned rect_cover(int rad, int w, int h, int dx, int dy)
{
int cy = dy < rad ? dy : dy >= h-rad ? h-1-dy : -1;
int cx = dx < rad ? dx : dx >= w-rad ? w-1-dx : -1;
- return cx < 0 || cy < 0 ? 16 : corner_cover(rad, cx, cy);
+ return cx < 0 || cy < 0 ? 16 : ht_pro_corner_cover(rad, cx, cy);
}
static void blend_px(uint16_t *p, uint16_t ink, unsigned cov)
{
diff --git a/devices/harness-pro/firmware/main/display/pro_canvas.h b/devices/harness-pro/firmware/main/display/pro_canvas.h
index 1f4ccd353..b5ce34852 100644
--- a/devices/harness-pro/firmware/main/display/pro_canvas.h
+++ b/devices/harness-pro/firmware/main/display/pro_canvas.h
@@ -14,15 +14,20 @@ static inline int ht_pro_vietnamese_index(uint32_t cp)
if (cp == extra[i]) return 90 + (int)i;
return -1;
}
-// The Console faces append these marks after the Vietnamese entries (glyph_count 335 against Classic's 316), in this
-// order. Keep in sync with CONSOLE_EXTRA in gen_fonts.py. Classic's atlases have no such entries and draw '?'.
-static inline int ht_pro_extra_index(uint32_t cp)
+// Position of cp in the face's extras table (the marks baked after the Vietnamese entries), or -1. The atlas
+// index is 102 + position. The table is per face (gen_fonts.py): Console 9 marks, Classic ci_* 2, old faces none.
+static inline int ht_pro_extra_pos(const ht_pro_font_t *f, uint32_t cp)
{
- static const uint16_t extra[] = {0x2026,0x2192,0x2191,0x2193,0x2190,0x21e2,0x25b2,0x25c6,0x2713};
- for (unsigned i = 0; i < sizeof extra / sizeof extra[0]; i++)
- if (cp == extra[i]) return 102 + (int)i;
+ for (unsigned i = 0; f && f->extras && i < f->extra_count; i++)
+ if (cp == f->extras[i]) return (int)i;
return -1;
}
+// Does the face draw cp from its extras table? (Latin-1 and Vietnamese are always drawn; the typographic quotes and
+// dashes alias to ASCII.)
+static inline bool ht_pro_can_draw(const ht_pro_font_t *f, uint32_t cp)
+{
+ return ht_pro_extra_pos(f, cp) >= 0;
+}
int ht_pro_width(const ht_pro_font_t *font, const char *text);
int ht_pro_text_rows(const char *text, const ht_pro_font_t *font, int width);
bool ht_pro_text(ht_scene_t *s, int x, int y, int width, const ht_pro_font_t *font,
@@ -39,3 +44,44 @@ bool ht_pro_rect_aa_stroke(ht_scene_t *s, int x, int y, int w, int h, int radius
bool ht_pro_image(ht_scene_t *s, int x, int y, const ht_pro_bitmap_t *bitmap);
bool ht_pro_image_faded(ht_scene_t *s, int x, int y, const ht_pro_bitmap_t *bitmap, unsigned opacity); // opacity 1..254 of 255
void ht_pro_raster(const ht_run_t *run, ht_rect_t clip, uint16_t *out);
+
+// Blend fg over bg by a/255 (RGB565).
+static inline uint16_t ht_pro_over(uint16_t fg, uint16_t bg, unsigned a)
+{
+ if (a == 255) return fg;
+ unsigned b = 255 - a;
+ // Exact rounded division by255 for these bounded channel products. This
+ // avoids the wide multiply used for a constant division on the P4's RV32.
+ unsigned r = (fg >> 11) * a + (bg >> 11) * b + 128;
+ unsigned g = ((fg >> 5) & 63) * a + ((bg >> 5) & 63) * b + 128;
+ unsigned v = (fg & 31) * a + (bg & 31) * b + 128;
+ r = (r + (r >> 8)) >> 8;
+ g = (g + (g >> 8)) >> 8;
+ v = (v + (v >> 8)) >> 8;
+ return (uint16_t)((r << 11) | (g << 5) | v);
+}
+static inline unsigned ht_pro_isqrt(unsigned n)
+{
+ unsigned r = 0, bit = 1u << 30;
+ while (bit > n) bit >>= 2;
+ for (; bit; bit >>= 2) {
+ if (n >= r + bit) { n -= r + bit; r = (r >> 1) + bit; } else r >>= 1;
+ }
+ return r;
+}
+// The corner circle's coverage of the pixel at (cx, cy) from the corner circle's centre, in sixteenths: the
+// pixel centre's distance from the centre against the radius, a one-pixel linear ramp (as pod_arc's edges).
+static inline unsigned ht_pro_corner_cover(int rad, int px, int py)
+{
+ int vx = (px*2+1-2*rad)*8, vy = (py*2+1-2*rad)*8; // 16ths from the circle's centre to the pixel's centre
+ int d2 = vx*vx + vy*vy;
+ // coverage = rad*16 + 8 - floor(sqrt(d2)), clamped to 0..16. Only the one-pixel edge ring needs the square root: floor(sqrt(d2))
+ // is at most rad*16 - 8 (full) exactly when d2 < (rad*16 - 7)^2, and at least rad*16 + 8 (none) exactly when d2 >= (rad*16 + 8)^2.
+ if (rad > 0) {
+ int lo = rad*16 - 7, hi = rad*16 + 8;
+ if (d2 < lo*lo) return 16;
+ if (d2 >= hi*hi) return 0;
+ }
+ int cov = rad*16 - (int)ht_pro_isqrt((unsigned)d2) + 8;
+ return cov <= 0 ? 0 : cov >= 16 ? 16 : (unsigned)cov;
+}
diff --git a/devices/harness-pro/firmware/main/display/pro_font_type.h b/devices/harness-pro/firmware/main/display/pro_font_type.h
index b37bae1e5..f55731dc4 100644
--- a/devices/harness-pro/firmware/main/display/pro_font_type.h
+++ b/devices/harness-pro/firmware/main/display/pro_font_type.h
@@ -12,6 +12,10 @@ struct ht_pro_font {
uint16_t glyph_count; // includes the Vietnamese entries after Latin-1
const ht_pro_glyph_t *glyphs;
const uint8_t *alpha;
+ // The code points baked after the Vietnamese entries, in glyph order (gen_fonts.py: CONSOLE_EXTRA, CLASSIC_EXTRA);
+ // NULL/0 on a face without any. The face draws exactly these marks natively.
+ const uint16_t *extras;
+ uint8_t extra_count;
};
typedef struct ht_pro_font ht_pro_font_t;
@@ -20,3 +24,8 @@ extern const ht_pro_font_t ht_pro_24, ht_pro_32, ht_pro_42, ht_pro_56;
extern const ht_pro_font_t cs_sb_48, cs_sb_34, cs_sb_26, cs_sb_22, cs_rg_24, cs_rg_20, cs_rg_17,
cs_mono_26, cs_mono_18, cs_mono_15,
cs_md_28, cs_sb_32, cs_rg_36, cs_rg_27, cs_rg_22, cs_mono_24, cs_mono_22;
+// Classic (Index look): Liberation Sans Regular / Bold, always from fonts/. Latin-1, Vietnamese and U+2026 after them
+// (glyph_count 328: 224 Latin-1, 102 Vietnamese, then 2 marks). ci_rg_43, ci_rg_48 and ci_bd_45 are cut to the strings their view draws (gen_fonts.CLASSIC_CUT).
+extern const ht_pro_font_t ci_rg_20, ci_rg_22, ci_rg_23, ci_rg_24, ci_rg_25, ci_rg_26, ci_rg_28, ci_rg_30,
+ ci_rg_32, ci_rg_33, ci_rg_41, ci_rg_43, ci_rg_48,
+ ci_bd_20, ci_bd_23, ci_bd_24, ci_bd_26, ci_bd_30, ci_bd_45;
diff --git a/devices/harness-pro/firmware/main/display/terminal.c b/devices/harness-pro/firmware/main/display/terminal.c
index fcbabf2f9..6cff0dafe 100644
--- a/devices/harness-pro/firmware/main/display/terminal.c
+++ b/devices/harness-pro/firmware/main/display/terminal.c
@@ -54,14 +54,14 @@ uint32_t ht_utf8_next(const char **p)
}
// Does the Pro's text path draw this code point as itself? Latin-1, typographic punctuation (aliased to ASCII by
-// pro_canvas.c) and the Vietnamese letters its proportional atlases carry. The five marks below keep their UTF-8
-// through normalization as well, as they always have; the atlases draw them as '?'.
-static bool native_glyph(uint32_t cp, bool console)
+// pro_canvas.c), the Vietnamese letters and the marks in the face's extras table. With a face, nothing else is kept
+// (it would draw '?'). With no face, the five marks below keep their UTF-8 through normalization as they always have.
+static bool native_glyph(uint32_t cp, const struct ht_pro_font *face)
{
- if (console && ht_pro_extra_index(cp) >= 0) return true; // the Console atlases carry these marks
+ if (ht_pro_can_draw(face, cp)) return true; // the face carries this mark
if (cp < 32 || (cp >= 127 && cp < 160)) return false;
if (ht_pro_vietnamese_index(cp) >= 0) return true;
- if (cp == 0x2713 || cp == 0x2717 || cp == 0x2192 || cp == 0x2197 || cp == 0xe000) return true;
+ if (!face && (cp == 0x2713 || cp == 0x2717 || cp == 0x2192 || cp == 0x2197 || cp == 0xe000)) return true;
cp = punctuation_alias(cp);
return cp >= 32 && cp <= 255;
}
@@ -100,7 +100,7 @@ typedef struct {
bool fraction, digit, space;
char scratch[12];
} display_token_t;
-static void display_token(const char **cursor, display_token_t *t, bool console)
+static void display_token(const char **cursor, display_token_t *t, const struct ht_pro_font *face)
{
const char *start = *cursor;
uint32_t cp = (unsigned char)*start;
@@ -114,7 +114,7 @@ static void display_token(const char **cursor, display_token_t *t, bool console)
}
t->fraction = (cp >= 0xbc && cp <= 0xbe) || (cp >= 0x2150 && cp < 0x215f) || cp == 0x2189;
if (cp >= 9 && cp <= 13) { t->text=" "; t->bytes=1; }
- else if (cp == 0xa0 || cp == 0xad || t->fraction || !native_glyph(cp, console)) {
+ else if (cp == 0xa0 || cp == 0xad || t->fraction || !native_glyph(cp, face)) {
t->text = display_fallback(cp,t->scratch);
t->bytes = t->cells = (unsigned)strlen(t->text); // fallback pool is ASCII only
}
@@ -127,8 +127,8 @@ static bool token_gap(const display_token_t *t, bool digit, bool fraction)
return t->bytes && ((t->fraction && digit) ||
(fraction && t->text[0] >= '0' && t->text[0] <= '9'));
}
-bool ht_display_text(char *dst, size_t cap, const char *src) { return ht_display_text_ex(dst, cap, src, false); }
-bool ht_display_text_ex(char *dst, size_t cap, const char *src, bool console)
+bool ht_display_text(char *dst, size_t cap, const char *src) { return ht_display_text_ex(dst, cap, src, NULL); }
+bool ht_display_text_ex(char *dst, size_t cap, const char *src, const struct ht_pro_font *face)
{
// Byte capacity also bounds cell count, avoiding unbounded size_t -> int.
if (!cap) return false;
@@ -138,7 +138,7 @@ bool ht_display_text_ex(char *dst, size_t cap, const char *src, bool console)
bool digit = false, fraction = false, complete = true;
while (*p) {
bool newline = *p == '\n';
- display_token_t t; display_token(&p,&t,console);
+ display_token_t t; display_token(&p,&t,face);
bool gap = token_gap(&t,digit,fraction);
if (t.cells + gap > (unsigned)columns || t.bytes + gap >= cap - used) {
complete = false; break;
diff --git a/devices/harness-pro/firmware/main/display/terminal.h b/devices/harness-pro/firmware/main/display/terminal.h
index 57f2319a6..d3b46bf6a 100644
--- a/devices/harness-pro/firmware/main/display/terminal.h
+++ b/devices/harness-pro/firmware/main/display/terminal.h
@@ -14,7 +14,7 @@
// A pet scene alone can take 40 runs, beside the status bar and the transport, and a Console screen takes more. Scenes live in PSRAM
// (EXT_RAM_BSS_ATTR where they are declared) for this.
#define HT_RUNS 192
-#define POD_CLASSIC_RUNS 128 // Classic's own budget (HT_RUNS before Console): its layouts and golden hashes depend on it
+#define POD_CLASSIC_RUNS 184 // Classic's own budget (HT_RUNS before Console): its layouts and golden hashes depend on it
#define HT_TEXT_BYTES 128
#define HT_DAMAGE_MAX 24
@@ -60,7 +60,11 @@ ht_rect_t ht_run_bounds(const ht_run_t *run);
// destination must differ.
bool ht_display_text(char *dst, size_t capacity, const char *src);
// The same for a Console face: its atlas marks (… → ← ↑ ↓ ▲ ◆ ✓) stay as they are. console == false is ht_display_text.
-bool ht_display_text_ex(char *dst, size_t capacity, const char *src, bool console);
+// face: the Pro atlas the text is drawn with. A code point is kept only if that face draws it (its extras table, Latin-1,
+// Vietnamese, aliased punctuation); anything else gets the ASCII fallback. NULL: no face (ht_display_text), where the
+// few marks the Pro has always passed through are kept.
+struct ht_pro_font;
+bool ht_display_text_ex(char *dst, size_t capacity, const char *src, const struct ht_pro_font *face);
void ht_damage(const ht_scene_t *before, const ht_scene_t *after, ht_damage_t *out);
// Output is RGB565 in the ST7703 framebuffer's own (little-endian, unswapped) order. Buffer holds
// region.w * region.h.
diff --git a/devices/harness-pro/firmware/main/pod/classic/ci.h b/devices/harness-pro/firmware/main/pod/classic/ci.h
new file mode 100644
index 000000000..42ec080e9
--- /dev/null
+++ b/devices/harness-pro/firmware/main/pod/classic/ci.h
@@ -0,0 +1,64 @@
+#pragma once
+// Classic Index chrome (spec 2026-10-13): the design tokens and the pieces every Classic screen shares: the bar, the
+// footer, the Talk transport, the mark box and the metadata band. Text is Liberation Sans (ci_rg_* / ci_bd_*).
+#include "pod/pod_view.h"
+#include "pod/pod_view_shared.h" // POD_ROW_MAX
+#include "pro_canvas.h"
+
+// The nearest RGB565 to a colour (ht_rgb truncates: 0xf0 would show as 246). For the tokens ht_rgb makes visibly off.
+static inline uint16_t ci_rgb(unsigned c)
+{
+ return (uint16_t)((((((c >> 16) & 255) * 31 + 127) / 255) << 11) | (((((c >> 8) & 255) * 63 + 127) / 255) << 5) | ((c & 255) * 31 + 127) / 255);
+}
+#define CI_GROUND ci_rgb(0xf6f6f0)
+#define CI_INK ht_rgb(0x20292c)
+#define CI_MUTED ht_rgb(0x657175)
+#define CI_BLUE ht_rgb(0x155ccc)
+#define CI_RULE ht_rgb(0xccd0ce)
+#define CI_GREEN ht_rgb(0x3d6653)
+#define CI_EQ ht_rgb(0x2d6a51)
+#define CI_AMBER ht_rgb(0x8b570f)
+#define CI_ASK_FILL ci_rgb(0xf0e9d8)
+#define CI_ASK_BAR ht_rgb(0xb78230)
+#define CI_ROW_ASK ci_rgb(0xf0eadc)
+#define CI_FAIL ht_rgb(0x974f43)
+
+enum { CI_BAR_H = 88, CI_FOOT_Y = 628, CI_TRANS_Y = POD_CLASSIC_TRANSPORT_Y, CI_TALK_X = 32, CI_TALK_Y = 624, CI_TALK_W = 656, CI_TALK_H = 88,
+ CI_MARGIN = 32, CI_ROW_H = 112, CI_MARK = 56, CI_BACK_W = 173, CI_BELL_W = 88 };
+
+// Text at (x, y) in at most max_w px. Wider text is cut at a UTF-8 character boundary and ends with "\xe2\x80\xa6" (U+2026, one glyph;
+// ht_pro_text's own cut is the three ASCII dots), so the whole fits. The ci_* faces carry the mark.
+void ci_text(ht_scene_t *s, int x, int y, int max_w, const ht_pro_font_t *f, uint16_t ink, const char *utf8);
+// pod_wrap_hard (pod_view_agent.c): pod_wrap that also breaks a word wider than the row at a character boundary.
+int pod_wrap_hard(const char *text, const ht_pro_font_t *, int width, int max_rows, char rows[][POD_ROW_MAX]);
+// pod_wrap's greedy word wrap into at most max_lines rows of at most max_w px; when text remains after the last row, that row
+// is cut to fit and ends with U+2026. Returns the rows used.
+int ci_wrap(const char *utf8, const ht_pro_font_t *f, int max_w, int max_lines, char rows[][POD_ROW_MAX]);
+
+// The bar, y 0-88: brand "Harness" when back is NULL, else a chevron and the back label (cut at 115 px); the title
+// centred on the screen; the bell and its count pill when `bell`. Adds BACK (0,0,173,88) when back != NULL and INBOX
+// (632,0,88,88) when bell. Sets f->unread (0 without a bell) and f->bell_x (the bell's left edge, 0 without).
+void ci_bar(pod_out_frame_t *f, const char *title, const char *back, uint8_t unread, bool bell);
+// The footer, y 628-720: an optional green led and `left` (muted), `right_caps` right-aligned (either may be NULL).
+void ci_foot(ht_scene_t *s, const char *left, bool led, const char *right_caps);
+// The transport (y 616-720) with the Talk button; the TALK hit is the button, only when enabled (disabled draws at 45%).
+void ci_talk(pod_out_frame_t *f, bool enabled);
+// The 56 px mark box at (x, y) with the 36 px logo, or the default mark for an engine without one.
+void ci_mark(ht_scene_t *s, int x, int y, const char *engine);
+// The metadata band, 88 px from y: state icon, word and elapsed on the left; Tokens (tokens_in >= 0) or Engine on the right.
+void ci_band(ht_scene_t *s, int y, pod_state_t st, int32_t elapsed_s, const char *engine, int32_t tokens_in, int32_t tokens_out,
+ uint32_t now_ms);
+// The list meta word and its colour for a state. Returns 1 (0 for an unknown state, word "").
+int ci_state_word(pod_state_t st, const char **word, uint16_t *ink);
+void ci_fmt_tokens(char *out, size_t n, int32_t v); // "980", "2.3k", "10.1k", "1.2M"
+void ci_fmt_elapsed(char *out, size_t n, int32_t s); // "2:14", "1:02:03", "—" when s < 0
+
+// The Agent and Recap screens (pod_view_agent.c): the head (pet, name, "Tab . Machine") and metadata band (Tokens on the right when
+// `tokens` and the agent has them, else Engine); the "RIGHT NOW" caps label; "Updated just now / 3m ago / 2h ago" (false when the event
+// time is unknown); `row` + U+2026 trimmed to fit max_w.
+void ci_agent_head(pod_out_frame_t *, const pod_model_t *, const pod_agent_t *, pod_state_t, uint32_t now_ms, bool tokens);
+void ci_caps(ht_scene_t *, int x, int y, const char *label);
+bool ci_updated(char *out, size_t n, const pod_agent_t *, uint32_t now_ms);
+void ci_dotted(char out[POD_ROW_MAX], const char *row, const ht_pro_font_t *, int max_w);
+
+void ci_connection_lost(pod_out_frame_t *f, uint8_t unread); // Connection lost: the whole screen, no hits (ci_connection.c)
diff --git a/devices/harness-pro/firmware/main/pod/classic/ci_chrome.c b/devices/harness-pro/firmware/main/pod/classic/ci_chrome.c
new file mode 100644
index 000000000..175963db9
--- /dev/null
+++ b/devices/harness-pro/firmware/main/pod/classic/ci_chrome.c
@@ -0,0 +1,240 @@
+// Classic Index chrome: the bar, footer, Talk transport, mark box and metadata band (ci.h). Text goes through
+// ht_pro_text with the Liberation Sans ci_* faces; the icons come from rects, pod_chevron, pod_tick, pod_eq and pod_arc.
+#include "pod/classic/ci.h"
+
+#include <stdio.h>
+#include <string.h>
+
+static uint16_t C(unsigned rgb) { return ht_rgb(rgb); }
+static int imin(int a, int b) { return a < b ? a : b; }
+static int imax(int a, int b) { return a > b ? a : b; }
+#define EM_DASH "\xe2\x80\x94"
+#define MIDDOT "\xc2\xb7"
+#define ELLIPSIS "\xe2\x80\xa6"
+
+// `t` in out (cap bytes) cut at a character boundary and ended with U+2026 when it is wider than max_w; returns the width.
+static int fit_text(char *out, size_t cap, const ht_pro_font_t *font, int max_w, const char *t)
+{
+ t = t ? t : "";
+ if (strlen(t) < cap && ht_pro_width(font, t) <= max_w) { strcpy(out, t); return ht_pro_width(font, out); }
+ // Binary search on the cut (the width only grows with it): the longest boundary whose text + U+2026 fits.
+ size_t best = 0, len = strlen(t), lo = 1, hi = len < cap - sizeof ELLIPSIS - 1 ? len : cap - sizeof ELLIPSIS - 1;
+ while (lo <= hi) {
+ size_t i = lo + (hi - lo) / 2;
+ while (i > lo && t[i] && ((unsigned char)t[i] & 0xc0) == 0x80) i--; // inside a sequence: step back to a boundary
+ if (t[i] && ((unsigned char)t[i] & 0xc0) == 0x80) { lo = i + 1; continue; }
+ size_t n = i;
+ while (n && t[n - 1] == ' ') n--;
+ memcpy(out, t, n);
+ memcpy(out + n, ELLIPSIS, sizeof ELLIPSIS);
+ if (ht_pro_width(font, out) > max_w) hi = i - 1;
+ else { best = n; lo = i + 1; }
+ }
+ memcpy(out, t, best);
+ memcpy(out + best, ELLIPSIS, sizeof ELLIPSIS);
+ int w = ht_pro_width(font, out);
+ if (w > max_w) { out[0] = 0; w = 0; } // not even the mark fits
+ return w;
+}
+void ci_text(ht_scene_t *s, int x, int y, int max_w, const ht_pro_font_t *f, uint16_t ink, const char *utf8)
+{
+ char buf[HT_TEXT_BYTES];
+ int w = fit_text(buf, sizeof buf, f, max_w, utf8);
+ if (w > 0) ht_pro_text(s, x, y, w, f, ink, buf);
+}
+int ci_wrap(const char *utf8, const ht_pro_font_t *f, int max_w, int max_lines, char rows[][POD_ROW_MAX])
+{
+ int n = pod_wrap_hard(utf8, f, max_w, max_lines, rows);
+ if (n > 0) { // pod_wrap's last row takes the rest of the text: cut it to fit
+ char cut[POD_ROW_MAX];
+ fit_text(cut, sizeof cut, f, max_w, rows[n - 1]);
+ strcpy(rows[n - 1], cut);
+ }
+ return n;
+}
+// Each channel of `c` moved toward `g` by (100 - keep)%: the disabled Talk button's 45%.
+static uint16_t fade(unsigned rgb, unsigned ground, int keep)
+{
+ unsigned out = 0;
+ for (int sh = 16; sh >= 0; sh -= 8) {
+ int a = (int)((rgb >> sh) & 255), b = (int)((ground >> sh) & 255);
+ out |= (unsigned)((a * keep + b * (100 - keep)) / 100) << sh;
+ }
+ return ht_rgb(out);
+}
+
+// ---- icons ----------------------------------------------------------------------------------------------
+
+static void ci_bell_glyph(ht_scene_t *s, int x, int y, int h, uint16_t ink)
+{
+ // The design's outline bell (24 box, stroke 1.75): dome arc, two sides, base and clapper bars. 5 runs.
+#define K(v) ((v) * h / 24)
+ const int sw = imax(2, (7 * h + 48) / 96), sw16 = 7 * h / 6;
+ pod_arc(s, x * 16 + h * 8, y * 16 + h * 6, h * 10 / 3, sw16, 90, 90, ink); // the dome: centre (12, 9), r 5
+ ht_pro_rect(s, x + K(7) - sw / 2, y + K(9), sw, K(16) - K(9) + sw / 2, 0, ink); // left side, down to the base
+ ht_pro_rect(s, x + K(17) - sw / 2, y + K(9), sw, K(16) - K(9) + sw / 2, 0, ink); // right side
+ ht_pro_rect(s, x + K(5) - sw / 2, y + K(16) - sw / 2, K(14) + sw, sw, sw / 2, ink); // the base, y 16
+ ht_pro_rect(s, x + K(10), y + K(20) - sw / 2, K(4), sw, sw / 2, ink); // the clapper, y 20
+#undef K
+}
+static void pod_mic_draw(ht_scene_t *s, int cx, int mid, int pct, uint16_t ink)
+{
+#define K(v) ((v) * pct / 100)
+ ht_pro_rect(s, cx - K(11), mid - K(26), K(22), K(34), K(22) / 2, ink); // the capsule
+ pod_arc(s, cx * 16, mid * 16 - K(58), K(281), K(72), 270, 90, ink); // the cradle
+ ht_pro_rect(s, cx - K(2), mid + K(15), K(4) > 0 ? K(4) : 1, K(12), 0, ink); // a pixel into the cradle: no seam
+#undef K
+}
+
+// ---- bar and footer -------------------------------------------------------------------------------------
+
+void ci_bar(pod_out_frame_t *f, const char *title, const char *back, uint8_t unread, bool bell)
+{
+ ht_scene_t *s = f->scene;
+ pod_grad_gray(s, 0, 0, POD_W, CI_BAR_H, C(0xf8f9f7), C(0xe9eae5));
+ ht_pro_rect(s, 0, 0, POD_W, 1, 0, C(0xffffff));
+ ht_pro_rect(s, 0, CI_BAR_H, POD_W, 1, 0, C(0xbcc4c1));
+ if (back) {
+ pod_chevron(s, 32, 44, 9, CI_BLUE);
+ ci_text(s, 62, (CI_BAR_H - ci_rg_26.height) / 2, 115, &ci_rg_26, C(0x314449), back);
+ pod_hit_add(f, 0, 0, CI_BACK_W, CI_BAR_H, POD_A_BACK, 0);
+ } else {
+ ci_text(s, 29, (CI_BAR_H - ci_bd_26.height) / 2, CI_BACK_W - 29, &ci_bd_26, CI_INK, "Harness");
+ }
+ if (title && *title) {
+ char cut[HT_TEXT_BYTES];
+ int w = fit_text(cut, sizeof cut, &ci_bd_30, 2 * (POD_W / 2 - CI_BACK_W), title);
+ if (w > 0) ht_pro_text(s, (POD_W - w) / 2, (CI_BAR_H - ci_bd_30.height) / 2, w, &ci_bd_30, CI_INK, cut);
+ }
+ f->bell_x = 0;
+ f->unread = bell ? unread : 0;
+ if (!bell) return;
+ int right = POD_W - 24, bx = right;
+ if (unread) {
+ char n[8];
+ snprintf(n, sizeof n, "%d", unread);
+ int tw = ht_pro_width(&ci_bd_24, n), w = tw + 10 > 34 ? tw + 10 : 34, px = right - w, py = (CI_BAR_H - 31) / 2;
+ ht_pro_rect_aa(s, px, py, w, 31, 15, CI_BLUE);
+ ht_pro_text(s, px + (w - tw) / 2, py + (31 - ci_bd_24.height) / 2, tw, &ci_bd_24, C(0xffffff), n);
+ bx = px - 8;
+ }
+ bx -= 28;
+ ci_bell_glyph(s, bx, (CI_BAR_H - 30) / 2, 30, C(0x314449));
+ f->bell_x = (int16_t)bx;
+ pod_hit_add(f, POD_W - CI_BELL_W, 0, CI_BELL_W, CI_BAR_H, POD_A_INBOX, 0);
+}
+
+void ci_foot(ht_scene_t *s, const char *left, bool led, const char *right_caps)
+{
+ const int y = CI_FOOT_Y, h = POD_W - y, cy = y + h / 2;
+ pod_grad_gray(s, 0, y, POD_W, h, C(0xf8f9f7), C(0xe9eae5));
+ ht_pro_rect(s, 0, y, POD_W, 1, 0, C(0xc4cbc7));
+ int rw = right_caps && *right_caps ? imin(ht_pro_width(&ci_rg_20, right_caps), 300) : 0;
+ int x = CI_MARGIN;
+ if (led) { ht_pro_rect_aa(s, x, cy - 4, 8, 8, 4, CI_GREEN); x += 8 + 10; }
+ if (left && *left) ci_text(s, x, cy - ci_rg_23.height / 2, POD_W - CI_MARGIN - x - (rw ? rw + 16 : 0), &ci_rg_23, CI_MUTED, left);
+ if (rw) ci_text(s, POD_W - CI_MARGIN - rw, cy - ci_rg_20.height / 2, rw, &ci_rg_20, CI_MUTED, right_caps);
+}
+
+// ---- transport ------------------------------------------------------------------------------------------
+
+void ci_talk(pod_out_frame_t *f, bool enabled)
+{
+ ht_scene_t *s = f->scene;
+ const int keep = enabled ? 100 : 45, x = CI_TALK_X, y = CI_TALK_Y, w = CI_TALK_W, h = CI_TALK_H;
+ pod_grad_gray(s, 0, CI_TRANS_Y, POD_W, POD_W - CI_TRANS_Y, C(0xf8f9f7), C(0xe9eae5));
+ ht_pro_rect(s, 0, CI_TRANS_Y, POD_W, 1, 0, C(0xc4cbc7));
+ const unsigned ground = 0xe9eae5;
+ ht_pro_rect_aa(s, x, y, w, h, 7, fade(0x1145a0, ground, keep));
+ pod_grad_aa(s, x + 1, y + 1, w - 2, h - 2, 6, fade(0x286fda, ground, keep), fade(0x1759bd, ground, keep));
+ ht_pro_rect(s, x + 7, y + 1, w - 14, 1, 0, fade(0x6aa2ee, ground, keep)); // the top highlight
+ const uint16_t white = fade(0xffffff, ground, keep);
+ const int tw = ht_pro_width(&ci_rg_28, "Talk"), micw = 24, gap = 12, x0 = POD_W / 2 - (micw + gap + tw) / 2, cy = y + h / 2;
+ pod_mic_draw(s, x0 + micw / 2, cy - 1, 60, white);
+ ht_pro_text(s, x0 + micw + gap, cy - ci_rg_28.height / 2, tw, &ci_rg_28, white, "Talk");
+ if (enabled) pod_hit_add(f, x, y, w, h, POD_A_TALK, 0);
+}
+
+// ---- mark and band --------------------------------------------------------------------------------------
+
+void ci_mark(ht_scene_t *s, int x, int y, const char *engine)
+{
+ const unsigned fill = 0xe6e9df;
+ ht_pro_rect_aa_stroke(s, x, y, CI_MARK, CI_MARK, 8, C(0xc8cec7), C(fill));
+ const pod_mark_t *m = pod_mark(engine);
+ if (!m) { pod_mark_default(s, x + (CI_MARK - POD_DEFAULT_MARK_SIDE) / 2, y + (CI_MARK - POD_DEFAULT_MARK_SIDE) / 2, C(fill)); return; }
+ if (m->light) ht_pro_rect(s, x + 10, y + 10, 36, 36, 8, C(0x1d1e23)); // pale art sits on a dark chip
+ pod_logo_draw(s, x + 10, y + 10, 36, engine);
+}
+
+int ci_state_word(pod_state_t st, const char **word, uint16_t *ink)
+{
+ const char *w = ""; uint16_t c = CI_MUTED; int ok = 1;
+ switch (st) {
+ case POD_WORKING: w = "Working"; c = C(0x377052); break;
+ case POD_DONE: w = "Finished"; break;
+ case POD_ASKING: w = "Needs you"; c = C(0x956616); break;
+ case POD_IDLE: w = "Ready"; break;
+ case POD_OFFLINE: w = "Offline"; break;
+ default: ok = 0;
+ }
+ if (word) *word = w;
+ if (ink) *ink = c;
+ return ok;
+}
+
+void ci_fmt_tokens(char *out, size_t n, int32_t v)
+{
+ if (!n) return;
+ if (v < 0) snprintf(out, n, EM_DASH);
+ else if (v < 1000) snprintf(out, n, "%d", (int)v);
+ else if (v < 999950) snprintf(out, n, "%d.%dk", (int)((v + 50) / 1000), (int)((v + 50) % 1000 / 100));
+ else snprintf(out, n, "%d.%dM", (int)(((int64_t)v + 50000) / 1000000), (int)(((int64_t)v + 50000) % 1000000 / 100000));
+}
+void ci_fmt_elapsed(char *out, size_t n, int32_t sec)
+{
+ if (!n) return;
+ if (sec < 0) snprintf(out, n, EM_DASH);
+ else if (sec < 3600) snprintf(out, n, "%d:%02d", (int)(sec / 60), (int)(sec % 60));
+ else snprintf(out, n, "%d:%02d:%02d", (int)(sec / 3600), (int)(sec / 60 % 60), (int)(sec % 60));
+}
+
+void ci_band(ht_scene_t *s, int y, pod_state_t st, int32_t elapsed_s, const char *engine, int32_t tokens_in, int32_t tokens_out,
+ uint32_t now_ms)
+{
+ const int h = 88, split = 321, rx = 336, x0 = CI_MARGIN, x1 = POD_W - CI_MARGIN; // the mockup's columns; rules inset to the margins
+ ht_pro_rect(s, x0, y, x1 - x0, 1, 0, CI_RULE);
+ ht_pro_rect(s, x0, y + h - 1, x1 - x0, 1, 0, CI_RULE);
+ ht_pro_rect(s, split, y + 1, 1, h - 2, 0, C(0xd7ddd3));
+ // left: icon + state word, then the elapsed time
+ const char *word; uint16_t listc;
+ ci_state_word(st, &word, &listc);
+ uint16_t ink = st == POD_WORKING || st == POD_DONE || st == POD_IDLE ? CI_GREEN : st == POD_ASKING ? CI_AMBER : CI_MUTED;
+ const int wy = y + 10, cy = wy + ci_rg_25.height / 2;
+ if (st == POD_WORKING) pod_eq(s, CI_MARGIN, cy - 10, CI_EQ, now_ms);
+ else if (st == POD_DONE) pod_tick(s, CI_MARGIN, cy - 8, CI_GREEN);
+ else ht_pro_rect_aa(s, CI_MARGIN + 2, cy - 5, 10, 10, 5, ink);
+ ci_text(s, CI_MARGIN + 34, wy, split - CI_MARGIN - 34 - 8, &ci_rg_25, ink, word);
+ char el[16];
+ ci_fmt_elapsed(el, sizeof el, elapsed_s);
+ ci_text(s, CI_MARGIN, y + 48, split - CI_MARGIN - 8, &ci_rg_22, C(0x6b746c), el);
+ // right: Tokens, or Engine with its logo
+ const int vy = y + 44, vmax = POD_W - CI_MARGIN - rx;
+ if (tokens_in >= 0) {
+ char a[16], b[16], line[48];
+ ci_fmt_tokens(a, sizeof a, tokens_in);
+ if (tokens_out >= 0) {
+ ci_fmt_tokens(b, sizeof b, tokens_out);
+ snprintf(line, sizeof line, "%s in " MIDDOT " %s out", a, b);
+ } else snprintf(line, sizeof line, "%s in", a);
+ ci_text(s, rx, y + 10, vmax, &ci_rg_20, CI_MUTED, "Tokens");
+ ci_text(s, rx, vy, vmax, &ci_rg_26, CI_INK, line);
+ } else {
+ char name[24];
+ pod_engine_name(name, sizeof name, engine);
+ ci_text(s, rx, y + 10, vmax, &ci_rg_20, CI_MUTED, "Engine");
+ int x = rx;
+ if (pod_logo_draw(s, x, y + 48, 28, engine)) x += 28 + 10;
+ ci_text(s, x, vy, POD_W - CI_MARGIN - x, &ci_rg_26, CI_INK, name[0] ? name : EM_DASH);
+ }
+}
diff --git a/devices/harness-pro/firmware/main/pod/classic/ci_connection.c b/devices/harness-pro/firmware/main/pod/classic/ci_connection.c
new file mode 100644
index 000000000..5e9e6c7ad
--- /dev/null
+++ b/devices/harness-pro/firmware/main/pod/classic/ci_connection.c
@@ -0,0 +1,25 @@
+// Classic "Connection lost" (spec 2026-10-13): drawn in place of the stack while the cable is down. The bar (brand,
+// "Connection", the bell with its count, no hit), the grid icon, the heading and two lines, the footer "Disconnected".
+#include "pod/classic/ci.h"
+
+static void centered(ht_scene_t *s, int y, const ht_pro_font_t *f, uint16_t ink, const char *t)
+{
+ int w = ht_pro_width(f, t);
+ ht_pro_text(s, (POD_W - w) / 2, y, w, f, ink, t);
+}
+
+void ci_connection_lost(pod_out_frame_t *f, uint8_t unread)
+{
+ ht_scene_t *s = f->scene;
+ ci_bar(f, "Connection", NULL, unread, true);
+ f->hit_count = 0; // nothing to open without a cable; the stack returns with the link
+ for (int i = 0; i < 4; i++) { // four 19 px squares, 3 px stroke
+ int x = 339 + (i & 1) * 23, y = 235 + (i >> 1) * 23;
+ ht_pro_rect_aa(s, x, y, 19, 19, 3, CI_INK);
+ ht_pro_rect_aa(s, x + 3, y + 3, 13, 13, 1, CI_GROUND);
+ }
+ centered(s, 292, &ci_rg_43, CI_INK, "Connection lost.");
+ centered(s, 385, &ci_rg_25, CI_MUTED, "Live status is unavailable.");
+ centered(s, 423, &ci_rg_25, CI_MUTED, "Your saved results and unread marks remain.");
+ ci_foot(s, "Disconnected", true, NULL);
+}
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_chrome.c b/devices/harness-pro/firmware/main/pod/classic/pod_chrome.c
index 971b8dae1..28cfdcd68 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_chrome.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_chrome.c
@@ -1,16 +1,13 @@
-// What every Pod screen shares: the status bar, the engine mark and its chip, the equaliser, the pane diagram,
-// the Recent tile's face and the transport. The Pro fonts have no arrows, chevrons or ticks, so the icons are
-// drawn from POD_TRI triangles: a play triangle is one, and a chevron or tick is two strokes with a mitered joint
-// (four triangles, no round caps).
+// What the Pod views share: the hit list, the model helpers (names, times, a tab's counts and panes), the equaliser and
+// the chevron and tick icons. The Pro fonts have no chevrons or ticks, so they are drawn as two strokes with a mitered
+// joint (four POD_TRI triangles, no round caps).
#include "pod/pod_view.h"
+#include "pod/classic/ci.h"
#include "pro_canvas.h"
#include <stdio.h>
#include <string.h>
-static uint16_t C(unsigned rgb) { return ht_rgb(rgb); }
-static int imin(int a, int b) { return a < b ? a : b; }
-static int imax(int a, int b) { return a > b ? a : b; }
bool pod_hit_add(pod_out_frame_t *f, int x, int y, int w, int h, pod_action_t action, int arg)
{
@@ -87,12 +84,6 @@ int pod_agent_pane(const pod_model_t *m, const pod_agent_t *a, const pod_tab_t *
// ---- icons ----------------------------------------------------------------------------------------------
-void pod_play(ht_scene_t *s, int x, int y, int w, int h, int dir, uint16_t ink)
-{
- int mid = y * 16 + h * 8;
- if (dir) pod_tri(s, (x + w) * 16, y * 16, (x + w) * 16, (y + h) * 16, x * 16, mid, ink);
- else pod_tri(s, x * 16, y * 16, x * 16, (y + h) * 16, (x + w) * 16, mid, ink);
-}
static int isqrt32(uint32_t n)
{
uint32_t root = 0, bit = 1u << 30;
@@ -138,54 +129,6 @@ void pod_tick(ht_scene_t *s, int x, int y, uint16_t ink)
miter(s, p, 48, ink);
}
-// ---- status bar -----------------------------------------------------------------------------------------
-
-// The y that centres a line's capitals (cap top to baseline) on the status bar, not its whole cell: the cell
-// includes the descender, so a cell centred on the bar sat 4 px low ("Tabs" under its bar, owner 2026-10-10).
-// Cap top and cap height measured from the Helvetica atlases (generate_fonts.py): 32 px 9 + 23, 24 px 6 + 17.
-int pod_status_text_y(const ht_pro_font_t *font)
-{
- int top = font == &ht_pro_32 ? 9 : 6, cap = font == &ht_pro_32 ? 23 : 17;
- return POD_STATUS_H / 2 - cap / 2 - top;
-}
-
-// The bell pill at the right end of the bar while f->unread > 0: blue, a bell drawn from rounded rects (the fonts have no
-// bell) and the count in white. 6 runs (POD_BELL_RUNS). Its hit opens the Inbox.
-static void bell(pod_out_frame_t *f)
-{
- ht_scene_t *s = f->scene;
- char n[8];
- snprintf(n, sizeof n, "%d", f->unread);
- int tw = ht_pro_width(&ht_pro_24, n), w = 41 + tw + 14, x = POD_W - 16 - w, y = 9;
- f->bell_x = (int16_t)x;
- ht_pro_rect(s, x, y, w, 36, 18, C(0x1f63d1));
- ht_pro_rect(s, x + 22, y + 5, 4, 4, 2, C(0xffffff)); // the knob
- ht_pro_rect(s, x + 16, y + 8, 16, 16, 8, C(0xffffff)); // the dome
- ht_pro_rect(s, x + 12, y + 21, 24, 4, 2, C(0xffffff)); // the flared rim
- ht_pro_rect(s, x + 20, y + 27, 8, 4, 2, C(0xffffff)); // the clapper
- ht_pro_text(s, x + 41, pod_status_text_y(&ht_pro_24), tw, &ht_pro_24, C(0xffffff), n);
- pod_hit_add(f, x - 16, 0, w + 32, 60, POD_A_INBOX, 0);
-}
-
-void pod_status(pod_out_frame_t *f, const char *title, bool back, int working)
-{
- ht_scene_t *s = f->scene;
- pod_grad(s, 0, 0, POD_W, POD_STATUS_H, 0, C(0xf7f8fa), C(0xdcdee3));
- if (back) {
- pod_chevron(s, 24, 27, 13, C(0x1f63d1));
- pod_hit_add(f, 0, 0, 120, 60, POD_A_BACK, 0);
- } else if (working > 0) {
- char n[12];
- snprintf(n, sizeof n, "%d", working);
- pod_play(s, 24, 19, 14, 16, 0, C(0x7b7d84));
- ht_pro_text(s, 46, pod_status_text_y(&ht_pro_24), 60, &ht_pro_24, C(0x7b7d84), n);
- }
- int w = imin(ht_pro_width(&ht_pro_32, title), 480);
- ht_pro_text(s, (POD_W - w) / 2, pod_status_text_y(&ht_pro_32), w, &ht_pro_32, C(0x111111), title);
- f->bell_x = 0;
- if (f->unread) bell(f);
-}
-
const char *pod_view_title(const pod_nav_t *nav, const pod_model_t *m)
{
const pod_frame_t *f = nav->depth ? &nav->stack[nav->depth - 1] : NULL;
@@ -200,31 +143,6 @@ const char *pod_view_title(const pod_nav_t *nav, const pod_model_t *m)
return f->tab >= 0 && f->tab < m->tab_count ? m->tabs[f->tab].name : "Tab";
}
-// ---- marks and the equaliser ----------------------------------------------------------------------------
-
-unsigned pod_mark_runs(const char *engine)
-{
- const pod_mark_t *m = pod_mark(engine);
- return m ? (m->light ? 2u : 1u) : (unsigned)POD_DEFAULT_MARK_RUNS;
-}
-bool pod_mark_chip_on(ht_scene_t *s, int x, int y, const char *engine, uint16_t ground)
-{
- const pod_mark_t *m = pod_mark(engine);
- if (!m) { pod_mark_default(s, x + 1, y + 1, ground); return true; }
- if (m->light) ht_pro_rect(s, x, y, 36, 36, 8, C(0x1d1e23));
- return pod_logo_draw(s, x + 4, y + 4, POD_LOGO_CHIP, engine);
-}
-bool pod_mark_chip_dim_on(ht_scene_t *s, int x, int y, const char *engine, uint16_t ground)
-{
- const pod_mark_t *m = pod_mark(engine);
- if (!m) { pod_mark_default(s, x + 1, y + 1, ground); return true; } // already grey
- if (m->light) ht_pro_rect(s, x, y, 36, 36, 8, C(0xb8bab8));
- return pod_logo_draw_faded(s, x + 4, y + 4, POD_LOGO_CHIP, engine, POD_MARK_DIM);
-}
-bool pod_mark_chip(ht_scene_t *s, int x, int y, const char *engine)
-{
- return pod_mark_chip_on(s, x, y, engine, C(0xffffff));
-}
void pod_eq(ht_scene_t *s, int x, int y, uint16_t ink, uint32_t now_ms)
{
static const uint16_t phase[3] = {0, 300, 600};
@@ -234,312 +152,3 @@ void pod_eq(ht_scene_t *s, int x, int y, uint16_t ink, uint32_t now_ms)
ht_pro_rect(s, x + i * 9, y + 20 - h, 5, h, 1, ink);
}
}
-
-// ---- the pane diagram -----------------------------------------------------------------------------------
-
-typedef pod_box_t box_t;
-
-static int real_panes(const pod_tab_t *t) { return t->count ? t->count : t->panes; }
-// A tab with no panes still draws one, holding the default mark.
-static int pane_count(const pod_tab_t *t) { int n = real_panes(t); return n ? n : 1; }
-static const pod_agent_t *pane_agent(const pod_model_t *m, const pod_tab_t *t, int k)
-{
- if (!t->members_known || k >= t->count || k >= POD_PANES_MAX) return NULL;
- int i = t->agent[k];
- return i >= 0 && i < m->agent_count ? &m->agents[i] : NULL;
-}
-// Cell i of n along `len` px starting at `at`, with `gap` between cells.
-static void cell(int at, int len, int gap, int n, int i, int *pos, int *size)
-{
- int room = len - (n - 1) * gap;
- int a = at + i * gap + room * i / n, b = at + i * gap + room * (i + 1) / n;
- *pos = a; *size = b - a;
-}
-// The boxes of the panes in the side x side box at (x, y). With the desktop's own rects every pane (up to
-// POD_PANES_MAX) gets its rect; else a preset grid by count: 1; 2 side by side; 3 = one tall + two; 4 = 2 x 2;
-// 5-6 = 3 x 2; 7-9 = 3 x 3, row-major; beyond 9 the first 8 and a ninth cell holding "+N". Returns the pane boxes;
-// *extra is the panes beyond them (their count goes in the cell out[return value]).
-static int layout_pg(const pod_tab_t *t, int x, int y, int side, int pad, int g, box_t out[POD_PANES_MAX], int *extra)
-{
- int n = pane_count(t);
- *extra = 0;
- int ix = x + pad, iy = y + pad, iw = side - 2 * pad;
- if (t->has_rects && real_panes(t)) {
- // The desktop's own rects (0..1000): shrink each by half a gap, over an area grown by the same.
- int hg = g / 2, ax = x + pad - hg, ay = y + pad - hg, aw = side - 2 * pad + g, shown = imin(real_panes(t), POD_PANES_MAX);
- for (int k = 0; k < shown; k++) {
- const pod_rect_t *r = &t->rect[k];
- int x0 = ax + r->x1 * aw / 1000 + hg, x1 = ax + r->x2 * aw / 1000 - hg;
- int y0 = ay + r->y1 * aw / 1000 + hg, y1 = ay + r->y2 * aw / 1000 - hg;
- out[k] = (box_t){x0, y0, imax(8, x1 - x0), imax(8, y1 - y0)};
- }
- return shown;
- }
- int half = (iw - g) / 2;
- if (n == 1) { out[0] = (box_t){ix, iy, iw, iw}; return 1; }
- if (n == 2) {
- out[0] = (box_t){ix, iy, half, iw};
- out[1] = (box_t){ix + half + g, iy, iw - half - g, iw};
- return 2;
- }
- if (n == 3) {
- out[0] = (box_t){ix, iy, half, iw};
- out[1] = (box_t){ix + half + g, iy, iw - half - g, half};
- out[2] = (box_t){ix + half + g, iy + half + g, iw - half - g, iw - half - g};
- return 3;
- }
- int cols = n == 4 ? 2 : 3, rows = n <= 4 ? 2 : n <= 6 ? 2 : 3, cells = cols * rows;
- int shown = n > 9 ? 8 : n;
- if (n > 9) *extra = n - 8;
- int total = *extra ? cells : shown;
- for (int k = 0; k < total; k++) {
- int bx, bw, by, bh;
- cell(ix, iw, g, cols, k % cols, &bx, &bw);
- cell(iy, iw, g, rows, k / cols, &by, &bh);
- out[k] = (box_t){bx, by, bw, bh};
- }
- return shown;
-}
-static int layout(const pod_tab_t *t, int x, int y, int side, box_t out[POD_PANES_MAX], int *extra)
-{
- return layout_pg(t, x, y, side, 8, 6, out, extra);
-}
-static bool has_foot(const pod_model_t *m, const pod_agent_t *a)
-{
- if (!a) return false;
- pod_state_t st = pod_model_eff(m, a);
- return st == POD_WORKING || st == POD_ASKING;
-}
-// A mark is 36 px: a pane smaller than that in either direction goes without (a mark would spill over its neighbours).
-static bool mark_fits(const box_t *b) { return b->w >= 34 && b->h >= 34; }
-
-// The marks the first `marks` panes draw count; a pane past that is a tint. See pod_panes_runs.
-unsigned pod_panes_runs(const pod_model_t *m, const pod_tab_t *t, int side, int detail)
-{
- box_t b[POD_PANES_MAX];
- int extra, shown = layout(t, 0, 0, side, b, &extra);
- unsigned n = (detail & POD_DETAIL_BORDER) ? 2u : 1u;
- for (int k = 0; k < shown; k++) {
- const pod_agent_t *a = pane_agent(m, t, k);
- n++;
- if ((detail & POD_DETAIL_FEET) && has_foot(m, a)) n++;
- if ((detail & POD_DETAIL_MARKS) && mark_fits(&b[k])) n += pod_mark_runs(a ? a->engine : NULL);
- }
- return n + (extra > 0 ? 2u : 0u);
-}
-void pod_panes_ex(ht_scene_t *s, int x, int y, int side, const pod_model_t *m, const pod_tab_t *t, int detail)
-{
- if (detail & POD_DETAIL_BORDER) {
- ht_pro_rect(s, x, y, side, side, 12, C(0xd9dbe0));
- ht_pro_rect(s, x + 1, y + 1, side - 2, side - 2, 11, C(0xffffff));
- } else {
- ht_pro_rect(s, x, y, side, side, 12, C(0xf6f7f9));
- }
- box_t b[POD_PANES_MAX];
- int extra, n = layout(t, x, y, side, b, &extra);
- for (int k = 0; k < n; k++) {
- const pod_agent_t *a = pane_agent(m, t, k);
- pod_state_t st = a ? pod_model_eff(m, a) : POD_IDLE;
- unsigned tint = st == POD_WORKING ? 0xe2edfd : st == POD_ASKING ? 0xfff1dc : 0xebefeb; // neutral in RGB565: 0xf0f1f4 came out pink (R and B have 5 bits, G 6)
- ht_pro_rect(s, b[k].x, b[k].y, b[k].w, b[k].h, 7, C(tint));
- if ((detail & POD_DETAIL_FEET) && has_foot(m, a))
- ht_pro_rect(s, b[k].x + 3, b[k].y + b[k].h - 4, b[k].w - 6, 4, 2, C(st == POD_WORKING ? 0x1f63d1 : 0xff9f0a));
- if ((detail & POD_DETAIL_MARKS) && mark_fits(&b[k])) // an unknown member or engine gets the default mark
- (st == POD_OFFLINE ? pod_mark_chip_dim_on : pod_mark_chip_on)(s, b[k].x + (b[k].w - 36) / 2, b[k].y + (b[k].h - 36) / 2, a ? a->engine : NULL, C(tint));
- }
- if (extra > 0) { // the ninth cell: the rest, as a count
- char more[12];
- snprintf(more, sizeof more, "+%d", extra);
- int w = ht_pro_width(&ht_pro_24, more);
- ht_pro_rect(s, b[n].x, b[n].y, b[n].w, b[n].h, 7, C(0xebefeb));
- ht_pro_text(s, b[n].x + (b[n].w - w) / 2, b[n].y + (b[n].h - ht_pro_24.height) / 2, w, &ht_pro_24, C(0x111111), more);
- }
-}
-void pod_panes(ht_scene_t *s, int x, int y, int side, const pod_model_t *m, const pod_tab_t *t)
-{
- pod_panes_ex(s, x, y, side, m, t, POD_DETAIL_FULL);
-}
-
-// ---- a tab as an album cover ----------------------------------------------------------------------------
-
-// The panes' cards on a cover scale with it: the padding is 9% of the side and the gap 3.6%.
-static int cover_pad(int side) { return side * 9 / 100; }
-static int cover_gap(int side) { return side * 36 / 1000; }
-int pod_cover_layout(const pod_tab_t *t, int side, pod_box_t out[POD_PANES_MAX], int *extra)
-{
- return layout_pg(t, 0, 0, side, cover_pad(side), cover_gap(side), out, extra);
-}
-unsigned pod_cover_cards_runs(const pod_model_t *m, const pod_tab_t *t, int side, int detail)
-{
- box_t b[POD_PANES_MAX];
- int extra, shown = layout_pg(t, 0, 0, side, cover_pad(side), cover_gap(side), b, &extra);
- unsigned n = 0;
- for (int k = 0; k < shown; k++) {
- const pod_agent_t *a = pane_agent(m, t, k);
- n += 1u;
- if ((detail & POD_COVER_FEET) && has_foot(m, a)) n++;
- if ((detail & POD_COVER_MARKS) && mark_fits(&b[k])) n += pod_mark_runs(a ? a->engine : NULL);
- }
- return n + (extra > 0 ? 2u : 0u);
-}
-void pod_cover_cards(ht_scene_t *s, int x, int y, int side, const pod_model_t *m, const pod_tab_t *t, int detail)
-{
- box_t b[POD_PANES_MAX];
- int extra, n = layout_pg(t, x, y, side, cover_pad(side), cover_gap(side), b, &extra);
- for (int k = 0; k < n; k++) {
- const pod_agent_t *a = pane_agent(m, t, k);
- ht_pro_rect(s, b[k].x, b[k].y, b[k].w, b[k].h, 8, C(0xffffff));
- if ((detail & POD_COVER_MARKS) && mark_fits(&b[k])) // an unknown member or engine gets the default mark
- (a && pod_model_eff(m, a) == POD_OFFLINE ? pod_mark_chip_dim_on : pod_mark_chip_on)(s, b[k].x + (b[k].w - 36) / 2, b[k].y + (b[k].h - 36) / 2, a ? a->engine : NULL, C(0xffffff));
- if ((detail & POD_COVER_FEET) && has_foot(m, a)) // working: green; asking: amber
- ht_pro_rect(s, b[k].x + b[k].w - 18, b[k].y + 6, 12, 12, 6, C(pod_model_eff(m, a) == POD_WORKING ? 0x34c759 : 0xff9f0a));
- }
- if (extra > 0) {
- char more[12];
- snprintf(more, sizeof more, "+%d", extra);
- int w = ht_pro_width(&ht_pro_24, more);
- ht_pro_rect(s, b[n].x, b[n].y, b[n].w, b[n].h, 8, C(0xffffff));
- ht_pro_text(s, b[n].x + (b[n].w - w) / 2, b[n].y + (b[n].h - ht_pro_24.height) / 2, w, &ht_pro_24, C(0x111111), more);
- }
-}
-
-// Recent's cover: up to 8 agents' marks, 4 x 2, each in a white rounded square, a dot on the working and asking ones.
-enum { RECENT_COLS = 4 };
-static void recent_cell(int side, int i, int *x, int *y, int *w)
-{
- int pad = cover_pad(side), gap = cover_gap(side), iw = side - 2 * pad;
- *w = (iw - (RECENT_COLS - 1) * gap) / RECENT_COLS;
- int top = (side - (2 * *w + gap)) / 2;
- *x = pad + (i % RECENT_COLS) * (*w + gap);
- *y = top + (i / RECENT_COLS) * (*w + gap);
-}
-unsigned pod_cover_recent_runs(const pod_model_t *m, int side, int detail)
-{
- const pod_agent_t *l[POD_RECENT_MAX];
- int n = pod_model_recent(m, l, POD_RECENT_MAX);
- unsigned runs = 0;
- for (int i = 0; i < n; i++) {
- runs += 1u;
- if (detail & POD_COVER_MARKS) runs += pod_mark_runs(l[i]->engine);
- if ((detail & POD_COVER_FEET) && has_foot(m, l[i])) runs++;
- }
- (void)side;
- return runs;
-}
-void pod_cover_recent(ht_scene_t *s, int x, int y, int side, const pod_model_t *m, int detail)
-{
- const pod_agent_t *l[POD_RECENT_MAX];
- int n = pod_model_recent(m, l, POD_RECENT_MAX);
- for (int i = 0; i < n; i++) {
- int cx, cy, w;
- recent_cell(side, i, &cx, &cy, &w);
- cx += x; cy += y;
- ht_pro_rect(s, cx, cy, w, w, 9, C(0xffffff));
- if (detail & POD_COVER_MARKS) pod_mark_chip_on(s, cx + (w - 36) / 2, cy + (w - 36) / 2, l[i]->engine, C(0xffffff));
- if ((detail & POD_COVER_FEET) && has_foot(m, l[i]))
- ht_pro_rect(s, cx + w - 13, cy + 1, 12, 12, 6, C(pod_model_eff(m, l[i]) == POD_WORKING ? 0x34c759 : 0xff9f0a));
- }
-}
-// An empty tab's cover: a grey gradient with a big white "+" in a ring. Four runs.
-unsigned pod_cover_empty_runs(void) { return 4; }
-void pod_cover_empty(ht_scene_t *s, int x, int y, int side, int radius)
-{
- pod_grad(s, x, y, side, side, radius, C(0xa4a8b3), C(0x666a78));
- int cx = x + side / 2, cy = y + side / 2, r = side * 19 / 100, w = imax(4, side / 40);
- pod_arc(s, cx * 16, cy * 16, (r - w / 2) * 16, w * 16, 0, 180, C(0xffffff));
- int arm = r * 11 / 20;
- ht_pro_rect(s, cx - arm, cy - w / 2, 2 * arm, w, w / 2, C(0xffffff));
- ht_pro_rect(s, cx - w / 2, cy - arm, w, 2 * arm, w / 2, C(0xffffff));
-}
-
-// ---- the Recent tile's face -----------------------------------------------------------------------------
-
-// A gradient with a small clock: a ring and two hands, centred. Four runs.
-unsigned pod_recent_face_runs(void) { return 4; }
-void pod_recent_face(ht_scene_t *s, int x, int y, int side) { pod_recent_face_r(s, x, y, side, 12); }
-void pod_recent_face_r(ht_scene_t *s, int x, int y, int side, int radius)
-{
- pod_grad(s, x, y, side, side, radius, C(0x5ea2f2), C(0x1f63d1));
- int cx = x + side / 2, cy = y + side / 2, r = side * 5 / 24, w = imax(4, side / 40), hw = imax(3, side / 52);
- pod_arc(s, cx * 16, cy * 16, (r - w / 2) * 16, w * 16, 0, 180, C(0xffffff));
- ht_pro_rect(s, cx - hw / 2, cy - r * 6 / 10, hw, r * 6 / 10 + hw / 2 + 1, hw / 2, C(0xffffff)); // minute hand, up
- ht_pro_rect(s, cx - hw / 2, cy - hw / 2, r * 45 / 100 + hw / 2, hw, hw / 2, C(0xffffff)); // hour hand, right
-}
-
-// ---- the transport --------------------------------------------------------------------------------------
-
-static void centered(ht_scene_t *s, int cx, int y, const ht_pro_font_t *font, uint16_t ink, const char *text)
-{
- int w = ht_pro_width(font, text);
- ht_pro_text(s, cx - w / 2, y, w, font, ink, text);
-}
-// Material Symbols' "send" (Apache 2.0) on its 24 unit grid, as four triangles (the notch makes it concave), tilted up
-// 25 degrees like a plane taking off, the box of its ink centred on (cx, cy) (owner, 2026-10-10: offset toward the tail
-// it read as sitting low and right). Each triangle marks the edges it shares with a neighbour (pod_tri_inner) so the
-// seams do not show.
-static void send_plane(ht_scene_t *s, int cx, int cy, int size)
-{
- static const signed char tri[4][6] = {{2, 3, 23, 12, 17, 12}, {2, 3, 17, 12, 2, 10},
- {2, 21, 23, 12, 17, 12}, {2, 21, 17, 12, 2, 14}};
- static const unsigned char inner[4] = {6, 1, 6, 1};
- const float co = 0.906308f, si = 0.422618f, k = (float)size / 24.0f;
- float px[4][3], py[4][3], x0 = 1e9f, x1 = -1e9f, y0 = 1e9f, y1 = -1e9f;
- for (int i = 0; i < 4; i++)
- for (int j = 0; j < 3; j++) {
- float x = (float)tri[i][2 * j] * k, y = (float)tri[i][2 * j + 1] * k;
- px[i][j] = x * co + y * si;
- py[i][j] = -x * si + y * co;
- if (px[i][j] < x0) x0 = px[i][j];
- if (px[i][j] > x1) x1 = px[i][j];
- if (py[i][j] < y0) y0 = py[i][j];
- if (py[i][j] > y1) y1 = py[i][j];
- }
- const float ox = (float)cx - (x0 + x1) / 2, oy = (float)cy - (y0 + y1) / 2;
- for (int i = 0; i < 4; i++) {
- int v[6];
- for (int j = 0; j < 3; j++) {
- v[2 * j] = (int)((ox + px[i][j]) * 16.0f + 0.5f);
- v[2 * j + 1] = (int)((oy + py[i][j]) * 16.0f + 0.5f);
- }
- pod_tri_inner(s, v[0], v[1], v[2], v[3], v[4], v[5], C(0xffffff), inner[i]);
- }
-}
-
-void pod_transport(pod_out_frame_t *f, bool talking)
-{
- ht_scene_t *s = f->scene;
- const int top = POD_TRANSPORT_Y, mid = top + 63;
- pod_grad(s, 0, top, POD_W, POD_TRANSPORT_H, 0, C(0xf7f8fa), C(0xdcdee3));
- ht_pro_rect(s, 0, top, POD_W, 1, 0, C(0xc9cbd1));
- // TABS and PANES, the two small buttons: an icon over its word.
- for (int i = 0; i < 4; i++) // the Tabs screen's grid, 2 x 2
- ht_pro_rect(s, 62 - 18 + (i % 2) * 21, mid - 36 + (i / 2) * 21, 15, 15, 3, C(0x111111));
- centered(s, 62, mid + 6, &ht_pro_24, C(0x7b7d84), "TABS");
- centered(s, 658, mid - 41, &ht_pro_42, C(0x111111), "#");
- centered(s, 658, mid + 6, &ht_pro_24, C(0x7b7d84), "PANES");
- // Previous and next: a 3 px bar and a triangle each, 33 px across, centred on the buttons.
- ht_pro_rect(s, 236 - 16, mid - 16, 3, 32, 0, C(0x111111));
- pod_play(s, 236 - 16 + 5, mid - 16, 28, 32, 1, C(0x111111));
- pod_play(s, 484 - 17, mid - 16, 28, 32, 0, C(0x111111));
- ht_pro_rect(s, 484 - 17 + 30, mid - 16, 3, 32, 0, C(0x111111));
- // The big one, icon only, on the same blue gradient: ▶, or while listening the send button's paper plane.
- if (talking) {
- pod_grad(s, 310, mid - 50, 100, 100, 50, C(0x5ea2f2), C(0x1f63d1));
- send_plane(s, 360, mid, 60);
- } else {
- pod_grad(s, 310, mid - 50, 100, 100, 50, C(0x5ea2f2), C(0x1f63d1));
- // The voice button: a mic 40 px wide and 53 tall (10% under the first cut, owner 2026-10-12), in the proportions of the owner's sample (2026-10-12: the
- // Material glyph read too long): a capsule half the width, the cradle (the ring's lower half, flat ends) hugging
- // it, and a short stem.
- ht_pro_rect(s, 360 - 11, mid - 26, 22, 34, 11, C(0xffffff));
- pod_arc(s, 360 * 16, mid * 16 - 58, 281, 72, 270, 90, C(0xffffff));
- ht_pro_rect(s, 360 - 2, mid + 15, 4, 12, 0, C(0xffffff)); // a pixel into the cradle: no seam
- // One empty slot: the plane is four triangles, the mic three runs, so both faces add the same runs (POD_TRANSPORT_RUNS).
- pod_arc(s, 360 * 16, mid * 16, 0, 0, 0, 0, 0);
- }
- pod_hit_add(f, 10, top, 104, POD_TRANSPORT_H, POD_A_TABS, 0);
- pod_hit_add(f, 190, mid - 50, 96, 100, POD_A_PREV, 0);
- pod_hit_add(f, 300, mid - 50, 120, 100, POD_A_TALK, 0);
- pod_hit_add(f, 434, mid - 50, 96, 100, POD_A_NEXT, 0);
- pod_hit_add(f, 606, top, 104, POD_TRANSPORT_H, POD_A_PANES, 0);
-}
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_view_agent.c b/devices/harness-pro/firmware/main/pod/classic/pod_view_agent.c
index b06ce49d6..59448c572 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_view_agent.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_view_agent.c
@@ -1,13 +1,13 @@
-// The Agent screen: for an agent that is working, asking, or idle with nothing to recap. The pet as album art, the name,
-// "Tab . Machine" and a state chip, then by state the live bar and the activity, or the question box.
-// Also the helpers this screen, Recap and Talking share (pod_view_shared.h).
+// The Agent screen (Classic Index): for an agent that is working, asking, offline, or idle with nothing to recap. The head
+// (pet, name, "Tab . Machine"), the metadata band, then by state the activity, the question box or a line of copy, and Talk.
+// Also the helpers this screen, Recap and Talking share (pod_view_shared.h), and the head and band Recap reuses.
+#include "pod/classic/ci.h"
#include "pod/pod_view_shared.h"
#include <stdio.h>
#include <string.h>
static int imin(int a, int b) { return a < b ? a : b; }
-static int imax(int a, int b) { return a > b ? a : b; }
#define C pod_c
const pod_agent_t *pod_view_agent_of(const pod_nav_t *nav, const pod_model_t *m)
@@ -18,7 +18,7 @@ const pod_agent_t *pod_view_agent_of(const pod_nav_t *nav, const pod_model_t *m)
// ---- text helpers ---------------------------------------------------------------------------------------
-int pod_wrap(const char *text, const ht_pro_font_t *font, int width, int max_rows, char rows[][POD_ROW_MAX])
+static int wrap_rows(const char *text, const ht_pro_font_t *font, int width, int max_rows, char rows[][POD_ROW_MAX], bool hard)
{
int n = 0;
const char *p = text ? text : "";
@@ -42,6 +42,24 @@ int pod_wrap(const char *text, const ht_pro_font_t *font, int width, int max_row
while (*w && *w != ' ' && *w != '\n') w++;
size_t wl = (size_t)(w - p);
if (!wl) break;
+ char cut[POD_ROW_MAX];
+ bool wide = wl >= POD_ROW_MAX;
+ if (hard && !used && !wide) { memcpy(cut, p, wl); cut[wl] = 0; wide = ht_pro_width(font, cut) > width; }
+ if (hard && !used && wide) { // a word wider than the row (a URL): hard-break it
+ size_t k = 0;
+ for (size_t i = 1; i <= wl && i < POD_ROW_MAX; i++) {
+ if (i < wl && ((unsigned char)p[i] & 0xc0) == 0x80) continue; // inside a sequence
+ memcpy(cut, p, i);
+ cut[i] = 0;
+ if (k && ht_pro_width(font, cut) > width) break;
+ k = i;
+ }
+ memcpy(row, p, k);
+ row[k] = 0;
+ used = k;
+ p += k;
+ break;
+ }
char cand[POD_ROW_MAX];
if (used + (used ? 1 : 0) + wl >= POD_ROW_MAX) break;
memcpy(cand, row, used);
@@ -62,6 +80,16 @@ int pod_wrap(const char *text, const ht_pro_font_t *font, int width, int max_row
return n;
}
+// Console's wrap: a word wider than the row stays whole (the row buffer's limit drops the text). Classic's keeps going (ci_wrap).
+int pod_wrap(const char *text, const ht_pro_font_t *font, int width, int max_rows, char rows[][POD_ROW_MAX])
+{
+ return wrap_rows(text, font, width, max_rows, rows, false);
+}
+int pod_wrap_hard(const char *text, const ht_pro_font_t *font, int width, int max_rows, char rows[][POD_ROW_MAX])
+{
+ return wrap_rows(text, font, width, max_rows, rows, true);
+}
+
void pod_text_center(ht_scene_t *s, int cx, int y, int width, const ht_pro_font_t *font, uint16_t ink, const char *text)
{
if (!text || !*text) return;
@@ -145,10 +173,10 @@ void pod_lcd_pill(ht_scene_t *s, int x, int y, int width, const pod_agent_t *a,
// ---- the screen -----------------------------------------------------------------------------------------
-// Option A, "iPod classic Now Playing": the pet as album art on the left, the name and state chip beside it, then the
-// live bar and the activity text across the full width.
-enum { ART_X = 26, ART_Y = 84, ART = 196, ART_PET = 180, HEAD_X = 248, HEAD_R = 694, BAR_X = 28, BAR_W = 664,
- BODY_Y = ART_Y + ART + 14, ACT_ROWS = 8, ACT_PITCH = 34 };
+#define MIDDOT "\xc2\xb7"
+#define ELLIPSIS "\xe2\x80\xa6"
+enum { PET_X = 32, PET_Y = 104, PET_SIDE = 104, HEAD_X = 152, NAME_Y = 110, WHO_Y = 165, BAND_Y = 221,
+ LABEL_Y = 324, BODY_Y = 357, LINE = 42, BODY_W = 656, STEP_PITCH = 37, ASK_X = 32, ASK_PAD = 23 };
// The scene the agent shows now, by state. Idle and done rest (REST, not the relaxing face: owner, 2026-10-10).
// SEND plays on the voice screen (pod_view_talk.c), not here.
@@ -157,8 +185,7 @@ static pod_scene_t scene_for(pod_state_t st)
return st == POD_WORKING ? POD_SCENE_WORK : st == POD_ASKING ? POD_SCENE_ASK : POD_SCENE_REST;
}
-// What changes on this screen: the pet at its own steps, and the LCD pill's three bars (pod_eq, a 900 ms triangle drawn
-// in whole pixels, so a new height about every 30 ms) plus its seconds while the agent works.
+// What changes on this screen: the pet at its own steps, and the band's equaliser while the agent works.
uint32_t pod_view_agent_next_ms(const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
const pod_agent_t *a = pod_view_agent_of(nav, m);
@@ -169,112 +196,110 @@ uint32_t pod_view_agent_next_ms(const pod_nav_t *nav, const pod_model_t *m, uint
return st == POD_WORKING && ms > cap ? cap : ms;
}
-// End a row with "…" that fits the width (drops whole codepoints to make room). For text the model had to cut.
-static void ellipsize(char row[POD_ROW_MAX], int width)
+// `row` followed by "…", trimmed so the whole fits max_w (the last visible line of cut or clipped text).
+void ci_dotted(char out[POD_ROW_MAX], const char *row, const ht_pro_font_t *font, int max_w)
{
- static const char dots[] = "\xe2\x80\xa6";
- size_t n = strlen(row);
- if (n >= 3 && !memcmp(row + n - 3, dots, 3)) return;
+ char t[POD_ROW_MAX];
+ snprintf(t, sizeof t, "%s", row);
+ size_t n = strlen(t);
+ while (n && (t[n - 1] == ' ' || t[n - 1] == '.' || t[n - 1] == ',')) t[--n] = 0;
+ if (n >= 3 && !memcmp(t + n - 3, ELLIPSIS, 3)) { snprintf(out, POD_ROW_MAX, "%s", t); return; }
for (;;) {
- if (n + sizeof dots <= POD_ROW_MAX) {
- memcpy(row + n, dots, sizeof dots);
- if (!n || ht_pro_width(&ht_pro_24, row) <= width) return;
+ snprintf(out, POD_ROW_MAX, "%s" ELLIPSIS, t);
+ if (!n || ht_pro_width(font, out) <= max_w) return;
+ do n--; while (n && ((unsigned char)t[n] & 0xc0) == 0x80);
+ t[n] = 0;
+ while (n && t[n - 1] == ' ') t[--n] = 0;
+ }
+}
+
+// The head (pet, name, "Tab . Machine") and the band (Tokens on the right only when `tokens`, else Engine), shared by Agent and Recap. The pet of an offline agent
+// cannot fade (it is drawn from cells and arcs), so it shows the engine's logo, faded to half, on the pale cover.
+void ci_agent_head(pod_out_frame_t *f, const pod_model_t *m, const pod_agent_t *a, pod_state_t st, uint32_t now_ms, bool tokens)
+{
+ ht_scene_t *s = f->scene;
+ if (st == POD_OFFLINE) {
+ ht_pro_rect_aa_stroke(s, PET_X, PET_Y, PET_SIDE, PET_SIDE, 14, ht_rgb(0xdcdfd8), ht_rgb(0xefefe9));
+ // The largest logo the engine has (pet engines carry the small sizes only).
+ static const int sizes[] = {0, 44, 36};
+ bool drawn = false;
+ for (int i = 0; i < 3 && !drawn; i++) {
+ const int logo = i ? sizes[i] : pod_logo_cover_size(PET_SIDE);
+ drawn = pod_logo_draw_faded(s, PET_X + (PET_SIDE - logo) / 2, PET_Y + (PET_SIDE - logo) / 2, logo, a->engine, 128);
}
- if (!n) return;
- do n--; while (n && ((unsigned char)row[n] & 0xc0) == 0x80);
- row[n] = 0;
+ if (!drawn) pod_mark_default_big(s, PET_X + (PET_SIDE - 56) / 2, PET_Y + (PET_SIDE - 56) / 2, 56, ht_rgb(0xefefe9));
+ } else {
+ pod_pet_draw_on(s, PET_X, PET_Y, PET_SIDE, a->engine, scene_for(st), now_ms, 0, 0xf6f6f0);
}
+ char name[sizeof a->name];
+ snprintf(name, sizeof name, "%s", a->name);
+ for (char *c = name; *c; c++) if (*c == '\n' || *c == '\r' || *c == '\t') *c = ' ';
+ ci_text(s, HEAD_X, NAME_Y, POD_W - CI_MARGIN - HEAD_X, &ci_rg_41, CI_INK, name);
+ const pod_tab_t *tab = pod_tab_of(m, a);
+ char who[2 * CABLE_NAME_MAX + 4];
+ const char *tn = tab && tab->name[0] ? tab->name : "", *mn = a->machine;
+ snprintf(who, sizeof who, "%s%s%s", tn, *tn && *mn ? " " MIDDOT " " : "", mn);
+ ci_text(s, HEAD_X, WHO_Y, POD_W - CI_MARGIN - HEAD_X, &ci_rg_23, CI_MUTED, who);
+ const int32_t el = st == POD_WORKING ? (int32_t)pod_agent_secs(a, now_ms) : st == POD_DONE && a->elapsed_s ? (int32_t)a->elapsed_s : -1;
+ ci_band(s, BAND_Y, st, el, a->engine, tokens && a->tokens_in >= 0 ? a->tokens_in : -1, a->tokens_out, now_ms);
}
+// The caps label ("RIGHT NOW", "SAVED RESULT"): Bold 20, muted. One run, so no tracking (the mockup's 1 px adds about 8 px).
+void ci_caps(ht_scene_t *s, int x, int y, const char *label)
+{
+ ht_pro_text(s, x, y, ht_pro_width(&ci_bd_20, label), &ci_bd_20, CI_MUTED, label);
+}
-// The chip: a pill with a dot and the state text. Always 3 runs.
-static void state_chip(ht_scene_t *s, int x, int y, uint16_t fill, uint16_t ink, const char *label)
+// "Updated just now" (under 60 s) / "Updated 3m ago" / "Updated 2h ago"; false when the event time is unknown.
+bool ci_updated(char *out, size_t n, const pod_agent_t *a, uint32_t now_ms)
{
- const int h = 38;
- int tw = ht_pro_width(&ht_pro_24, label), w = 16 + 12 + 8 + tw + 16;
- ht_pro_rect(s, x, y, w, h, h / 2, fill);
- ht_pro_rect(s, x + 16, y + h / 2 - 6, 12, 12, 6, ink);
- ht_pro_text(s, x + 36, y + (h - ht_pro_24.height) / 2, tw, &ht_pro_24, ink, label);
+ if (!a->has_event || !a->event_ms) return false;
+ uint32_t d = (int32_t)(now_ms - a->event_ms) > 0 ? now_ms - a->event_ms : 0;
+ if (d < 60000) snprintf(out, n, "Updated just now");
+ else if (d < 3600000) snprintf(out, n, "Updated %um ago", (unsigned)(d / 60000));
+ else snprintf(out, n, "Updated %uh ago", (unsigned)(d / 3600000));
+ return true;
}
void pod_view_agent(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
ht_scene_t *s = f->scene;
- pod_status(f, "Recap", true, 0); // the tab name is in the head; this screen is the entry to the recap
const pod_agent_t *a = pod_view_agent_of(nav, m);
- if (a) {
- pod_state_t st = pod_model_eff(m, a);
- bool ask = st == POD_ASKING, working = st == POD_WORKING;
- // The art: pet-less engines keep their own cover at this size; a pet stands on the glass itself (owner,
- // 2026-10-10: the mockup's pale lavender square read as a white patch behind the pet on the device).
- if (pod_pet_for(a->engine)) {
- pod_pet_draw(s, ART_X + (ART - ART_PET) / 2, ART_Y + (ART - ART_PET) / 2, ART_PET, a->engine,
- scene_for(st), now_ms, 0);
- } else {
- pod_pet_draw(s, ART_X, ART_Y, ART, a->engine, scene_for(st), now_ms, 0);
- }
- // The name on one line, cut with "..." (owner, 2026-10-11: a second line broke the title), then
- // "<Tab> . <Machine>", then the chip. A newline in the name is a space.
- char name[sizeof a->name];
- snprintf(name, sizeof name, "%s", a->name);
- for (char *c = name; *c; c++) if (*c == '\n' || *c == '\r' || *c == '\t') *c = ' ';
- // The name alone runs to the screen's 16 px margin, past the head's HEAD_R: 446 px cut a name the Recap
- // (479 px) showed whole.
- // Idle draws no status: the head drops by half the chip and its gap so it stays centred on the art (owner,
- // 2026-10-11: the pet looked pushed down next to a shorter head).
- const int head_y = 92 + (st == POD_IDLE ? (POD_LINE_GAP + 38) / 2 : 0);
- ht_pro_text(s, HEAD_X, head_y, POD_W - 16 - HEAD_X, &ht_pro_32, C(0x111111), name);
- const int who_y = pod_under_32(head_y);
- int who_rows = pod_who_line(s, HEAD_X, who_y, HEAD_R - HEAD_X, nav, m, a);
- // The status goes one gap under the last line's baseline (6 + 17 into its cell): the LCD pill when working,
- // else a small chip. The engine is its own line above the tab, not after the chip.
- const int status_y = who_y + (who_rows ? (who_rows - 1) * POD_WHO_PITCH + 6 + 17 : -POD_LINE_GAP) + POD_LINE_GAP;
- const int chip_y = status_y - 2;
- // The bar and body sit at 304 / 327 unless the head (a two line name) reaches them: then they move down.
- const int head_end = status_y + (working ? POD_LCD_H : 38);
- const int shift = imax(0, head_end + 8 - 304);
- if (working) {
- pod_lcd_pill(s, HEAD_X, status_y, HEAD_R - HEAD_X, a, now_ms);
- } else if (ask) {
- state_chip(s, HEAD_X, chip_y, C(0xfff1dc), C(0xb46a00), "Needs you");
- } else if (st == POD_OFFLINE) {
- state_chip(s, HEAD_X, chip_y, C(0xeceeec), C(0xa0a4a0), "Offline");
- } else {
- if (st == POD_DONE) state_chip(s, HEAD_X, chip_y, C(0xeceeec), C(0x7b7d84), "Done"); // idle: no chip (owner, 2026-10-11)
- }
-
- if (ask) {
- const int h32 = ht_pro_32.height, h24 = ht_pro_24.height;
- char rows[3][POD_ROW_MAX];
- int n = pod_wrap(a->question, &ht_pro_32, BAR_W - 36, 3, rows);
- int top = 306 + shift, box_h = 16 + n * h32 + 8 + h24 + 16;
- ht_pro_rect(s, BAR_X, top, BAR_W, box_h, 14, C(0xfff1dc));
- for (int i = 0; i < n; i++)
- ht_pro_text(s, BAR_X + 18, top + 16 + i * h32, BAR_W - 36, &ht_pro_32, C(0x111111), rows[i]);
- int ay = top + 16 + n * h32 + 8, aw = ht_pro_width(&ht_pro_24, "Answer in the Harness app");
- ht_pro_rect(s, BAR_X + 18, ay + h24 / 2 - 7, 14, 14, 7, C(0xff9f0a));
- ht_pro_text(s, BAR_X + 40, ay, aw, &ht_pro_24, C(0xb46a00), "Answer in the Harness app");
- } else if (working) {
- // Only a working agent has a body: its activity, right under the head (no live bar: the LCD pill already
- // plays, owner 2026-10-10). An idle or done one has nothing under the head.
- char rows[ACT_ROWS][POD_ROW_MAX];
- // Rows between the head and the transport; the previous steps (at most two lines reserved) share them.
- const int top = BODY_Y + shift, avail = imin(ACT_ROWS, (POD_TRANSPORT_Y - 6 - top) / ACT_PITCH);
- // Classic shows the last three steps since the turn began or its question closed (the model keeps six for Console).
- const int steps = imin(imin(a->step_count, a->fresh_steps), 3);
- const int reserve = imin(steps, 2);
- // The footer's word (a->verb) is the pill's; the body is always the progress sentence.
- int n = pod_wrap(a->activity, &ht_pro_24, BAR_W, avail - reserve, rows);
- if (a->activity_cut && a->activity[0] && n > 0) ellipsize(rows[n - 1], BAR_W);
- for (int i = 0; i < n; i++)
- ht_pro_text(s, BAR_X, top + i * ACT_PITCH, BAR_W, &ht_pro_24, C(0x111111), rows[i]);
- // What the agent did before, newest first, one grey line each (ht_pro_text ends a long one with an ellipsis):
- // the tools it started (`turn.activity` `step`) and the sentences it wrote, in the order they came.
- for (int i = 0; i < steps && n + i < avail; i++) {
- const char *step = a->steps[i];
- ht_pro_text(s, BAR_X, top + (n + i) * ACT_PITCH, imin(ht_pro_width(&ht_pro_24, step), BAR_W), &ht_pro_24, C(0x7b7d84), step);
- }
- }
+ ci_bar(f, "Task", pod_nav_origin(nav, m), f->unread, true);
+ if (!a) { ci_talk(f, false); return; }
+ const pod_state_t st = pod_model_eff(m, a);
+ ci_agent_head(f, m, a, st, now_ms, false);
+ char rows[3][POD_ROW_MAX];
+ if (st == POD_WORKING) {
+ ci_caps(s, CI_MARGIN, LABEL_Y, "RIGHT NOW");
+ char fallback[24];
+ const char *act = a->activity;
+ if (!act[0]) { snprintf(fallback, sizeof fallback, "%s" ELLIPSIS, pod_working_verb(pod_agent_secs(a, now_ms))); act = fallback; }
+ int n = ci_wrap(act, &ci_rg_32, BODY_W, 3, rows);
+ if (a->activity_cut && a->activity[0] && n > 0) ci_dotted(rows[n - 1], rows[n - 1], &ci_rg_32, BODY_W);
+ for (int i = 0; i < n; i++) ci_text(s, CI_MARGIN, BODY_Y + i * LINE, BODY_W, &ci_rg_32, CI_INK, rows[i]);
+ int y = BODY_Y + n * LINE + 12;
+ // The newest two steps since the turn began or its question closed, one muted line each.
+ const int steps = imin(imin(a->step_count, a->fresh_steps), 2);
+ for (int i = 0; i < steps; i++, y += STEP_PITCH) ci_text(s, CI_MARGIN, y, BODY_W, &ci_rg_22, CI_MUTED, a->steps[i]);
+ char up[24];
+ if (ci_updated(up, sizeof up, a, now_ms)) ci_text(s, CI_MARGIN, y + 7, BODY_W, &ci_rg_20, ht_rgb(0x7b827c), up);
+ } else if (st == POD_ASKING) {
+ int n = ci_wrap(a->question, &ci_rg_32, BODY_W - ASK_PAD - 18, 3, rows);
+ if (!n) n = ci_wrap("Needs your answer.", &ci_rg_32, BODY_W, 1, rows);
+ const int top = LABEL_Y + 2, h = 2 * ASK_PAD - 10 + n * LINE;
+ ht_pro_rect(s, ASK_X, top, BODY_W, h, 0, CI_ASK_FILL);
+ ht_pro_rect(s, ASK_X, top, 4, h, 0, CI_ASK_BAR);
+ for (int i = 0; i < n; i++) ci_text(s, ASK_X + ASK_PAD, top + 19 + i * LINE, BODY_W - ASK_PAD - 18, &ci_rg_32, CI_INK, rows[i]);
+ ci_text(s, CI_MARGIN, top + h + 12, BODY_W, &ci_rg_23, CI_MUTED, "Answer it in the Harness app.");
+ } else if (st == POD_OFFLINE) {
+ char line[2 * CABLE_NAME_MAX + 40];
+ ci_text(s, CI_MARGIN, LABEL_Y + 2, BODY_W, &ci_rg_32, CI_INK, "That machine is offline.");
+ snprintf(line, sizeof line, "Reconnect %s in Harness to continue.", a->machine[0] ? a->machine : "it");
+ ci_text(s, CI_MARGIN, LABEL_Y + 55, BODY_W, &ci_rg_23, CI_MUTED, line);
+ } else {
+ ci_text(s, CI_MARGIN, LABEL_Y + 2, BODY_W, &ci_rg_32, CI_INK, "Ready when you are.");
+ ci_text(s, CI_MARGIN, LABEL_Y + 55, BODY_W, &ci_rg_23, CI_MUTED, "Send a new voice instruction to this agent.");
}
- pod_transport(f, false);
+ ci_talk(f, m->linked && (st == POD_IDLE || st == POD_WORKING || st == POD_DONE));
}
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_view_inbox.c b/devices/harness-pro/firmware/main/pod/classic/pod_view_inbox.c
index 5d318c091..06b5e95c3 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_view_inbox.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_view_inbox.c
@@ -1,15 +1,17 @@
-// The Inbox (the unread notifications as the Tab list's rows) and the notification banner (a card that drops under the
-// status bar when a turn ends). Both read model->unread; the bell that opens the Inbox is in pod_chrome.c.
-#include "pod/pod_view_shared.h"
+// The Classic Inbox (Index look, spec 2026-10-13): "N unread." and the agents that ask first (an amber row that stays until
+// they are answered, a FOLLOW hit), then the unread entries (a blue dot, the name, two lines of the recap, New or Failed, an
+// OPEN_NOTIF hit). And the result banner, a card under the bar when a turn ends, with a close x and a timer line.
+#include "pod/classic/ci.h"
#include <stdio.h>
#include <string.h>
-enum { ROWS_Y = POD_STATUS_H, ROW_H = 84, ROWS_MAX = (POD_W - POD_STATUS_H) / ROW_H }; // 7 rows, as the Tab list
+enum { ROWS_Y = 234, ASK_H = 111, ENTRY_MIN = 104, ENTRY_BASE = 81, LINE_PITCH = 31, TEXT_X = 59, TEXT_W = 540, ENTRY_LINES = 2,
+ ROW_RUNS_ASK = 15, ROW_RUNS_ENTRY = 6, FOOT_RUNS = 4, ROWS_MAX = POD_AGENTS_MAX + POD_UNREAD_MAX };
-#define C pod_c
-static int imin(int a, int b) { return a < b ? a : b; }
+static uint16_t C(unsigned rgb) { return ht_rgb(rgb); }
static int imax(int a, int b) { return a > b ? a : b; }
+static int imin(int a, int b) { return a < b ? a : b; }
void pod_fmt_age(char *out, size_t n, uint32_t secs)
{
@@ -18,11 +20,6 @@ void pod_fmt_age(char *out, size_t n, uint32_t secs)
else if (secs < 86400) snprintf(out, n, "%uh", (unsigned)(secs / 3600));
else snprintf(out, n, "%ud", (unsigned)(secs / 86400));
}
-static uint32_t age_s(const pod_model_t *m, const pod_unread_t *u)
-{
- int32_t d = (int32_t)(m->clock_ms - u->at_ms);
- return d > 0 ? (uint32_t)d / 1000 : 0;
-}
// Name and engine: the roster's when it knows the agent, else what the notification carried.
static const char *name_of(const pod_model_t *m, const pod_unread_t *u)
{
@@ -41,25 +38,93 @@ static void one_line(char *out, size_t cap, const char *text)
for (char *c = out; *c; c++) if (*c == '\n' || *c == '\r' || *c == '\t') *c = ' ';
}
-static unsigned row_runs(const pod_model_t *m, const pod_unread_t *u)
+// ---- the list: asking agents, then the unread entries -----------------------------------------------------
+
+static int asking_count(const pod_model_t *m)
{
- return 1u + 1u + pod_mark_runs(engine_of(m, u)) + 1u + 1u + 1u; // rule, dot, chip, name, age, line
+ int n = 0;
+ for (int i = 0; i < m->agent_count; i++) if (pod_model_eff(m, &m->agents[i]) == POD_ASKING) n++;
+ return n;
+}
+static const pod_agent_t *asking_at(const pod_model_t *m, int k)
+{
+ for (int i = 0; i < m->agent_count; i++)
+ if (pod_model_eff(m, &m->agents[i]) == POD_ASKING && k-- == 0) return &m->agents[i];
+ return NULL;
}
-static void row(pod_out_frame_t *f, const pod_model_t *m, const pod_unread_t *u, int index, int y0)
+// An entry's recap, wrapped to two lines; returns the lines.
+static int entry_lines(const pod_unread_t *u, char rows[ENTRY_LINES][POD_ROW_MAX])
{
- ht_scene_t *s = f->scene;
- char age[8], line[POD_UNREAD_TEXT];
- pod_fmt_age(age, sizeof age, age_s(m, u));
- ht_pro_rect(s, 24, y0 + ROW_H / 2 - 8, 16, 16, 8, C(0x1f63d1)); // unread
- pod_mark_chip_on(s, 66, y0 + 24, engine_of(m, u), C(0xffffff));
- int aw = ht_pro_width(&ht_pro_24, age), right = 698, room = right - 118 - aw - 16;
- ht_pro_text(s, right - aw, y0 + 30, aw, &ht_pro_24, C(0x7b7d84), age);
- ht_pro_text(s, 118, y0 + 8, room, &ht_pro_32, C(0x111111), name_of(m, u));
+ char line[POD_UNREAD_TEXT];
one_line(line, sizeof line, u->text);
- ht_pro_text(s, 118, y0 + 46, room, &ht_pro_24, C(0x7b7d84), line);
- ht_pro_rect(s, 0, y0 + ROW_H - 1, POD_W, 1, 0, C(0xe5e6ea));
- pod_hit_add_id(f, 0, y0, POD_W, ROW_H, POD_A_OPEN_NOTIF, index, u->agent);
+ return line[0] ? ci_wrap(line, &ci_rg_23, TEXT_W, ENTRY_LINES, rows) : 0;
+}
+static int entry_h(int lines) { return imax(ENTRY_MIN, ENTRY_BASE + lines * LINE_PITCH); }
+// Every row's height (the pitch to the next, rule included), each recap wrapped once: h[i] for the n rows.
+static void row_heights(const pod_model_t *m, int na, int n, int h[ROWS_MAX])
+{
+ char rows[ENTRY_LINES][POD_ROW_MAX];
+ for (int i = 0; i < n; i++) h[i] = i < na ? ASK_H : entry_h(entry_lines(&m->unread[i - na], rows));
+}
+// The rows from `first` that fit above the footer; a row needs its height less the rule and a few px the footer may cover.
+static int rows_shown(const int *h, int first, int n)
+{
+ int y = ROWS_Y, shown = 0;
+ for (int i = first; i < n; i++) {
+ if (y + h[i] - 4 > CI_FOOT_Y) break;
+ y += h[i];
+ shown++;
+ }
+ return shown;
+}
+
+// The first row from which the rest of the list fits.
+static int max_row_of(const int *h, int n)
+{
+ for (int first = 0; first < n; first++)
+ if (first + rows_shown(h, first, n) >= n) return first;
+ return 0;
+}
+int pod_inbox_pitch(void) { return entry_h(ENTRY_LINES); }
+int pod_inbox_max_row(const pod_model_t *m)
+{
+ int h[ROWS_MAX], na = asking_count(m), n = na + m->unread_count;
+ row_heights(m, na, n, h);
+ return max_row_of(h, n);
+}
+
+static void chevron_right(ht_scene_t *s, int x, int y, uint16_t ink) // 12 x 20, ten 2-row steps
+{
+ for (int k = 0; k < 10; k++) ht_pro_rect(s, x + (k < 5 ? 2 * k : 2 * (9 - k)), y + 2 * k, 3, 2, 0, ink);
+}
+
+static void row_ask(pod_out_frame_t *f, const pod_model_t *m, const pod_agent_t *a, int y0)
+{
+ ht_scene_t *s = f->scene;
+ ht_pro_rect(s, 0, y0, POD_W, ASK_H - 1, 0, CI_ROW_ASK);
+ ht_pro_rect_aa(s, CI_MARGIN, y0 + 51, 10, 10, 5, ht_rgb(0xab6b17));
+ ci_text(s, 65, y0 + 15, 580, &ci_rg_33, CI_INK, a->name[0] ? a->name : "Agent");
+ ci_text(s, 65, y0 + 62, 580, &ci_rg_23, CI_MUTED, "Needs your answer \xc2\xb7 stays until resolved");
+ chevron_right(s, 668, y0 + 46, CI_INK);
+ ht_pro_rect(s, 0, y0 + ASK_H - 1, POD_W, 1, 0, CI_RULE);
+ pod_hit_add_id(f, 0, y0, POD_W, ASK_H, POD_A_FOLLOW, (int)(a - m->agents), a->id);
+}
+
+static void row_entry(pod_out_frame_t *f, const pod_model_t *m, const pod_unread_t *u, int index, int y0)
+{
+ ht_scene_t *s = f->scene;
+ char rows[ENTRY_LINES][POD_ROW_MAX];
+ int n = entry_lines(u, rows), h = entry_h(n), cy = y0 + (h - 1) / 2;
+ const bool failed = u->kind == POD_UNREAD_FAILED;
+ const char *tag = failed ? "Failed" : "New";
+ int tw = ht_pro_width(&ci_rg_22, tag);
+ ht_pro_rect_aa(s, CI_MARGIN, cy - 4, 9, 9, 4, CI_BLUE);
+ ci_text(s, TEXT_X - 2, y0 + 16, TEXT_W, &ci_rg_33, CI_INK, name_of(m, u));
+ for (int i = 0; i < n; i++) ci_text(s, TEXT_X - 2, y0 + 62 + i * LINE_PITCH, TEXT_W, &ci_rg_23, CI_MUTED, rows[i]);
+ ht_pro_text(s, POD_W - CI_MARGIN - tw, cy - 14, tw, &ci_rg_22, failed ? CI_FAIL : CI_MUTED, tag);
+ ht_pro_rect(s, 0, y0 + h - 1, POD_W, 1, 0, CI_RULE);
+ pod_hit_add_id(f, 0, y0, POD_W, h, POD_A_OPEN_NOTIF, index, u->agent);
}
void pod_view_inbox(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
@@ -67,62 +132,71 @@ void pod_view_inbox(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t
(void)now_ms;
ht_scene_t *s = f->scene;
const pod_frame_t *fr = &nav->stack[nav->depth - 1];
- int n = m->unread_count;
- pod_status(f, pod_view_title(nav, m), true, 0);
- if (n == 0) {
- const char *msg = "No notifications";
- int mw = ht_pro_width(&ht_pro_32, msg);
- ht_pro_text(s, (POD_W - mw) / 2, POD_STATUS_H + (POD_W - POD_STATUS_H - ht_pro_32.height) / 2, mw, &ht_pro_32, C(0x7b7d84), msg);
- return;
+ const int unread = m->unread_count, na = asking_count(m), n = na + unread;
+ ci_bar(f, "Inbox", strcmp(pod_nav_origin(nav, m), "Tabs") ? pod_nav_origin(nav, m) : "Back", (uint8_t)imin(unread, 99), unread > 0); // no bell on an empty list
+ char head[16], foot[16];
+ snprintf(head, sizeof head, "%d unread.", unread);
+ snprintf(foot, sizeof foot, "%d unread", unread);
+ ci_text(s, CI_MARGIN, 113, POD_W - 2 * CI_MARGIN, &ci_rg_48, CI_INK, head);
+ ci_text(s, CI_MARGIN, 180, POD_W - 2 * CI_MARGIN, &ci_rg_24, CI_MUTED,
+ n ? "Open a result to mark that result read." : "Results from your agents appear here.");
+ int h[ROWS_MAX];
+ row_heights(m, na, n, h);
+ int first = imax(0, imin(fr->scroll, max_row_of(h, n)));
+ int shown = rows_shown(h, first, n);
+ int budget = POD_CLASSIC_RUNS - s->count - 4 - pod_spare_runs(f) - FOOT_RUNS;
+ int y = ROWS_Y;
+ for (int i = first; i < first + shown; i++) {
+ int need = i < na ? ROW_RUNS_ASK : ROW_RUNS_ENTRY;
+ if (need > budget) break;
+ budget -= need;
+ if (i < na) row_ask(f, m, asking_at(m, i), y);
+ else row_entry(f, m, &m->unread[i - na], i - na, y);
+ y += h[i];
}
- int first = imax(0, imin(fr->scroll, n - ROWS_MAX));
- int shown = imin(ROWS_MAX, n - first);
- int budget = POD_CLASSIC_RUNS - s->count - 4 - pod_spare_runs(f);
- for (; shown > 0; shown--) {
- unsigned runs = 0;
- for (int i = 0; i < shown; i++) runs += row_runs(m, &m->unread[first + i]);
- if ((int)runs <= budget) break;
- }
- for (int i = 0; i < shown; i++) row(f, m, &m->unread[first + i], first + i, ROWS_Y + i * ROW_H);
+ ci_foot(s, foot, true, NULL);
}
-int pod_inbox_pitch(void) { return ROW_H; }
-int pod_inbox_max_row(const pod_model_t *m) { return imax(0, m->unread_count - ROWS_MAX); }
-
// ---- the banner ----------------------------------------------------------------------------------------------
-// "2m 14s", "45s", "1h 02m".
+// "0m 48s", "14m 02s", "1h 02m".
static void fmt_elapsed(char *out, size_t n, int32_t secs)
{
- if (secs < 60) snprintf(out, n, "%ds", (int)secs);
- else if (secs < 3600) snprintf(out, n, "%dm %02ds", (int)(secs / 60), (int)(secs % 60));
+ if (secs < 3600) snprintf(out, n, "%dm %02ds", (int)(secs / 60), (int)(secs % 60));
else snprintf(out, n, "%dh %02dm", (int)(secs / 3600), (int)(secs % 3600 / 60));
}
-int pod_banner(pod_out_frame_t *f, const pod_model_t *m, const pod_unread_t *u, uint32_t now_ms)
+int pod_banner(pod_out_frame_t *f, const pod_model_t *m, const pod_unread_t *u, uint32_t shown_ms, uint32_t now_ms)
{
- (void)now_ms;
+ enum { TX = 112, TEXT_BW = 544, PITCH = 33, CLOSE = 65, TIMER_H = 6 };
ht_scene_t *s = f->scene;
- const int x = POD_BANNER_X, y = POD_BANNER_Y, w = POD_BANNER_W, tx = x + 20 + 36 + 14, right = x + w - 20;
- const int h32 = ht_pro_32.height, h24 = ht_pro_24.height;
- char rows[2][POD_ROW_MAX], line[POD_UNREAD_TEXT], age[8], done[32], el[16];
+ const int x = POD_BANNER_X, y = POD_BANNER_Y, w = POD_BANNER_W;
+ char rows[2][POD_ROW_MAX], line[POD_UNREAD_TEXT], tail[40], el[16];
one_line(line, sizeof line, u->text);
- int n = pod_wrap(line, &ht_pro_24, right - tx, 2, rows);
- int h = 14 + h32 + 2 + n * h24 + 6 + h24 + 14;
- ht_pro_rect(s, x, y, w, h, 28, C(0xe5e6ea)); // a 1 px edge
- ht_pro_rect(s, x + 1, y + 1, w - 2, h - 2, 27, C(0xffffff));
- pod_mark_chip_on(s, x + 20, y + 16, engine_of(m, u), C(0xffffff));
- pod_fmt_age(age, sizeof age, age_s(m, u));
- int aw = ht_pro_width(&ht_pro_24, age);
- ht_pro_text(s, right - aw, y + 14 + 6, aw, &ht_pro_24, C(0x7b7d84), age);
- ht_pro_text(s, tx, y + 14, right - tx - aw - 12, &ht_pro_32, C(0x111111), name_of(m, u));
- int ry = y + 14 + h32 + 2;
- for (int i = 0; i < n; i++) ht_pro_text(s, tx, ry + i * h24, right - tx, &ht_pro_24, C(0x333333), rows[i]);
- int dy = ry + n * h24 + 6;
- pod_tick(s, tx, dy + 2, C(0x34c759));
- if (u->elapsed_s >= 0) { fmt_elapsed(el, sizeof el, u->elapsed_s); snprintf(done, sizeof done, "Done \xc2\xb7 %s", el); }
- else snprintf(done, sizeof done, "Done");
- ht_pro_text(s, tx + 30, dy, right - tx - 30, &ht_pro_24, C(0x34c759), done);
+ int n = line[0] ? ci_wrap(line, &ci_rg_24, TEXT_BW, 2, rows) : 0;
+ const bool failed = u->kind == POD_UNREAD_FAILED;
+ const int h = 217 - (2 - n) * PITCH;
+ ht_pro_rect_aa_stroke(s, x, y, w, h, 10, C(0xa6b9a9), C(0xf7faf2));
+ ci_mark(s, 39, y + 20, engine_of(m, u));
+ ci_text(s, TX - 2, y + 31, 520, &ci_rg_33, CI_INK, name_of(m, u));
+ int cw = ht_pro_width(&ci_rg_41, "\xc3\x97"); // the x: a multiplication sign centred on (662, y + 51)
+ ht_pro_text(s, 663 - cw / 2, y + 25, cw, &ci_rg_41, C(0x53675a), "\xc3\x97");
+ for (int i = 0; i < n; i++) ci_text(s, TX, y + 93 + i * PITCH, TEXT_BW, &ci_rg_24, C(0x3d4a4e), rows[i]);
+ const int dy = y + 93 + n * PITCH + 7; // the Done / Failed line's cell
+ if (u->elapsed_s >= 0) {
+ fmt_elapsed(el, sizeof el, u->elapsed_s);
+ snprintf(tail, sizeof tail, "%s \xc2\xb7 %s", failed ? "Failed" : "Done", el);
+ } else snprintf(tail, sizeof tail, "%s", failed ? "Failed" : "Done");
+ if (failed) {
+ ci_text(s, TX, dy, 520, &ci_rg_23, CI_FAIL, tail);
+ } else {
+ pod_tick(s, 114, dy + 5, CI_GREEN);
+ ci_text(s, 145, dy, 480, &ci_rg_23, CI_GREEN, tail);
+ }
+ int32_t left = POD_BANNER_MS - (int32_t)(now_ms - shown_ms);
+ int tw = left <= 0 ? 0 : left >= POD_BANNER_MS ? w : (int)((int64_t)w * left / POD_BANNER_MS);
+ if (tw > 0) ht_pro_rect(s, x, y + h - 1 - TIMER_H, tw, TIMER_H, 0, CI_BLUE);
pod_hit_add_id(f, x, y, w, h, POD_A_BANNER, 0, u->agent);
+ pod_hit_add_id(f, x + w - CLOSE, y, CLOSE, CLOSE, POD_A_BANNER_CLOSE, 0, u->agent);
return h;
}
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_view_ota.c b/devices/harness-pro/firmware/main/pod/classic/pod_view_ota.c
index 2174f8d60..b1d020b6e 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_view_ota.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_view_ota.c
@@ -1,87 +1,75 @@
-// The software-update screen (owner, 2026-10-11, mockup pro-ota U1): its own screen, status bar "Updating", no
-// transport (nothing to tap while the image is written). The mark (the transport's blue gradient, a white ">_"), the title, "<old> -> <new>", a bar
-// on the transport's blue gradient and "%" left of "Keep the cable in"; then Restarting: a spinner-like ring,
-// "Restarting...", "<new> is installed". The font has no arrow and no U+2026 (its glyphs stop at U+00FF: a "…" would draw "?"), so Restarting keeps "..." and the
-// arrow is drawn like the other glyph-free icons. Run counts are constant per screen (the bar's fill keeps its
-// slot at 0 %).
-#include "pod/pod_view.h"
-#include "pro_canvas.h"
+// The Classic software-update screen (Index look, spec 2026-10-13), drawn by the glue instead of the stack while an update runs:
+// the bar (brand, "Update", no bell), then centred with an equal 22 px gap between the CSS boxes of the five items: the download
+// circle, "HARNESS PRO", "Updating to {to}" (or "Restarting…"), the progress bar and the two-line note; the footer says
+// Downloading and the percent (or Restarting). No hits: nothing to tap while the image is written.
+#include "pod/classic/ci.h"
#include <stdio.h>
#include <string.h>
-#define C(rgb) ht_rgb(rgb)
+enum { CIRCLE = 86, EYEBROW_H = 26, TITLE_H = 50, BAR_W = 446, BAR_H = 10, NOTE_LINE = 36, GAP = 22, NOTE_W = 583 };
-static void centered(ht_scene_t *s, int y, const ht_pro_font_t *font, uint16_t ink, const char *text)
-{
- int w = ht_pro_width(font, text);
- if (w > POD_W - 40) w = POD_W - 40;
- ht_pro_text(s, (POD_W - w) / 2, y, w, font, ink, text);
-}
+// The y of a text cell whose CSS line box (`box_h` tall) starts at `top`: the baseline sits where a 1.117 em content area
+// (ascent 0.905, descent 0.212) centred in the box puts it, and the cell starts `size` above it.
+static int cell_y(int top, int box_h, int size) { return top + (box_h * 1000 - 1117 * size) / 2000 + (905 * size + 500) / 1000 - size; }
-// "<from> -> <to>" on one centred line, the arrow drawn: a 3 px shaft and a head, 30 px across.
-static void versions(ht_scene_t *s, int y, const char *from, const char *to)
+// The download arrow, ox the shaft's centre: a 3 px shaft, a head of 2-row steps and a base line; 29 px across, 32 tall.
+static void download_arrow(ht_scene_t *s, int ox, int top, uint16_t ink)
{
- enum { GAP = 12, ARROW = 30 };
- const ht_pro_font_t *f = &ht_pro_24;
- int wf = ht_pro_width(f, from), wt = ht_pro_width(f, to);
- int x = (POD_W - (wf + GAP + ARROW + GAP + wt)) / 2, mid = y + f->height / 2 - 1;
- ht_pro_text(s, x, y, wf, f, C(0x7b7d84), from);
- x += wf + GAP;
- ht_pro_rect(s, x, mid - 1, ARROW - 8, 3, 0, C(0x7b7d84));
- pod_play(s, x + ARROW - 16, mid - 8, 16, 16, 0, C(0x7b7d84));
- x += ARROW + GAP;
- ht_pro_text(s, x, y, wt, f, C(0x7b7d84), to);
+ static const struct { int8_t dy, xl, w; } arm[3] = {{12, -10, 4}, {14, -9, 5}, {16, -7, 5}}; // left arm (the right mirrors it)
+ ht_pro_rect(s, ox - 1, top, 3, 24, 0, ink);
+ for (int k = 0; k < 3; k++) {
+ ht_pro_rect(s, ox + arm[k].xl, top + arm[k].dy, arm[k].w, 2, 0, ink);
+ ht_pro_rect(s, ox + 1 - arm[k].xl - arm[k].w + 1, top + arm[k].dy, arm[k].w, 2, 0, ink);
+ }
+ for (int r = 0; r < 6; r++) ht_pro_rect(s, ox - 6 + r, top + 18 + r, 13 - 2 * r, 1, 0, ink); // the head's point
+ ht_pro_rect(s, ox - 14, top + 28, 29, 3, 0, ink);
}
void pod_view_ota(pod_out_frame_t *f, const char *from, const char *to, int pct, bool restarting)
{
+ (void)from;
+ f->scene->background = CI_GROUND;
ht_scene_t *s = f->scene;
f->hit_count = 0;
f->unread = 0;
f->bell_x = 0;
- pod_status(f, "Updating", false, 0);
- if (!from) from = "";
if (!to) to = "";
if (pct < 0) pct = 0;
if (pct > 100) pct = 100;
- const ht_pro_font_t *title = &ht_pro_32, *small = &ht_pro_24;
- enum { GAP = 20, MARK = 128, BAR_W = 480, BAR_H = 20 };
- const int icon = restarting ? 68 : MARK;
- const int below = restarting ? 0 : GAP + BAR_H + GAP + small->height; // the bar and its % row
- const int h = icon + GAP + title->height + GAP + small->height + below;
- int y = POD_STATUS_H + (POD_H_BODY - h) / 2;
- if (restarting) { // a ring with a quarter in blue, in the mark's place
- int cx = POD_W / 2, cy = y + icon / 2;
- pod_arc(s, cx * 16, cy * 16, 30 * 16, 8 * 16, 0, 180, C(0xdfe2e8));
- pod_arc(s, cx * 16, cy * 16, 30 * 16, 8 * 16, 90, 50, C(0x1f63d1));
- } else {
- // The mockup's .mark: 64 px at half size, radius 16, the transport button's gradient, a white bold ">_".
- const int mx = (POD_W - MARK) / 2;
- const int mw = ht_pro_width(&ht_pro_56, ">_");
- pod_grad(s, mx, y, MARK, MARK, 32, C(0x5ea2f2), C(0x1f63d1));
- ht_pro_text(s, mx + (MARK - mw) / 2, y + (MARK - ht_pro_56.height) / 2 - MARK / 16, mw, &ht_pro_56, C(0xffffff), ">_");
- }
- y += icon + GAP;
- centered(s, y, title, C(0x111111), restarting ? "Restarting..." : "Updating Harness Pro");
- y += title->height + GAP;
- if (restarting) {
- char line[64];
- snprintf(line, sizeof line, "%s is installed", to);
- centered(s, y, small, C(0x7b7d84), line);
- return;
- }
- versions(s, y, from, to);
- y += small->height + GAP;
- const int x0 = (POD_W - BAR_W) / 2;
- ht_pro_rect(s, x0, y, BAR_W, BAR_H, BAR_H / 2, C(0xe3e5ea));
- if (pct > 0) pod_grad(s, x0, y, BAR_W * pct / 100, BAR_H, BAR_H / 2, C(0x7db5f5), C(0x1f63d1));
+ ci_bar(f, "Update", NULL, 0, false);
+ char title[64], rows[2][POD_ROW_MAX], right[16];
+ if (restarting) snprintf(title, sizeof title, "Restarting\xe2\x80\xa6");
+ else snprintf(title, sizeof title, "Updating to %s", to);
+ int n = ci_wrap("Keep the cable connected. The device restarts when it is done.", &ci_rg_26, NOTE_W, 2, rows);
+ const int note_h = n * NOTE_LINE, total = CIRCLE + GAP + EYEBROW_H + GAP + TITLE_H + GAP + BAR_H + GAP + note_h;
+ int y = CI_BAR_H + (CI_FOOT_Y - CI_BAR_H - total) / 2;
+ // 1. the circle and its arrow
+ ht_pro_rect_aa_stroke(s, (POD_W - CIRCLE) / 2, y, CIRCLE, CIRCLE, CIRCLE / 2, ht_rgb(0xa3b6a8), ht_rgb(0xe5efdf));
+ download_arrow(s, POD_W / 2 - 1, y + 28, ht_rgb(0x386848));
+ y += CIRCLE + GAP;
+ // 2. the eyebrow
+ const char *eyebrow = "HARNESS PRO";
+ int ew = ht_pro_width(&ci_rg_20, eyebrow);
+ ht_pro_text(s, (POD_W - ew) / 2, cell_y(y, EYEBROW_H, 20), ew, &ci_rg_20, ht_rgb(0x657a6c), eyebrow);
+ y += EYEBROW_H + GAP;
+ // 3. the title
+ int tw = ht_pro_width(&ci_bd_45, title);
+ if (tw > POD_W - 2 * CI_MARGIN) tw = POD_W - 2 * CI_MARGIN;
+ ht_pro_text(s, (POD_W - tw) / 2, cell_y(y, TITLE_H, 45) - 1, tw, &ci_bd_45, CI_INK, title);
+ y += TITLE_H + GAP;
+ // 4. the bar: a 1 px edge, the track, and the blue fill to pct (a slot at 0 keeps the run count)
+ const int x0 = (POD_W - BAR_W) / 2, fill = (BAR_W - 2) * (restarting ? 100 : pct) / 100;
+ ht_pro_rect_aa_stroke(s, x0, y, BAR_W, BAR_H, 5, ht_rgb(0xc4cbc7), ht_rgb(0xdfe3dc));
+ if (fill > 0) pod_grad_aa(s, x0 + 1, y + 1, fill, BAR_H - 2, 4, ht_rgb(0x286fda), ht_rgb(0x1759bd));
else pod_arc(s, x0 * 16, y * 16, 0, 0, 0, 0, 0); // the fill's slot
y += BAR_H + GAP;
- char p[8];
- snprintf(p, sizeof p, "%d%%", pct);
- ht_pro_text(s, x0, y, ht_pro_width(small, p), small, C(0x333333), p);
- const char *keep = "Keep the cable in";
- int w = ht_pro_width(small, keep);
- ht_pro_text(s, x0 + BAR_W - w, y, w, small, C(0x7b7d84), keep);
+ // 5. the note
+ for (int i = 0; i < n; i++) {
+ int w = ht_pro_width(&ci_rg_26, rows[i]);
+ ht_pro_text(s, (POD_W - w) / 2, cell_y(y + i * NOTE_LINE, NOTE_LINE, 26) - 1, w, &ci_rg_26, CI_MUTED, rows[i]);
+ }
+ if (restarting) snprintf(right, sizeof right, "RESTARTING");
+ else snprintf(right, sizeof right, "%d%%", pct);
+ ci_foot(s, "Downloading", true, right);
}
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_view_recap.c b/devices/harness-pro/firmware/main/pod/classic/pod_view_recap.c
index 84de72af1..502f05bf7 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_view_recap.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_view_recap.c
@@ -1,5 +1,6 @@
-// The Recap screen: a small cover, the name and status, then the whole recap as plain wrapped text, scrolled by a
-// vertical drag when it is longer than the space.
+// The Recap screen (Classic Index): the head and band of the Agent screen with the tokens, then "SAVED RESULT" and the whole
+// recap as wrapped text, scrolled by one 42 px line per step when it is longer than the space. Talk below.
+#include "pod/classic/ci.h"
#include "pod/pod_view_shared.h"
#include <stdio.h>
@@ -7,28 +8,11 @@
#include "pod/pod_mem.h"
-#define C pod_c
-
-enum { COVER = 132, COVER_X = 46, COVER_Y = 76, TEXT_X = 201, BODY_X = 40, BODY_W = 640, ROWS_ALL = 64, RECAP_WORDS = 50 };
+enum { LABEL_Y = 324, TEXT_Y = 357, LINE = 42, BODY_W = 656, ROWS_ALL = 64, RECAP_WORDS = 50 };
static EXT_RAM_BSS_ATTR char pod_recap_rows[ROWS_ALL][POD_ROW_MAX];
-// The recap's lines (stored NUL-separated) joined with spaces and wrapped. In PSRAM: the render task is the only
-// writer and the touch task reads the row count, both under display_lock.
-// The body follows the head down (owner, 2026-10-10: with the engine line gone it stayed put and left a hole): 22 px
-// under the head's last ink, the status line or the pet's cover, whichever is lower. The head's lines are laid out as
-// in pod_view_recap() below: the name, the tab and the machine, then the status (the LCD pill while working).
-// The name is one line, cut with "..." (owner, 2026-10-11: a second line broke the title, and sat under the notice).
-#define NAME_Y (104 - ht_pro_32.height / 2)
-static int body_y(const pod_agent_t *a)
-{
- const int who_y = pod_under_32(NAME_Y), rows = 1 + (a->machine[0] ? 1 : 0);
- const int wy = who_y + rows * POD_WHO_PITCH;
- // Idle has no status line (owner, 2026-10-11): the head ends at the last info line.
- const int head_bottom = a->state == POD_WORKING ? wy + 6 + POD_LCD_H : a->state == POD_IDLE ? wy - POD_WHO_PITCH + 6 + 17 : wy + 6 + 17;
- const int cap_top = (head_bottom > COVER_Y + COVER ? head_bottom : COVER_Y + COVER) + 22;
- return cap_top - 9; // a 32 px cell's capitals start 9 px in
-}
-static int body_rows(const pod_agent_t *a) { return (POD_TRANSPORT_Y - 8 - body_y(a)) / ht_pro_32.height; }
+// The rows that fit between the label and the transport.
+static int body_rows(void) { return (CI_TRANS_Y - 2 - TEXT_Y) / LINE; }
// The recap's sentences joined with spaces; returns the bytes written (cap includes the NUL).
int pod_recap_join(const pod_agent_t *a, char *out, size_t cap)
{
@@ -71,41 +55,23 @@ static int layout(const pod_agent_t *a)
static EXT_RAM_BSS_ATTR char joined[POD_RECAP_BYTES + POD_RECAP_LINES + 4];
pod_recap_join(a, joined, sizeof joined);
pod_recap_cut(joined, joined, sizeof joined);
- return pod_wrap(joined, &ht_pro_32, BODY_W, ROWS_ALL, pod_recap_rows);
+ return pod_wrap_hard(joined, &ci_rg_32, BODY_W, ROWS_ALL, pod_recap_rows);
}
+int pod_recap_pitch(void) { return LINE; }
static bool shows_recap(const pod_model_t *m, const pod_agent_t *a)
{
pod_state_t st = pod_model_eff(m, a);
return st != POD_WORKING && st != POD_ASKING && a->recap_lines;
}
-// A row followed by "..." (the font has no "…"), trimmed at a word or codepoint so the whole of it still fits the width.
-static void with_dots(char out[POD_ROW_MAX], const char *row, int width)
-{
- snprintf(out, POD_ROW_MAX, "%s", row);
- size_t n = strlen(out);
- while (n && (out[n - 1] == ' ' || out[n - 1] == '.' || out[n - 1] == ',')) out[--n] = 0;
- for (;;) {
- char t[POD_ROW_MAX + 4];
- snprintf(t, sizeof t, "%s...", out);
- if (n == 0 || ht_pro_width(&ht_pro_32, t) <= width) { snprintf(out, POD_ROW_MAX, "%s", t); return; }
- size_t w = n;
- while (w > 0 && out[w - 1] != ' ') w--;
- if (w > 0) n = w - 1;
- else { n--; while (n > 0 && ((unsigned char)out[n] & 0xC0) == 0x80) n--; }
- out[n] = 0;
- while (n && out[n - 1] == ' ') out[--n] = 0;
- }
-}
int pod_recap_max_row(const pod_nav_t *nav, const pod_model_t *m)
{
const pod_agent_t *a = pod_view_agent_of(nav, m);
if (!a || !shows_recap(m, a)) return 0;
- int over = layout(a) - body_rows(a);
+ int over = layout(a) - body_rows();
return over > 0 ? over : 0;
}
-
-// The pet's next step; the LCD pill (working) moves every frame, as on the Agent screen.
+// The pet's next step; the band's equaliser (working) moves every frame, as on the Agent screen.
uint32_t pod_view_recap_next_ms(const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
const pod_agent_t *a = pod_view_agent_of(nav, m);
@@ -119,55 +85,29 @@ uint32_t pod_view_recap_next_ms(const pod_nav_t *nav, const pod_model_t *m, uint
void pod_view_recap(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
ht_scene_t *s = f->scene;
- pod_status(f, pod_view_title(nav, m), true, 0);
+ ci_bar(f, "Recap", pod_nav_origin(nav, m), f->unread, true);
const pod_agent_t *a = pod_view_agent_of(nav, m);
- if (!a) { pod_transport(f, false); return; }
+ if (!a) { ci_talk(f, false); return; }
const pod_frame_t *fr = &nav->stack[nav->depth - 1];
- pod_state_t st = pod_model_eff(m, a);
- bool working = st == POD_WORKING;
- pod_pet_draw(s, COVER_X, COVER_Y, COVER, a->engine, working ? POD_SCENE_WORK : POD_SCENE_REST, now_ms, 0);
-
- // The name in 32 on one line; a newline in it is a space, and ht_pro_text ends a long one with "...".
- char name[sizeof a->name];
- snprintf(name, sizeof name, "%s", a->name);
- for (char *c = name; *c; c++) if (*c == '\n' || *c == '\r' || *c == '\t') *c = ' ';
- ht_pro_text(s, TEXT_X, NAME_Y, 680 - TEXT_X, &ht_pro_32, C(0x111111), name);
- const int who_y = pod_under_32(NAME_Y);
- int who_rows = pod_who_line(s, TEXT_X, who_y, 680 - TEXT_X, nav, m, a);
- int wy = who_y + who_rows * POD_WHO_PITCH, wx = TEXT_X;
- char t[12], when[32];
- pod_fmt_time(t, sizeof t, pod_agent_secs(a, now_ms));
- if (st == POD_DONE) {
- pod_tick(s, wx, wy + 2, C(0x34c759));
- wx += 30;
- snprintf(when, sizeof when, "Done \xc2\xb7 %s", t);
- } else if (working) {
- pod_lcd_pill(s, TEXT_X, wy + 6, 680 - TEXT_X, a, now_ms);
- when[0] = 0;
- } else {
- when[0] = 0; // idle says nothing (owner, 2026-10-11)
- }
- if (when[0]) ht_pro_text(s, wx, wy, 680 - wx, &ht_pro_24, C(0x7b7d84), when);
-
+ const pod_state_t st = pod_model_eff(m, a);
+ ci_agent_head(f, m, a, st, now_ms, true);
+ ci_talk(f, m->linked && (st == POD_IDLE || st == POD_WORKING || st == POD_DONE));
+ ci_caps(s, CI_MARGIN, LABEL_Y, "SAVED RESULT");
if (!shows_recap(m, a)) {
const char *msg = st == POD_IDLE || st == POD_DONE ? "No recap yet." : "The recap comes when this turn ends.";
- ht_pro_text(s, BODY_X, body_y(a), BODY_W, &ht_pro_32, C(0x111111), msg);
- pod_transport(f, false);
+ ci_text(s, CI_MARGIN, TEXT_Y, BODY_W, &ci_rg_32, CI_INK, msg);
return;
}
-
- const int pitch = ht_pro_32.height, visible = body_rows(a), total = layout(a);
+ const int visible = body_rows(), total = layout(a);
int first = fr->scroll < 0 ? 0 : fr->scroll, max = total > visible ? total - visible : 0;
if (first > max) first = max;
for (int r = 0; r < visible && first + r < total; r++) {
const char *row = pod_recap_rows[first + r];
- // The last row on screen ends with "..." while there is more below it; the text's own last row, when the
- // text itself was cut.
+ // The last row on screen ends with "…" while there is more below it; the text's own last row, when the text itself was cut.
bool more_below = r == visible - 1 && first + r + 1 < total;
bool cut_end = first + r == total - 1 && a->recap_cut;
char dotted[POD_ROW_MAX];
- if (more_below || cut_end) { with_dots(dotted, row, BODY_W); row = dotted; }
- ht_pro_text(s, BODY_X, body_y(a) + r * pitch, BODY_W, &ht_pro_32, C(0x111111), row);
+ if (more_below || cut_end) { ci_dotted(dotted, row, &ci_rg_32, BODY_W); row = dotted; }
+ ci_text(s, CI_MARGIN, TEXT_Y + r * LINE, BODY_W, &ci_rg_32, CI_INK, row);
}
- pod_transport(f, false);
}
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_view_tab.c b/devices/harness-pro/firmware/main/pod/classic/pod_view_tab.c
index 1882539bb..1b53ef1bc 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_view_tab.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_view_tab.c
@@ -1,130 +1,83 @@
-// The Tab screen: its agents in pane order, 84 px a row, right under the status bar (whose title names the tab). The
-// Recent list is the same screen over the agents with the most recent tasks.
-#include "pod/pod_view.h"
-#include "pro_canvas.h"
+// The Tab screen (Classic Index): the tab's agents in pane order, 112 px a row, right under the bar (whose title names the
+// tab). Recent is the same list over the agents with the most recent tasks. Four rows show whole and a fifth peeks above the
+// footer; a drag scrolls by rows.
+#include "pod/classic/ci.h"
#include <stdio.h>
#include <string.h>
-enum { ROWS_Y = POD_STATUS_H, ROW_H = 84, ROWS_MAX = (POD_W - POD_STATUS_H) / ROW_H }; // 7 rows
+enum { ROWS_Y = CI_BAR_H, ROWS_MAX = (CI_FOOT_Y - CI_BAR_H) / CI_ROW_H, ROWS_DRAWN = ROWS_MAX + 1, NAME_X = 106, META_GAP = 16 }; // 4 whole + 1 peeking
-static uint16_t C(unsigned rgb) { return ht_rgb(rgb); }
static int imin(int a, int b) { return a < b ? a : b; }
static int imax(int a, int b) { return a > b ? a : b; }
-static unsigned row_runs(const pod_model_t *m, const pod_agent_t *a)
-{
- pod_state_t st = pod_model_eff(m, a);
- // done: the tick is 4 runs and the time one; idle says nothing (owner, 2026-10-10: "Idle" on every row was noise)
- unsigned meta = st == POD_WORKING ? 1u : st == POD_ASKING ? 2u : st == POD_DONE ? 5u : st == POD_OFFLINE ? 1u : 0u;
- return 1u + (st == POD_WORKING ? 3u : 1u) + pod_mark_runs(a->engine) + 1u + 1u + meta;
-}
-
-static bool off_row(const pod_model_t *m, const pod_agent_t *a) { return pod_model_eff(m, a) == POD_OFFLINE; }
-
-// The recap's sentences joined into one line (ht_pro_text ends it with "..." at the row's width); false with no recap.
-static bool recap_line(char *out, size_t cap, const pod_agent_t *a)
-{
- size_t pos = 0;
- out[0] = 0;
- for (int i = 0; i < a->recap_lines && pos + 1 < cap; i++) {
- const char *l = a->recap + a->line_at[i];
- if (!*l) continue;
- int n = snprintf(out + pos, cap - pos, "%s%s", pos ? " " : "", l);
- if (n < 0) break;
- pos += (size_t)n < cap - pos ? (size_t)n : cap - pos - 1;
- }
- pod_utf8_trim(out);
- return out[0] != 0;
-}
-
-static void row(pod_out_frame_t *f, const pod_model_t *m, const pod_agent_t *a, int index, int pane, bool prefix,
- int y0, uint32_t now_ms)
+// One row at y0: the mark box, the name over "Engine · Machine", the time over the state word on the right.
+static void row(pod_out_frame_t *f, const pod_model_t *m, const pod_agent_t *a, int index, int y0, uint32_t now_ms)
{
ht_scene_t *s = f->scene;
- uint16_t dim = C(0x7b7d84), ink = C(0x111111), blue = C(0x1f63d1);
pod_state_t st = pod_model_eff(m, a);
- bool working = st == POD_WORKING;
- if (working) {
- pod_eq(s, 25, y0 + 32, blue, now_ms);
- } else {
- char n[12];
- snprintf(n, sizeof n, "%d", pane);
- int w = ht_pro_width(&ht_pro_32, n);
- ht_pro_text(s, 37 - w / 2, y0 + 26, w, &ht_pro_32, dim, n);
- }
- (off_row(m, a) ? pod_mark_chip_dim_on : pod_mark_chip_on)(s, 66, y0 + 24, a->engine, C(0xffffff));
-
- // The right side first: it decides how much room the name has.
- char meta[16] = "", t[12];
- pod_fmt_time(t, sizeof t, pod_agent_secs(a, now_ms));
- int extra = 0;
- if (working) snprintf(meta, sizeof meta, "%s", t);
- else if (st == POD_ASKING) { snprintf(meta, sizeof meta, "Asks"); extra = 24; }
- else if (st == POD_DONE) { snprintf(meta, sizeof meta, "%s", t); extra = 28; }
- else if (st == POD_OFFLINE) snprintf(meta, sizeof meta, "Offline");
- bool off = st == POD_OFFLINE;
- uint16_t grey = C(0xa0a4a0);
- int mw = meta[0] ? ht_pro_width(&ht_pro_24, meta) : 0, right = 698;
- int mx = right - mw;
- if (st == POD_ASKING) ht_pro_rect(s, mx - 24, y0 + 35, 14, 14, 7, C(0xff9f0a));
- if (st == POD_DONE) pod_tick(s, mx - 28, y0 + 34, C(0x34c759));
- if (meta[0]) ht_pro_text(s, mx, y0 + 30, mw, &ht_pro_24, off ? grey : dim, meta);
-
- int room = right - 118 - mw - extra - 16;
- ht_pro_text(s, 118, y0 + 8, room, &ht_pro_32, off ? grey : working ? blue : ink, a->name);
- // The second line: in Recent, what the agent did in its last turn (its recap, owner 2026-10-11); elsewhere, or
- // with no recap yet, the engine and machine (Recent adds the tab).
- char eng[16], sub[HT_TEXT_BYTES * 2];
- if (!prefix || !recap_line(sub, sizeof sub, a)) {
- pod_engine_name(eng, sizeof eng, a->engine);
- const pod_tab_t *tab = prefix ? pod_tab_of(m, a) : NULL;
- if (tab) snprintf(sub, sizeof sub, "%s \xc2\xb7 %s \xc2\xb7 %s", tab->name, eng, a->machine);
- else snprintf(sub, sizeof sub, "%s \xc2\xb7 %s", eng, a->machine);
- pod_utf8_trim(sub);
- }
- ht_pro_text(s, 118, y0 + 46, room, &ht_pro_24, off ? grey : dim, sub);
- ht_pro_rect(s, 0, y0 + ROW_H - 1, POD_W, 1, 0, C(0xe5e6ea));
- pod_hit_add_id(f, 0, y0, POD_W, ROW_H, POD_A_OPEN_AGENT, index, a->id);
+ const char *word;
+ uint16_t wink;
+ ci_state_word(st, &word, &wink);
+ char t[16];
+ ci_fmt_elapsed(t, sizeof t, st == POD_WORKING || st == POD_DONE ? (int32_t)pod_agent_secs(a, now_ms) : -1);
+ int tw = ht_pro_width(&ci_rg_22, t), ww = ht_pro_width(&ci_bd_20, word), mw = imax(tw, ww), right = POD_W - CI_MARGIN;
+ const int cy = y0 + CI_ROW_H / 2;
+ ci_mark(s, CI_MARGIN, y0 + (CI_ROW_H - CI_MARK) / 2, a->engine);
+ ci_text(s, right - tw, cy - 15 - ci_rg_22.height / 2, tw, &ci_rg_22, CI_MUTED, t);
+ ci_text(s, right - ww, cy + 16 - ci_bd_20.height / 2, ww, &ci_bd_20, wink, word);
+ int room = right - mw - META_GAP - NAME_X;
+ ci_text(s, NAME_X, cy - 18 - ci_rg_33.height / 2, room, &ci_rg_33, CI_INK, a->name);
+ char eng[16], sub[HT_TEXT_BYTES];
+ pod_engine_name(eng, sizeof eng, a->engine);
+ snprintf(sub, sizeof sub, "%s%s%s", eng, eng[0] && a->machine[0] ? " \xc2\xb7 " : "", a->machine);
+ ci_text(s, NAME_X, cy + 21 - ci_rg_23.height / 2, room, &ci_rg_23, CI_MUTED, sub);
+ ht_pro_rect(s, 0, y0 + CI_ROW_H - 1, POD_W, 1, 0, CI_RULE);
+ pod_hit_add_id(f, 0, y0, POD_W, imin(CI_ROW_H, CI_FOOT_Y - y0), POD_A_OPEN_AGENT, index, a->id);
}
void pod_view_tab(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
ht_scene_t *s = f->scene;
+ s->background = CI_GROUND;
const pod_frame_t *fr = &nav->stack[nav->depth - 1];
bool is_recent = fr->tab == POD_TAB_RECENT;
- const pod_tab_t *tab = !is_recent && fr->tab >= 0 && fr->tab < m->tab_count ? &m->tabs[fr->tab] : NULL;
const pod_agent_t *list[POD_AGENTS_MAX];
int n = pod_nav_list(nav, m, list, POD_AGENTS_MAX);
- pod_status(f, pod_view_title(nav, m), true, 0);
-
- int first = imax(0, imin(fr->scroll, n - ROWS_MAX));
- int shown = imin(ROWS_MAX, n - first);
-
- // The rows start right under the status bar (its title names the tab); fewer rows only if they do not fit the runs.
- int budget = POD_CLASSIC_RUNS - s->count - 4 - pod_spare_runs(f); // 4: what pod_ui_render adds (the notice); the bell and the banner
- for (; shown > 0; shown--) {
- unsigned rows = 0;
- for (int i = 0; i < shown; i++) rows += row_runs(m, list[first + i]);
- if ((int)rows <= budget) break;
- }
-
+ const char *back = is_recent ? "Back" : pod_nav_origin(nav, m); // Recent: "Back"; a tab list: "Tabs"
+ char foot[24];
if (n == 0) {
- const char *msg = is_recent ? "No recent agents" : "No panes in this tab";
- int mw = ht_pro_width(&ht_pro_32, msg);
- ht_pro_text(s, (POD_W - mw) / 2, POD_STATUS_H + (POD_W - POD_STATUS_H - ht_pro_32.height) / 2, mw, &ht_pro_32, C(0x7b7d84), msg);
+ if (is_recent) { // the spec fixes the copy of an empty tab only
+ const char *l1 = "No recent agents.", *l2 = "Agents with a task show up here.";
+ int w1 = ht_pro_width(&ci_rg_33, l1), w2 = ht_pro_width(&ci_rg_25, l2);
+ ht_pro_text(s, (POD_W - w1) / 2, 159 - ci_rg_33.height / 2, w1, &ci_rg_33, CI_INK, l1);
+ ht_pro_text(s, (POD_W - w2) / 2, 242 - ci_rg_25.height / 2, w2, &ci_rg_25, CI_MUTED, l2);
+ snprintf(foot, sizeof foot, "No agents");
+ } else {
+ const char *l1 = "No panes yet.", *l2 = "This tab is managed in Harness.";
+ int w1 = ht_pro_width(&ci_rg_43, l1), w2 = ht_pro_width(&ci_rg_25, l2);
+ ht_pro_text(s, (POD_W - w1) / 2, 159 - ci_rg_43.height / 2, w1, &ci_rg_43, CI_INK, l1);
+ ht_pro_text(s, (POD_W - w2) / 2, 242 - ci_rg_25.height / 2, w2, &ci_rg_25, CI_MUTED, l2);
+ snprintf(foot, sizeof foot, "No panes");
+ }
+ ci_foot(s, foot, true, NULL);
+ ci_bar(f, pod_view_title(nav, m), back, f->unread, true);
return;
}
- for (int i = 0; i < shown; i++) {
- const pod_agent_t *a = list[first + i];
- int pane = is_recent ? first + i + 1 : pod_agent_pane(m, a, tab);
- row(f, m, a, first + i, pane ? pane : first + i + 1, is_recent, ROWS_Y + i * ROW_H, now_ms);
- }
+
+ int first = imax(0, imin(fr->scroll, n - ROWS_MAX));
+ int shown = imin(ROWS_DRAWN, n - first);
+ for (int i = 0; i < shown; i++) row(f, m, list[first + i], first + i, ROWS_Y + i * CI_ROW_H, now_ms);
+
+ char right[24];
+ snprintf(right, sizeof right, "%d %s%s", n, is_recent ? "AGENT" : "PANE", n == 1 ? "" : "S");
+ ci_foot(s, "Scroll to browse", true, right);
+ ci_bar(f, pod_view_title(nav, m), back, f->unread, true);
}
-// Scrolling (see pod_scroll_pitch): a row is ROW_H px and the last offset shows the last ROWS_MAX agents.
-int pod_tab_pitch(void) { return ROW_H; }
+// Scrolling (see pod_scroll_pitch): a row is CI_ROW_H px and the last offset shows the last ROWS_MAX agents whole.
+int pod_tab_pitch(void) { return CI_ROW_H; }
int pod_tab_max_row(const pod_nav_t *nav, const pod_model_t *m)
{
const pod_agent_t *list[POD_AGENTS_MAX];
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_view_tabs.c b/devices/harness-pro/firmware/main/pod/classic/pod_view_tabs.c
index d1fae0ce3..469e54081 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_view_tabs.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_view_tabs.c
@@ -1,69 +1,53 @@
-// The Tabs screen: an album grid on a light glass, three covers across and two rows down. Every tab is a square cover of its
-// own colour with its panes drawn on it as white cards (an engine mark in each, a dot on the working and asking ones); the
-// first cover is Recent (its agents' marks in a 4 x 2 grid), an empty tab is grey with a "+". The window's selected tab is
-// ringed in blue, its name blue. Under each cover: the name, then "N panes". A cover whose agents are working wears a
-// "Working ribbon" at its foot: a dark band with three green bars, "Working" and a white disc with the working count.
-// Exactly two rows of covers a page. More than six covers scroll by pages (the frame's scroll is the first row of the page,
-// so always even); a small dot column on the right edge counts the pages. While the finger drags, or the page settles after
-// the release, the glue gives the pixel offset (f->tabs_off) and the grid is drawn where it is: every row that meets the
-// glass, the status bar drawn last over whatever has scrolled under it. At rest only the page's two rows are drawn.
+// The Tabs screen (Classic Index): a 3 x 2 grid of 164 px covers between the bar and the footer. Each cover wears its
+// tab's panes as pale minis (one pane fills it, two or more split into two columns, a mark in each, a dot on a working or
+// asking one); the first cover is Recent (up to 8 minis, 4 x 2); an empty tab is grey with a grid icon. A cover whose
+// agents are working wears a ribbon at its foot (eq, "Working", the count). The window's selected tab is ringed in blue
+// with its name blue. Under each cover: the name, then "7 agents" / "2 panes" / "Empty".
+// Two rows of covers a page; more than six covers page (the frame's scroll is the first row of the page, so always even).
+// While the finger drags, or the page settles after the release, the glue gives the pixel offset (f->tabs_off) and the grid
+// is drawn where it is, the bar and the footer drawn last over whatever has scrolled under them.
//
-// Nothing here depends on the clock but the ribbon's bars, which step through three heights every POD_TABS_BAR_MS: only
-// their three rects change, so the glue wakes the screen at that pace while a ribbon shows (pod_tabs_ribbon).
-// When the frame is short of runs the dots go first, then the marks, then the cards of a cover, the least visible covers
-// first (at rest: the last covers first) and the selected one last. The ribbon stays; only while the grid moves, as the very
-// last resort, the ribbons of the least visible covers go.
-#include "pod/pod_view.h"
-#include "pod/pod_view_shared.h"
-#include "pro_canvas.h"
+// The ribbon's eq moves with the clock, so the glue wakes the screen every POD_TABS_BAR_MS while one shows (pod_tabs_ribbon).
+// When the frame is short of runs the dots go first, then the marks, then the minis, the least visible covers first (at
+// rest: the last covers first) and the selected one last; only while the grid moves, as the very last resort, the ribbons.
+#include "pod/classic/ci.h"
#include <stdio.h>
#include <string.h>
enum {
- COLS = 3, COVER = 196, COL_PITCH = 228, MARGIN_X = 34, ROW_PITCH = 280, TOP_Y = 104, COVER_R = 16,
- NAME_DY = 10, LINE_DY = 50, CAPTION_W = 226, HIT_H = 84 + COVER - 10,
- RING = 5, RING_GAP = 3, RING_R = 24,
- ROWS_PAGE = 2, PAGE_H = ROWS_PAGE * ROW_PITCH, ROW_H = COVER + LINE_DY + 28, // a row: cover, name and count line
- SPARE_RUNS = 4, // runs left for what pod_ui_render adds (the notice)
- STATUS_RUNS = 5, // the status bar, drawn last: its gradient, the title, and "N working" with its triangle
- SHOWN_MAX = 4 * COLS, // two partial pages: four rows meet the glass
- DOT = 6, DOT_PITCH = 14, DOT_X = 709, DOT_MAX = 12,
- BARE = 4, // detail bit, local: the cover is its gradient alone (its cards are dropped)
- NORIB = 8, // detail bit, local: no ribbon (only in motion, short of runs)
- RIB_H = 38, RIB_ROUND = 32, RIB_RUNS = 8, // band height; its rounded part; band (2), bars (3), Working, disc, count
- RIB_BAR_W = 5, RIB_BAR_PITCH = 8, RIB_DISC = 24,
- GLASS_TOP = POD_STATUS_H
+ COLS = 3, COVER = 164, COVER_R = 13, TOP_Y = 113, ROW_PITCH = 255, ROWS_PAGE = 2, PAGE_H = ROWS_PAGE * ROW_PITCH,
+ HIT_W = 213, HIT_H = 240, HIT_DX = 24, // a card's hit: the column, from the row's top to its count line
+ NAME_MID = 26, COUNT_MID = 57, // the name and count centres below the art's foot
+ RING = 5, RING_GAP = 5,
+ PAD = 13, GAP = 6, CELLS_MAX = 8,
+ RIB_H = 31, RIB_ROUND = 26, RIB_PAD = 9,
+ SHOWN_MAX = 4 * COLS, // two partial pages: four rows meet the glass
+ BAR_RUNS = 12, FOOT_RUNS = 6, // the bar (bell and pill included) and the footer, drawn last
+ D_DOT = 1, D_MARK = 2, D_BARE = 4, D_NORIB = 8, D_FULL = D_DOT | D_MARK,
+ GLASS_TOP = CI_BAR_H + 1, GLASS_BOT = CI_FOOT_Y
};
+static const int col_x[COLS] = {52, 278, 505}; // the art's left edges (the card is centred in its 213 px column)
-// The greys are chosen in RGB565 (red and blue 5 bits, green 6): the green byte sits about 4 above them, else the glass reads pink.
-#define FLOOR_TOP 0xf0f4f8
-#define FLOOR_BOTTOM 0xe0e4e8
-#define INK 0x111111
-#define GREY 0x7b7d84
-#define GREEN 0x2fa84f
-#define AMBER 0xe08a00
-#define BLUE 0x1f63d1
-#define RING_BLUE 0x0a84ff
+#define MINI 0xf8faf7
+#define DOT_WORK 0x35734f
+#define DOT_ASK 0xbf861e
+#define RIB_INK 0x172f39
+#define RIB_EQ 0xa6e0b5
static uint16_t C(unsigned rgb) { return ht_rgb(rgb); }
static int imin(int a, int b) { return a < b ? a : b; }
static int imax(int a, int b) { return a > b ? a : b; }
-// The cover colours, top to bottom, by tab order; Recent has its own blue.
+// The cover colours by tab order (Recent has its own).
static const unsigned palette[][2] = {
- {0x6f74d6, 0x2f2a8e}, // indigo
- {0xf08a84, 0xc53b67}, // coral to raspberry
- {0x4cc6a6, 0x1f7f86}, // teal
- {0xf7b04a, 0xe0701f}, // orange
- {0x579ae7, 0x1758ce}, // blue
- {0xb27ae6, 0x6b2fb8}, // violet
- {0x7bd47a, 0x2f9a4a}, // green
- {0x9aa0b0, 0x545a6c}, // slate
+ {0x9389c7, 0x584d8e}, // purple
+ {0xd99191, 0x995471}, // rose
+ {0x80b5a1, 0x477e70}, // green
+ {0xd6aa6b, 0xa3733d}, // ochre
+ {0x83a1c8, 0x456990}, // slate
};
enum { PALETTE_N = sizeof palette / sizeof palette[0] };
-#define RECENT_TOP 0x5ea2f2
-#define RECENT_BOTTOM 0x1f63d1
static unsigned mix(unsigned a, unsigned b, int pct) // a toward b, in percent
{
@@ -74,11 +58,10 @@ static unsigned mix(unsigned a, unsigned b, int pct) // a toward b, in percent
}
return out;
}
-static unsigned floor_at(int y) { return mix(FLOOR_TOP, FLOOR_BOTTOM, imax(0, y - GLASS_TOP) * 100 / (POD_W - GLASS_TOP)); }
-
// Cover c: 0 is Recent, i + 1 is tab i.
-static unsigned cover_top(int c) { return c > 0 ? palette[(c - 1) % PALETTE_N][0] : RECENT_TOP; }
-static unsigned cover_bottom(int c) { return c > 0 ? palette[(c - 1) % PALETTE_N][1] : RECENT_BOTTOM; }
+static unsigned cover_top(int c) { return c > 0 ? palette[(c - 1) % PALETTE_N][0] : 0x5d8dda; }
+static unsigned cover_bottom(int c) { return c > 0 ? palette[(c - 1) % PALETTE_N][1] : 0x2859aa; }
+static unsigned cover_at(int c, int pct) { return mix(cover_top(c), cover_bottom(c), pct); }
static bool cover_empty(const pod_model_t *m, int c) { return c > 0 && pod_tab_panes(&m->tabs[c - 1]) == 0; }
static int chosen_cover(const pod_model_t *m) // the window's selected tab, or -1
{
@@ -98,55 +81,23 @@ typedef struct { char name[CABLE_NAME_MAX + 4], count[24]; int working; } captio
static void caption(const pod_model_t *m, int c, caption_t *cap)
{
memset(cap, 0, sizeof *cap);
- int w = 0, q = 0;
+ int w = 0;
if (c == 0) {
const pod_agent_t *l[POD_RECENT_MAX];
int n = pod_model_recent(m, l, POD_RECENT_MAX);
- for (int i = 0; i < n; i++) {
- pod_state_t st = pod_model_eff(m, l[i]);
- if (st == POD_WORKING) w++; else if (st == POD_ASKING) q++;
- }
+ for (int i = 0; i < n; i++) if (pod_model_eff(m, l[i]) == POD_WORKING) w++;
snprintf(cap->name, sizeof cap->name, "Recent");
snprintf(cap->count, sizeof cap->count, "%d agent%s", n, n == 1 ? "" : "s");
} else {
const pod_tab_t *t = &m->tabs[c - 1];
int n = pod_tab_panes(t);
- pod_tab_counts(m, t, &w, &q);
+ pod_tab_counts(m, t, &w, NULL);
snprintf(cap->name, sizeof cap->name, "%s", t->name);
if (n == 0) snprintf(cap->count, sizeof cap->count, "Empty");
else snprintf(cap->count, sizeof cap->count, "%d pane%s", n, n == 1 ? "" : "s");
}
cap->working = w;
- (void)q;
}
-static unsigned caption_runs(const caption_t *cap) { (void)cap; return 2u; }
-
-// ---- the Working ribbon -----------------------------------------------------------------------------------------
-// The band is black at 62% over the cover's gradient at its foot, one flat colour a cover (no alpha on rects): a rounded
-// rect for the cover's bottom corners plus a square one above it.
-static unsigned ribbon_ground(int c) { return mix(mix(cover_top(c), cover_bottom(c), 90), 0x000000, 62); }
-static int ribbon_step(uint32_t now_ms) { return (int)(now_ms / POD_TABS_BAR_MS % 3); }
-static void draw_ribbon(ht_scene_t *s, int c, int x, int y, int working, uint32_t now_ms)
-{
- static const int bar_h[3] = {8, 14, 20};
- uint16_t band = C(ribbon_ground(c));
- int by = y + COVER - RIB_H, mid = y + COVER - RIB_H / 2;
- ht_pro_rect(s, x, y + COVER - RIB_ROUND, COVER, RIB_ROUND, COVER_R, band);
- ht_pro_rect(s, x, by, COVER, RIB_H - COVER_R, 0, band);
- int step = ribbon_step(now_ms);
- for (int i = 0; i < 3; i++) {
- int h = bar_h[(step + i) % 3];
- ht_pro_rect(s, x + 12 + i * RIB_BAR_PITCH, mid + 11 - h, RIB_BAR_W, h, 2, C(0x34c759));
- }
- int dx = x + COVER - 10 - RIB_DISC;
- ht_pro_text(s, x + 40, mid - ht_pro_24.height / 2, dx - 8 - (x + 40), &ht_pro_24, C(0xffffff), "Working");
- ht_pro_rect(s, dx, mid - RIB_DISC / 2, RIB_DISC, RIB_DISC, RIB_DISC / 2, C(0xffffff));
- char n[8];
- snprintf(n, sizeof n, "%d", working);
- int w = ht_pro_width(&ht_pro_24, n);
- ht_pro_text(s, dx + (RIB_DISC - w) / 2, mid - ht_pro_24.height / 2, RIB_DISC, &ht_pro_24, C(0x178a6c), n);
-}
-static unsigned ribbon_runs(const caption_t *cap, int detail) { return cap->working > 0 && !(detail & NORIB) ? (unsigned)RIB_RUNS : 0u; }
// Does a ribbon show on the resting page `page`? The glue wakes at POD_TABS_BAR_MS while one does.
bool pod_tabs_ribbon(const pod_model_t *m, int page)
@@ -160,43 +111,146 @@ bool pod_tabs_ribbon(const pod_model_t *m, int page)
return false;
}
-static void draw_cover(ht_scene_t *s, const pod_model_t *m, int c, int x, int y, int detail)
+// ---- a cover's content ------------------------------------------------------------------------------------
+
+// Cell i of n along `len` px from `at`, `gap` between cells.
+static void cell(int at, int len, int gap, int n, int i, int *pos, int *size)
{
- if (detail & BARE) { // only while the grid is in motion and short of runs
- pod_grad(s, x, y, COVER, COVER, COVER_R, C(cover_empty(m, c) ? 0xa4a8b3 : cover_top(c)), C(cover_empty(m, c) ? 0x666a78 : cover_bottom(c)));
- return;
+ int room = len - (n - 1) * gap;
+ int a = at + i * gap + room * i / n, b = at + i * gap + room * (i + 1) / n;
+ *pos = a; *size = b - a;
+}
+typedef struct { int x, y, w, h; } box_t;
+// The minis of a tab's `n` panes, relative to the cover: one fills it, more are two columns; past 8 the eighth is "+N".
+static int tab_cells(int n, box_t out[CELLS_MAX])
+{
+ int cells = imin(n, CELLS_MAX), cols = n == 1 ? 1 : 2, rows = (cells + cols - 1) / cols, iw = COVER - 2 * PAD;
+ for (int i = 0; i < cells; i++) {
+ box_t *b = &out[i];
+ cell(PAD, iw, GAP, cols, i % cols, &b->x, &b->w);
+ cell(PAD, iw, GAP, rows, i / cols, &b->y, &b->h);
}
- if (cover_empty(m, c)) { pod_cover_empty(s, x, y, COVER, COVER_R); return; }
- if (c == 0) {
- const pod_agent_t *l[POD_RECENT_MAX];
- if (pod_model_recent(m, l, POD_RECENT_MAX) == 0) { pod_recent_face_r(s, x, y, COVER, COVER_R); return; }
- pod_grad(s, x, y, COVER, COVER, COVER_R, C(RECENT_TOP), C(RECENT_BOTTOM));
- pod_cover_recent(s, x, y, COVER, m, detail);
- return;
+ return cells;
+}
+// Recent's minis: 4 x 2, tall and thin, clear of the ribbon.
+static void recent_cell(int i, box_t *b)
+{
+ const int gap = 4, w = (COVER - 2 * PAD - 3 * gap) / 4, h = (COVER - PAD - 27 - gap) / 2;
+ *b = (box_t){PAD + (i % 4) * (w + gap), PAD + (i / 4) * (h + gap), w, h};
+}
+static const pod_agent_t *pane_agent(const pod_model_t *m, const pod_tab_t *t, int k)
+{
+ if (!t->members_known || k >= t->count || k >= POD_PANES_MAX) return NULL;
+ int i = t->agent[k];
+ return i >= 0 && i < m->agent_count ? &m->agents[i] : NULL;
+}
+
+// One mini at (x, y) in cover c: a pale card (half faded into the cover when its agent is offline), the mark centred (the
+// 44 px logo, or 28 where it is smaller; none where neither fits) and the state dot top right.
+static void draw_mini(ht_scene_t *s, const pod_model_t *m, int c, int x, int y, const box_t *b, const pod_agent_t *a, int r, int detail)
+{
+ pod_state_t st = a ? pod_model_eff(m, a) : POD_IDLE;
+ bool off = st == POD_OFFLINE;
+ int bx = x + b->x, by = y + b->y;
+ unsigned fill = off ? mix(MINI, cover_at(c, (b->y + b->h / 2) * 100 / COVER), 50) : MINI;
+ ht_pro_rect_aa(s, bx, by, b->w, b->h, r, C(fill));
+ int side = imin(b->w, b->h), size = side >= 46 ? 44 : side >= 30 ? 28 : 0;
+ if ((detail & D_MARK) && size) {
+ const char *eng = a ? a->engine : NULL;
+ const pod_mark_t *mk = pod_mark(eng);
+ int lx = bx + (b->w - size) / 2, ly = by + (b->h - size) / 2;
+ if (!mk) { // an unknown member or engine: the default mark
+ pod_mark_default_big(s, lx, ly, size, C(fill));
+ } else {
+ if (mk->light) ht_pro_rect(s, lx, ly, size, size, size / 5, C(off ? 0xb8bab8 : 0x1d1e23));
+ if (off) pod_logo_draw_faded(s, lx, ly, size, eng, 128);
+ else pod_logo_draw(s, lx, ly, size, eng);
+ }
+ }
+ if ((detail & D_DOT) && (st == POD_WORKING || st == POD_ASKING)) {
+ int d = r <= 3 ? 8 : b->h >= 45 ? 13 : 9, o = r <= 3 ? 2 : 5;
+ ht_pro_rect_aa(s, bx + b->w - o - d, by + o, d, d, d / 2, C(st == POD_WORKING ? DOT_WORK : DOT_ASK));
}
- pod_grad(s, x, y, COVER, COVER, COVER_R, C(cover_top(c)), C(cover_bottom(c)));
- pod_cover_cards(s, x, y, COVER, m, &m->tabs[c - 1], detail);
}
-static unsigned total_cover_runs(const pod_model_t *m, int c, int detail)
+
+// The grid icon of an empty tab: four outlined squares, 72 px across.
+static void draw_grid_icon(ht_scene_t *s, int x, int y)
{
- if (detail & BARE) return 1;
- if (cover_empty(m, c)) return pod_cover_empty_runs();
- if (c == 0) {
- const pod_agent_t *l[POD_RECENT_MAX];
- if (pod_model_recent(m, l, POD_RECENT_MAX) == 0) return pod_recent_face_runs();
- return 1u + pod_cover_recent_runs(m, COVER, detail);
+ const int box = 72, sq = 21, st = 3;
+ int ox = x + (COVER - box) / 2, oy = y + (COVER - box) / 2;
+ for (int i = 0; i < 4; i++) {
+ int sx = ox + (i % 2 ? 42 : 9), sy = oy + (i / 2 ? 42 : 9);
+ unsigned ground = mix(0xdce2d7, 0xbfcbbd, (sy + sq / 2 - y) * 100 / COVER);
+ unsigned line = mix(ground, 0xf8faf5, 85);
+ ht_pro_rect_aa(s, sx, sy, sq, sq, 3, C(line));
+ ht_pro_rect_aa(s, sx + st, sy + st, sq - 2 * st, sq - 2 * st, 1, C(ground));
}
- return 1u + pod_cover_cards_runs(m, &m->tabs[c - 1], COVER, detail);
}
-typedef struct { int c, x, y, vis, detail; caption_t cap; } slot_t;
+// The working ribbon on the cover's foot: eq on the left, "Working" between, the count on the right.
+static void draw_ribbon(ht_scene_t *s, int c, int x, int y, int working, uint32_t now_ms)
+{
+ uint16_t band = C(mix(cover_at(c, 93), RIB_INK, 79));
+ int by = y + COVER - RIB_H, mid = by + RIB_H / 2;
+ ht_pro_rect_aa(s, x, y + COVER - RIB_ROUND, COVER, RIB_ROUND, COVER_R, band);
+ ht_pro_rect(s, x, by, COVER, RIB_H - COVER_R, 0, band);
+ char n[8];
+ snprintf(n, sizeof n, "%d", working);
+ int cw = ht_pro_width(&ci_rg_20, n), tw = ht_pro_width(&ci_rg_20, "Working"), eq = 23;
+ int gap = imax(4, (COVER - 2 * RIB_PAD - eq - tw - cw) / 2);
+ pod_eq(s, x + RIB_PAD, mid - 10, C(RIB_EQ), now_ms);
+ ht_pro_text(s, x + RIB_PAD + eq + gap, mid - ci_rg_20.height / 2, tw, &ci_rg_20, C(0xffffff), "Working");
+ ht_pro_text(s, x + COVER - RIB_PAD - cw, mid - ci_rg_20.height / 2, cw, &ci_rg_20, C(0xffffff), n);
+}
+
+// The cover at (x, y): its gradient, its minis (or the grid icon), the ribbon.
+static void draw_cover(ht_scene_t *s, const pod_model_t *m, int c, int x, int y, int working, int detail, uint32_t now_ms)
+{
+ if (cover_empty(m, c)) {
+ pod_grad_aa(s, x, y, COVER, COVER, COVER_R, C(0xdce2d7), C(0xbfcbbd));
+ draw_grid_icon(s, x, y);
+ return;
+ }
+ pod_grad_aa(s, x, y, COVER, COVER, COVER_R, C(cover_top(c)), C(cover_bottom(c)));
+ if (!(detail & D_BARE)) {
+ box_t b[CELLS_MAX];
+ if (c == 0) {
+ const pod_agent_t *l[POD_RECENT_MAX];
+ int n = pod_model_recent(m, l, POD_RECENT_MAX);
+ for (int i = 0; i < n; i++) { recent_cell(i, &b[0]); draw_mini(s, m, c, x, y, &b[0], l[i], 3, detail); }
+ } else {
+ const pod_tab_t *t = &m->tabs[c - 1];
+ int real = t->count ? t->count : t->panes, cells = tab_cells(real, b), shown = real > CELLS_MAX ? cells - 1 : cells;
+ for (int k = 0; k < shown; k++) draw_mini(s, m, c, x, y, &b[k], pane_agent(m, t, k), 6, detail);
+ if (real > CELLS_MAX) { // the last cell: the rest, as a count
+ char more[12];
+ snprintf(more, sizeof more, "+%d", real - shown);
+ int w = ht_pro_width(&ci_rg_20, more);
+ ht_pro_rect_aa(s, x + b[shown].x, y + b[shown].y, b[shown].w, b[shown].h, 6, C(MINI));
+ ht_pro_text(s, x + b[shown].x + (b[shown].w - w) / 2, y + b[shown].y + (b[shown].h - ci_rg_20.height) / 2, w, &ci_rg_20, CI_INK, more);
+ }
+ }
+ }
+ if (working > 0 && !(detail & D_NORIB)) draw_ribbon(s, c, x, y, working, now_ms);
+}
+// What draw_cover adds to the scene at `detail`: drawn and taken back.
+static int cover_cost(ht_scene_t *s, const pod_model_t *m, int c, int working, int detail)
+{
+ int n0 = s->count;
+ draw_cover(s, m, c, 0, 0, working, detail, 0);
+ int n = s->count - n0;
+ s->count = (uint8_t)n0;
+ return n;
+}
+
+typedef struct { int c, x, y, vis, detail, cost; caption_t cap; } slot_t;
void pod_view_tabs(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
ht_scene_t *s = f->scene;
+ s->background = CI_GROUND;
const pod_agent_t *wl[POD_AGENTS_MAX];
int wn = pod_model_working(m, wl, POD_AGENTS_MAX);
- pod_grad(s, 0, GLASS_TOP, POD_W, POD_W - GLASS_TOP, 0, C(FLOOR_TOP), C(FLOOR_BOTTOM));
int covers = 1 + m->tab_count, sel = chosen_cover(m), pages = pod_tabs_pages(m);
int rows = (covers + COLS - 1) / COLS;
@@ -215,77 +269,73 @@ void pod_view_tabs(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t *
int n = 0;
for (int r = moving ? 0 : page * ROWS_PAGE; r < rows && r < (moving ? rows : (page + 1) * ROWS_PAGE); r++) {
int y = TOP_Y + r * ROW_PITCH - off;
- if (moving && (y + ROW_H <= GLASS_TOP || y - RING - RING_GAP >= POD_W)) continue;
+ if (moving && (y + HIT_H <= GLASS_TOP || y - RING - RING_GAP >= GLASS_BOT)) continue;
for (int k = 0; k < COLS && r * COLS + k < covers && n < SHOWN_MAX; k++) {
slot_t *e = &sl[n++];
e->c = r * COLS + k;
- e->x = MARGIN_X + k * COL_PITCH;
+ e->x = col_x[k];
e->y = y;
- e->vis = imax(0, imin(y + ROW_H, POD_W) - imax(y, GLASS_TOP));
- e->detail = POD_COVER_FULL;
+ e->vis = imax(0, imin(y + COVER, GLASS_BOT) - imax(y, GLASS_TOP));
+ e->detail = D_FULL;
caption(m, e->c, &e->cap);
+ e->cost = cover_cost(s, m, e->c, e->cap.working, e->detail);
}
}
- // What fits: the dots go first, then the marks, then the cards; the least visible covers first (at rest the last
- // ones), and the selected one last.
- int dots = pages > 1 ? imin(pages, DOT_MAX) : 0;
- int base = s->count + SPARE_RUNS + STATUS_RUNS + dots + pod_spare_runs(f);
- for (int i = 0; i < n; i++) base += (int)caption_runs(&sl[i].cap) + (sl[i].c == sel ? 2 : 0); // 2: a ring
- static const int stage[4] = {POD_COVER_FEET, POD_COVER_MARKS, BARE, NORIB};
+ // What fits: the dots go first, then the marks, then the minis; the least visible covers first (at rest the last ones),
+ // and the selected one last; only in motion, the ribbons.
+ int base = s->count + BAR_RUNS + FOOT_RUNS + 4 + pod_spare_runs(f), budget = POD_CLASSIC_RUNS; // 4: the notice
+ for (int i = 0; i < n; i++) base += 2 + (sl[i].c == sel ? 2 : 0); // the captions; the ring
+ static const int stage[4] = {D_DOT, D_MARK, D_BARE, D_NORIB};
for (int st = 0; st < (moving ? 4 : 3); st++)
for (int pass = 0; pass < 2; pass++)
for (;;) {
int total = base;
- for (int k = 0; k < n; k++) total += (int)(total_cover_runs(m, sl[k].c, sl[k].detail) + ribbon_runs(&sl[k].cap, sl[k].detail));
- if (total <= POD_CLASSIC_RUNS) goto fitted;
+ for (int k = 0; k < n; k++) total += sl[k].cost;
+ if (total <= budget) goto fitted;
int pick = -1;
for (int i = 0; i < n; i++) {
- bool has = st == 3 ? ribbon_runs(&sl[i].cap, sl[i].detail) > 0 : st == 2 ? !(sl[i].detail & BARE) : (sl[i].detail & stage[st]) != 0;
+ int d = sl[i].detail;
+ bool has = st == 3 ? sl[i].cap.working > 0 && !(d & D_NORIB) : st == 2 ? !(d & D_BARE) : (d & stage[st]) != 0;
if (!has || (sl[i].c == sel) != (pass == 1)) continue;
if (pick < 0 || sl[i].vis <= sl[pick].vis) pick = i;
}
if (pick < 0) break;
if (st >= 2) sl[pick].detail |= stage[st]; else sl[pick].detail &= ~stage[st];
+ sl[pick].cost = cover_cost(s, m, sl[pick].c, sl[pick].cap.working, sl[pick].detail);
}
fitted:
for (int i = 0; i < n; i++) {
const slot_t *e = &sl[i];
int c = e->c, x = e->x, y = e->y;
- bool on = c == sel, cover_on = y + COVER > GLASS_TOP && y < POD_W; // in motion a cover can be off the glass with its caption on
- if (on && cover_on) { // a blue ring with a small gap, over the glass's own colour
- ht_pro_rect(s, x - RING - RING_GAP, y - RING - RING_GAP, COVER + 2 * (RING + RING_GAP), COVER + 2 * (RING + RING_GAP), RING_R + RING_GAP, C(RING_BLUE));
- ht_pro_rect(s, x - RING_GAP, y - RING_GAP, COVER + 2 * RING_GAP, COVER + 2 * RING_GAP, RING_R - RING, C(floor_at(y + COVER / 2)));
+ bool on = c == sel, cover_on = y + COVER + RING + RING_GAP > GLASS_TOP && y - RING - RING_GAP < GLASS_BOT; // in motion a cover can be off the glass with its caption on
+ if (on && cover_on) { // a 5 px blue ring with a 5 px gap, over the ground
+ int o = RING + RING_GAP, w = COVER + 2 * o;
+ ht_pro_rect_aa(s, x - o, y - o, w, w, COVER_R + o, CI_BLUE);
+ ht_pro_rect_aa(s, x - RING_GAP, y - RING_GAP, COVER + 2 * RING_GAP, COVER + 2 * RING_GAP, COVER_R + RING_GAP, CI_GROUND);
}
- if (cover_on) draw_cover(s, m, c, x, y, e->detail);
- if (cover_on && ribbon_runs(&e->cap, e->detail)) draw_ribbon(s, c, x, y, e->cap.working, now_ms);
- int ny = y + COVER + NAME_DY, ly = y + COVER + LINE_DY;
+ if (cover_on) draw_cover(s, m, c, x, y, e->cap.working, e->detail, now_ms);
+ int ny = y + COVER + NAME_MID - ci_rg_30.height / 2, ly = y + COVER + COUNT_MID - ci_rg_23.height / 2;
const caption_t *cap = &e->cap;
- if (ny + ht_pro_32.height > GLASS_TOP && ny < POD_W)
- ht_pro_text(s, x, ny, CAPTION_W, &ht_pro_32, C(on ? RING_BLUE : INK), cap->name);
- if (ly + ht_pro_24.height > GLASS_TOP && ly < POD_W) {
- ht_pro_text(s, x, ly, CAPTION_W, &ht_pro_24, C(GREY), cap->count);
- }
- int hy = imax(y, GLASS_TOP), hb = imin(y + HIT_H, POD_W); // the part of the cover on the glass
+ if (ny + ci_rg_30.height > GLASS_TOP && ny < GLASS_BOT)
+ ci_text(s, x, ny, COVER, &ci_rg_30, on ? CI_BLUE : CI_INK, cap->name);
+ if (ly + ci_rg_23.height > GLASS_TOP && ly < GLASS_BOT)
+ ci_text(s, x, ly, COVER, &ci_rg_23, CI_MUTED, cap->count);
+ int hx = x - HIT_DX, hy = imax(y, GLASS_TOP), hb = imin(y + HIT_H, GLASS_BOT); // the part of the card on the glass
if (hb - hy >= 40)
- pod_hit_add_id(f, x, hy, COVER, hb - hy, POD_A_OPEN_TAB, c ? c - 1 : POD_TAB_RECENT, c ? m->tabs[c - 1].id : "");
+ pod_hit_add_id(f, hx, hy, HIT_W, hb - hy, POD_A_OPEN_TAB, c ? c - 1 : POD_TAB_RECENT, c ? m->tabs[c - 1].id : "");
}
- if (dots) { // the page dots, a column on the right edge: the page nearest the offset is dark
- int cur = imax(0, imin(pages - 1, (off + PAGE_H / 2 + PAGE_H) / PAGE_H - 1));
- int y0 = GLASS_TOP + (POD_W - GLASS_TOP - (dots * DOT_PITCH - (DOT_PITCH - DOT))) / 2;
- for (int i = 0; i < dots; i++)
- ht_pro_rect(s, DOT_X, y0 + i * DOT_PITCH, DOT, DOT, DOT / 2, C(i == imin(cur, dots - 1) ? 0x4a4e5a : 0xc4c8d0));
- }
-
- // The status bar last: what has scrolled up under it is covered.
- pod_status(f, "Tabs", false, 0);
- if (wn > 0) { // "N working" in green on the right, and the play triangle on the left
- char nbuf[24];
- snprintf(nbuf, sizeof nbuf, "%d working", wn);
- int w = ht_pro_width(&ht_pro_24, nbuf);
- pod_play(s, 24, 19, 14, 16, 0, C(BLUE));
- ht_pro_text(s, (f->bell_x ? f->bell_x - 16 : POD_W - 24) - w, pod_status_text_y(&ht_pro_24), w, &ht_pro_24, C(GREEN), nbuf); // left of the bell when it shows
+ // The footer, then the bar, last: what has scrolled under them is covered.
+ char left[24], right[40];
+ snprintf(left, sizeof left, "%d working", wn);
+ if (pages > 1) {
+ int cur = imax(0, imin(pages - 1, (off + PAGE_H / 2) / PAGE_H));
+ snprintf(right, sizeof right, "PAGE %d / %d", cur + 1, pages);
+ } else {
+ snprintf(right, sizeof right, "%d TAB%s \xc2\xb7 %d AGENT%s", m->tab_count, m->tab_count == 1 ? "" : "S", m->agent_count, m->agent_count == 1 ? "" : "S");
}
+ ci_foot(s, left, false, right);
+ ci_bar(f, "Tabs", NULL, f->unread, true);
}
diff --git a/devices/harness-pro/firmware/main/pod/classic/pod_view_talk.c b/devices/harness-pro/firmware/main/pod/classic/pod_view_talk.c
index a93dfbd03..e2b8d6f74 100644
--- a/devices/harness-pro/firmware/main/pod/classic/pod_view_talk.c
+++ b/devices/harness-pro/firmware/main/pod/classic/pod_view_talk.c
@@ -1,79 +1,44 @@
-// The Listening screen (mockup pro-listen.html, owner 2026-10-10): the agent's name as the title and, centred between
-// the title bar and the controls, the engine's listening pet, or with no pet ("N2") the word Listening in soft green
-// with a light passing over its letters and three thin arcs each side drifting in toward it. The big button sends.
+// The Classic Voice screens (Index look, spec 2026-10-13). Listening: "To {name}", the LISTEN pet, "Listening.", the 13 mic bars
+// and "Tap to send."; one full-screen TALK hit sends (Back stays in the bar). Sending: the SEND pet, "Sending your words…", the
+// agent and the pending note. No bell, no transport, no buttons.
+#include "pod/classic/ci.h"
#include "pod/pod_view_shared.h"
-#include "pod/pod_draw.h"
-#include "theme.h"
+#include <stdio.h>
#include <string.h>
-#define C pod_c
+enum { LISTEN = 281, SEND = 209, WAVE_N = 13, BAR_W = 5, BAR_GAP = 7, WAVE_CY = 568, PET_LISTEN_Y = 192, PET_SEND_Y = 186 };
+#define GROUND 0xf6f6f0u
-// sin(x), x in radians, without libm: reduce to [-pi, pi], fold to [-pi/2, pi/2], then a Taylor series.
-static float fsin(float x)
+static int tri(uint32_t t, uint32_t period) // 0..100
{
- const float pi = 3.14159265f, two_pi = 6.2831853f;
- int k = (int)(x / two_pi + (x >= 0 ? 0.5f : -0.5f));
- x -= (float)k * two_pi;
- if (x > pi / 2) x = pi - x; else if (x < -pi / 2) x = -pi - x;
- float x2 = x * x;
- return x * (1.0f - x2 / 6.0f * (1.0f - x2 / 20.0f * (1.0f - x2 / 42.0f * (1.0f - x2 / 72.0f))));
+ uint32_t p = t % period, half = period / 2;
+ return (int)((p < half ? p : period - p) * 100 / half);
}
-// e^-x for x >= 0, without libm: (1 + x/16)^-16 is within 1% where it matters here (a glow fading out).
-static float fexpn(float x)
+static void centered(ht_scene_t *s, int y, int max_w, const ht_pro_font_t *f, uint16_t ink, const char *t)
{
- if (x > 12.0f) return 0.0f;
- float b = 1.0f + x / 16.0f;
- b *= b; b *= b; b *= b; b *= b;
- return 1.0f / b;
+ char cut[HT_TEXT_BYTES];
+ snprintf(cut, sizeof cut, "%s", t);
+ int w = ht_pro_width(f, cut);
+ if (w > max_w) { ci_text(s, (POD_W - max_w) / 2, y, max_w, f, ink, t); return; }
+ ht_pro_text(s, (POD_W - w) / 2, y, w, f, ink, cut);
}
-// col faded toward the screen's ground by k (0 = ground, 1 = col): opaque, nothing to blend on the device.
-static uint16_t fade(unsigned col, float k)
+// 13 bars, 5 px wide 7 px apart, at the mic level (0 = a row of dots); each breathes with the clock.
+static void wave(ht_scene_t *s, int level, uint32_t now_ms)
{
- unsigned g = HT_THEME_CANVAS, out = 0;
- for (int sh = 0; sh <= 16; sh += 8) {
- int c = (int)(col >> sh & 0xff), b = (int)(g >> sh & 0xff);
- out |= (unsigned)(b + (int)((float)(c - b) * k + 0.5f)) << sh;
+ if (level < 0) level = 0;
+ if (level > 4) level = 4;
+ const int x0 = (POD_W - (WAVE_N * BAR_W + (WAVE_N - 1) * BAR_GAP)) / 2;
+ for (int i = 0; i < WAVE_N; i++) {
+ int n = i + 1, peak = n % 3 == 0 ? 32 : n % 2 == 0 ? 22 : 7; // the mockup's three heights
+ int shape = 35 + tri(now_ms + (uint32_t)i * 131, 600 + (uint32_t)(i % 5) * 110) * 65 / 100;
+ int h = 7 + (peak - 7) * level / 4 * shape / 100;
+ ht_pro_rect(s, x0 + i * (BAR_W + BAR_GAP), WAVE_CY - h / 2, BAR_W, h, BAR_W / 2, ht_rgb(0x2c6e64));
}
- return C(out);
}
-enum { LISTEN = 260, LOOP_MS = 1680, ARCS = 3, GREEN = 0x34a860, SOFT = 0x609cec, BLUE = 0x2aa4ec, SEND_LOOP_MS = 1600 };
-
-// The round dial's listening arcs: ARCS each side travelling from r_far in to r_near, bright midway and gone at
-// the ends (u = (t + k / ARCS) mod 1, brightness sin(pi u)). Always 2 * ARCS runs: a hidden one keeps its slot.
-static void arcs(ht_scene_t *s, int cx, int cy, int r_far, int r_near, float t)
-{
- for (int k = 0; k < ARCS; k++) {
- float u = t + (float)k / ARCS;
- if (u >= 1.0f) u -= 1.0f;
- int r = r_far + (int)((float)(r_near - r_far) * u);
- float b = fsin(3.14159265f * u);
- int w16 = b < 0.12f ? 0 : 4 * 16;
- uint16_t ink = fade(SOFT, 0.25f + 0.75f * b);
- pod_arc(s, cx * 16, cy * 16, r * 16, w16, 180, 22, ink);
- pod_arc(s, cx * 16, cy * 16, r * 16, w16, 0, 22, ink);
- }
-}
-
-// The word, one run a letter: soft green, each letter brighter as the light (a gaussian moving left to right)
-// passes over it.
-static void word(ht_scene_t *s, int cy, float t, const char *text, unsigned col)
-{
- const int n = (int)strlen(text);
- int x = (POD_W - ht_pro_width(&ht_pro_32, text)) / 2, y = cy - ht_pro_32.height / 2;
- for (int i = 0; i < n; i++) {
- char ch[2] = {text[i], 0};
- float d = ((float)i / (float)(n - 1) - (t * 1.4f - 0.2f)) / 0.16f;
- int w = ht_pro_width(&ht_pro_32, ch);
- ht_pro_text(s, x, y, w, &ht_pro_32, fade(col, 0.45f + 0.55f * fexpn(d * d)), ch);
- x += w;
- }
-}
-
-// A pet draws by its own clock (the sending scene from the stop tap); without one the word's shimmer (and the arcs
-// while listening) move every frame.
+// A pet draws by its own clock (the sending scene from the stop tap); without one the bars move every frame.
uint32_t pod_view_talk_next_ms(const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
const pod_agent_t *a = pod_view_agent_of(nav, m);
@@ -88,20 +53,34 @@ uint32_t pod_view_talk_next_ms(const pod_nav_t *nav, const pod_model_t *m, uint3
void pod_view_talk(pod_out_frame_t *f, const pod_nav_t *nav, const pod_model_t *m, uint32_t now_ms)
{
ht_scene_t *s = f->scene;
- pod_status(f, pod_view_title(nav, m), true, 0);
const pod_agent_t *a = pod_view_agent_of(nav, m);
- const int cy = (POD_STATUS_H + POD_TRANSPORT_Y) / 2;
- if (nav->sending && a && pod_pet_has(a->engine, POD_SCENE_SEND)) {
- pod_pet_draw(s, (POD_W - LISTEN) / 2, cy - LISTEN / 2, LISTEN, a->engine, POD_SCENE_SEND, now_ms, nav->send_started_ms);
- } else if (nav->sending) {
- word(s, cy, (float)(now_ms % SEND_LOOP_MS) / (float)SEND_LOOP_MS, "Sending", BLUE); // N2: the word alone
- } else if (a && pod_pet_has(a->engine, POD_SCENE_LISTEN)) {
- pod_pet_draw(s, (POD_W - LISTEN) / 2, cy - LISTEN / 2, LISTEN, a->engine, POD_SCENE_LISTEN, now_ms, nav->talk_started_ms);
- } else {
- float t = (float)(now_ms % LOOP_MS) / (float)LOOP_MS;
- int half = ht_pro_width(&ht_pro_32, "Listening") / 2;
- word(s, cy, t, "Listening", GREEN);
- arcs(s, POD_W / 2, cy, half + 120, half + 26, t);
+ ci_bar(f, nav->sending ? "Message" : "Voice", pod_nav_origin(nav, m), 0, false);
+ if (!a) return;
+ const uint16_t muted = CI_MUTED;
+ char name[sizeof a->name];
+ snprintf(name, sizeof name, "%s", a->name);
+ for (char *c = name; *c; c++) if (*c == '\n' || *c == '\r' || *c == '\t') *c = ' ';
+ if (nav->sending) {
+ if (pod_pet_has(a->engine, POD_SCENE_SEND))
+ pod_pet_draw_on(s, (POD_W - SEND) / 2, PET_SEND_Y, SEND, a->engine, POD_SCENE_SEND, now_ms, nav->send_started_ms, GROUND);
+ centered(s, 402, 640, &ci_bd_45, CI_INK, "Sending your words\xe2\x80\xa6");
+ centered(s, 481, 640, &ci_rg_30, muted, name);
+ char rows[3][POD_ROW_MAX]; // two lines in Helvetica, three in Liberation: never cut
+ int n = ci_wrap("One request is pending. Going back will not send it again.", &ci_rg_26, 583, 3, rows);
+ for (int i = 0; i < n; i++) centered(s, 543 + i * 37, 583, &ci_rg_26, muted, rows[i]);
+ return;
+ }
+ { // "To " in Regular and the name in Bold, centred as one line
+ int tw = ht_pro_width(&ci_rg_23, "To "), nw = ht_pro_width(&ci_bd_23, name);
+ if (nw > 560) nw = 560;
+ int x = (POD_W - (tw + nw)) / 2;
+ ht_pro_text(s, x, 172, tw, &ci_rg_23, muted, "To ");
+ ci_text(s, x + tw, 172, nw, &ci_bd_23, muted, name);
}
- pod_transport(f, true);
+ if (pod_pet_has(a->engine, POD_SCENE_LISTEN))
+ pod_pet_draw_on(s, (POD_W - LISTEN) / 2, PET_LISTEN_Y, LISTEN, a->engine, POD_SCENE_LISTEN, now_ms, nav->talk_started_ms, GROUND);
+ centered(s, 467, 640, &ci_rg_48, CI_INK, "Listening.");
+ wave(s, f->mic_level, now_ms);
+ centered(s, 599, 640, &ci_rg_24, muted, "Tap to send.");
+ pod_hit_add(f, 0, CI_BAR_H, POD_W, POD_W - CI_BAR_H, POD_A_TALK, 0); // anywhere below the bar sends
}
diff --git a/devices/harness-pro/firmware/main/pod/pod_draw.c b/devices/harness-pro/firmware/main/pod/pod_draw.c
index e33ca348e..9b271dc07 100644
--- a/devices/harness-pro/firmware/main/pod/pod_draw.c
+++ b/devices/harness-pro/firmware/main/pod/pod_draw.c
@@ -1,12 +1,13 @@
#include "pod_draw.h"
#include <string.h>
+#include "display/pro_canvas.h"
static int imin(int a, int b) { return a < b ? a : b; }
static int imax(int a, int b) { return a > b ? a : b; }
// Per-kind parameters, packed into run->text.
typedef struct { int16_t cx16, cy16; uint16_t r16, w16; int16_t ux, uy, cosh; } arc_params_t;
-typedef struct { uint16_t top, bottom; } grad_params_t;
+typedef struct { uint16_t top, bottom; uint8_t aa; } grad_params_t;
_Static_assert(sizeof(arc_params_t) <= HT_TEXT_BYTES, "arc parameters fit run->text");
_Static_assert(sizeof(grad_params_t) <= HT_TEXT_BYTES, "gradient parameters fit run->text");
@@ -329,10 +330,28 @@ bool pod_grad(ht_scene_t *s, int x, int y, int w, int h, int radius, uint16_t to
if (!r) return false;
r->radius = (uint8_t)imin(imax(0, radius), imin(w, h) / 2);
r->fg = top;
- grad_params_t p = {top, bottom};
+ grad_params_t p = {top, bottom, 0};
memcpy(r->text, &p, sizeof p);
return true;
}
+void pod_grad_aa(ht_scene_t *s, int x, int y, int w, int h, int radius, uint16_t top, uint16_t bottom)
+{
+ if (!pod_grad(s, x, y, w, h, radius, top, bottom)) return;
+ ht_run_t *r = &s->runs[s->count - 1];
+ grad_params_t p = {top, bottom, 1};
+ memcpy(r->text, &p, sizeof p);
+}
+// A vertical rect of neutral grey, dithered between in the grey levels RGB565 has (r = b, g = 2r + 1), so no channel leads another into a tint.
+void pod_grad_gray(ht_scene_t *s, int x, int y, int w, int h, uint16_t top, uint16_t bottom)
+{
+ if (!pod_grad(s, x, y, w, h, 0, top, bottom)) return;
+ grad_params_t p = {top, bottom, 2};
+ memcpy(s->runs[s->count - 1].text, &p, sizeof p);
+}
+static unsigned luma8(uint16_t v)
+{
+ return ((v >> 11) * 255 / 31 + ((v >> 5) & 63) * 255 / 63 + (v & 31) * 255 / 31) / 3;
+}
static void grad_raster(const ht_run_t *r, ht_rect_t clip, uint16_t *out)
{
grad_params_t p;
@@ -343,6 +362,29 @@ static void grad_raster(const ht_run_t *r, ht_rect_t clip, uint16_t *out)
for (int y = y0; y < y1; y++) {
int row = y - r->y, dy = row, inset = 0;
uint16_t ink = mix565(p.bottom, p.top, (unsigned)row, (unsigned)last);
+ if (p.aa == 2) { // neutral grey, ordered-dithered between the two nearest grey levels (4 x 4 Bayer) so the steps vanish
+ static const uint8_t bayer[16] = {0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5};
+ unsigned l0 = luma8(p.top), l1 = luma8(p.bottom);
+ unsigned lq = ((l0 * (unsigned)(last - row) + l1 * (unsigned)row) * 31 * 16 + (unsigned)last * 255 / 2) / ((unsigned)last * 255);
+ uint16_t *d = out + (y - clip.y) * clip.w - clip.x;
+ for (int x = x0; x < x1; x++) {
+ unsigned v = (lq >> 4) + ((lq & 15) > bayer[(y & 3) * 4 + (x & 3)] ? 1 : 0);
+ if (v > 31) v = 31;
+ d[x] = (uint16_t)((v << 11) | ((v ? 2 * v + 1 : 0) << 5) | v);
+ }
+ continue;
+ }
+ if (p.aa == 1) {
+ uint16_t *d = out + (y - clip.y) * clip.w - clip.x;
+ int cy = row < rad ? row : row >= r->pro_height - rad ? r->pro_height - 1 - row : -1;
+ for (int x = x0; x < x1; x++) {
+ int dx = x - r->x, cx = dx < rad ? dx : dx >= r->w - rad ? r->w - 1 - dx : -1;
+ unsigned cov = cx < 0 || cy < 0 ? 16 : ht_pro_corner_cover(rad, cx, cy);
+ if (cov >= 16) d[x] = ink;
+ else if (cov) d[x] = ht_pro_over(ink, d[x], cov * 255 / 16);
+ }
+ continue;
+ }
if (dy >= r->pro_height - rad) dy = r->pro_height - 1 - dy;
if (dy < rad) {
int vertical = rad - 1 - dy;
diff --git a/devices/harness-pro/firmware/main/pod/pod_draw.h b/devices/harness-pro/firmware/main/pod/pod_draw.h
index 2510902c9..6f68569fa 100644
--- a/devices/harness-pro/firmware/main/pod/pod_draw.h
+++ b/devices/harness-pro/firmware/main/pod/pod_draw.h
@@ -13,6 +13,10 @@ bool pod_cell(ht_scene_t *s, int x, int y, const ht_cell_frame_t *f, unsigned zo
bool pod_arc(ht_scene_t *s, int cx16, int cy16, int r16, int w16, int mid_deg, int half_deg, uint16_t ink);
// A top-to-bottom gradient in a rect rounded like ht_pro_rect.
bool pod_grad(ht_scene_t *s, int x, int y, int w, int h, int radius, uint16_t top, uint16_t bottom);
+// The same with anti-aliased corners (the coverage of ht_pro_rect_aa), blended onto what is under them. One run.
+void pod_grad_aa(ht_scene_t *s, int x, int y, int w, int h, int radius, uint16_t top, uint16_t bottom);
+// Classic only: a square gradient whose every row is a neutral grey (r = b, g = 2r + 1), dithered between the two nearest levels, so RGB565 rounding shows neither a tint nor a step.
+void pod_grad_gray(ht_scene_t *s, int x, int y, int w, int h, uint16_t top, uint16_t bottom);
// A filled triangle, vertices in sixteenths of a px (either winding), anti-aliased across a 1 px ramp centred on each
// edge. ink is native RGB565. False (nothing added) for a degenerate triangle or a coordinate beyond +-1023 px.
bool pod_tri(ht_scene_t *s, int x0, int y0, int x1, int y1, int x2, int y2, uint16_t ink);
diff --git a/devices/harness-pro/firmware/main/pod/pod_nav.c b/devices/harness-pro/firmware/main/pod/pod_nav.c
index 1e7257064..66f8e1b2a 100644
--- a/devices/harness-pro/firmware/main/pod/pod_nav.c
+++ b/devices/harness-pro/firmware/main/pod/pod_nav.c
@@ -212,6 +212,7 @@ pod_out_t pod_nav_act(pod_nav_t *n, pod_model_t *m, pod_action_t a, int arg, uin
}
case POD_A_NONE:
case POD_A_BANNER:
+ case POD_A_BANNER_CLOSE:
break;
}
return out_none();
@@ -340,3 +341,16 @@ bool pod_nav_follow(pod_nav_t *n, pod_model_t *m, const char *agent_id, uint32_t
pod_nav_flip_recaps(n, m);
return true;
}
+
+const char *pod_nav_origin(const pod_nav_t *n, const pod_model_t *m) {
+ if (n->depth < 2) return "Back";
+ const pod_frame_t *p = &n->stack[n->depth - 2];
+ if (p->view == POD_V_TABS) return "Tabs";
+ if (p->view == POD_V_INBOX) return "Inbox";
+ if (p->view != POD_V_TAB) return "Back";
+ if (p->tab == POD_TAB_RECENT) return "Recent";
+ if (p->tab_id[0]) // the id names the tab; the index is only a cache
+ for (int i = 0; i < m->tab_count; i++) if (!strcmp(m->tabs[i].id, p->tab_id)) return m->tabs[i].name[0] ? m->tabs[i].name : "Back";
+ if (p->tab >= 0 && p->tab < m->tab_count && m->tabs[p->tab].name[0]) return m->tabs[p->tab].name;
+ return "Back";
+}
diff --git a/devices/harness-pro/firmware/main/pod/pod_nav.h b/devices/harness-pro/firmware/main/pod/pod_nav.h
index 74cca127d..c75f2d0fa 100644
--- a/devices/harness-pro/firmware/main/pod/pod_nav.h
+++ b/devices/harness-pro/firmware/main/pod/pod_nav.h
@@ -49,7 +49,8 @@ typedef enum {
POD_A_OPEN_NOTIF, // arg: index into model->unread, from the Inbox: open that agent (an Agent/Recap frame over the Inbox) and mark it read
POD_A_ATTENTION, // Console chip: follow to the next asking agent after the current one, in Recent order (wraps; none: nothing)
POD_A_FOLLOW, // arg: index into model->agents: open that agent from anywhere (Inbox rows with no unread entry); the glue resolves the id
- POD_A_SCROLL // arg: signed delta added to the top frame's scroll (clamped to >= 0): rows, whatever the screen draws as one.
+ POD_A_SCROLL, // arg: signed delta added to the top frame's scroll (clamped to >= 0): rows, whatever the screen draws as one.
+ POD_A_BANNER_CLOSE // hit only: the banner's x. The glue ends the banner and keeps its unread entry; the nav ignores it. Wins over POD_A_BANNER.
} pod_action_t;
typedef enum { POD_FX_NONE, POD_FX_VOICE_BEGIN, POD_FX_VOICE_END, POD_FX_VOICE_ABORT, POD_FX_AGENT_OPEN } pod_effect_t;
@@ -80,4 +81,7 @@ int pod_nav_list(const pod_nav_t *, const pod_model_t *, const pod_agent_t *out[
// Recent; the TAB frame's scroll shows the agent's row. Not a task: Recent does not change. Emits no AGENT_OPEN: the
// host already is there. Does nothing for an unknown agent, while TALK is on top, or when the agent is already open.
// Returns true when the stack changed.
+// The label of the top frame's Back, from the frame below it: "Recent" (came from the Recent list), the tab's name
+// (a tab list), "Tabs" (the root), "Inbox", else "Back". The pointer is into the model (or a literal): valid until the next model change.
+const char *pod_nav_origin(const pod_nav_t *, const pod_model_t *);
bool pod_nav_follow(pod_nav_t *, pod_model_t *, const char *agent_id, uint32_t now_ms);
diff --git a/devices/harness-pro/firmware/main/pod/pod_pet.c b/devices/harness-pro/firmware/main/pod/pod_pet.c
index 8d7c58d04..afea192c1 100644
--- a/devices/harness-pro/firmware/main/pod/pod_pet.c
+++ b/devices/harness-pro/firmware/main/pod/pod_pet.c
@@ -67,6 +67,7 @@ typedef struct {
int bx, by, side; // the square
int ox, oy; // where the scene's top-left sits
unsigned z; // zoom in eighths
+ uint32_t ground; // 0xRRGGBB the listening waves fade toward
} ctx_t;
static void rect_in(const ctx_t *c, int *x, int *y, int w, int h)
@@ -111,7 +112,10 @@ static void put_wave(const ctx_t *c, const ht_pet_scene_t *e, int side, int k, u
if (a < 0.12f) { pod_arc(c->s, cx16, cy16, 0, 0, 0, 0, 0); return; }
int r16 = round_pos((float)w->r_far16 - (float)(w->r_far16 - w->r_near16) * u);
unsigned rgb[3];
- for (int i = 0; i < 3; i++) rgb[i] = (unsigned)round_pos(255.0f - (255.0f - (float)w->rgb[i]) * a); // fades to the white glass
+ for (int i = 0; i < 3; i++) { // fades to the ground (white glass by default)
+ float g = (float)((c->ground >> (16 - 8 * i)) & 255);
+ rgb[i] = (unsigned)round_pos(g - (g - (float)w->rgb[i]) * a);
+ }
pod_arc(c->s, cx16, cy16, sc(r16, c->z), imax(1, sc(w->w16, c->z)), side ? 180 : 0, w->half_deg,
ht_rgb(rgb[0] << 16 | rgb[1] << 8 | rgb[2]));
}
@@ -152,7 +156,7 @@ static extent_t scene_extent(const ht_pet_scene_t *e, unsigned level)
extent_t u = {0x7fff, 0x7fff, -0x7fff, -0x7fff};
for (unsigned n = 0; n < 24 + 128; n++) {
uint32_t clock_ms = n < 24 ? n * e->step_ms : (n - 24) * 41u;
- ctx_t c = {&scratch, -4000, -4000, 8000, 0, 0, 8};
+ ctx_t c = {&scratch, -4000, -4000, 8000, 0, 0, 8, 0xffffff};
scratch.count = 0;
play_scene(&c, e, level, scene_clock_step(e, clock_ms), clock_ms);
for (int i = 0; i < scratch.count; i++) {
@@ -319,13 +323,18 @@ bool pod_pet_draw_loop(ht_scene_t *s, int x, int y, int side, const char *engine
{
const ht_pet_t *pet = pod_pet_for(engine);
if (!pet || state >= HT_PET_STATES) return false;
- ctx_t c = {s, x, y, side, x, y, 8};
+ ctx_t c = {s, x, y, side, x, y, 8, 0xffffff};
play_rest(&c, pet, state, clock_ms);
return true;
}
void pod_pet_draw(ht_scene_t *s, int x, int y, int side, const char *engine, pod_scene_t scene,
uint32_t clock_ms, uint32_t started_ms)
+{
+ pod_pet_draw_on(s, x, y, side, engine, scene, clock_ms, started_ms, 0xffffff);
+}
+void pod_pet_draw_on(ht_scene_t *s, int x, int y, int side, const char *engine, pod_scene_t scene,
+ uint32_t clock_ms, uint32_t started_ms, uint32_t ground_rgb)
{
const ht_pet_t *pet = pod_pet_for(engine);
if (!pet) { // the logo, big, on a pale box; a light mark (Cursor's) on a dark one, else it would vanish
@@ -336,7 +345,7 @@ void pod_pet_draw(ht_scene_t *s, int x, int y, int side, const char *engine, pod
if (!pod_logo_draw(s, mx, my, size, engine)) pod_mark_default_big(s, mx, my, size, ht_rgb(0xf0f4f0));
return;
}
- ctx_t c = {s, x, y, side, x, y, 8};
+ ctx_t c = {s, x, y, side, x, y, 8, ground_rgb};
const ht_pet_scene_t *e = scene_of(pet, scene);
if (!e) {
ht_pet_state_t state = HT_PET_IDLE;
diff --git a/devices/harness-pro/firmware/main/pod/pod_pet.h b/devices/harness-pro/firmware/main/pod/pod_pet.h
index 4d236b5db..03f7ee25a 100644
--- a/devices/harness-pro/firmware/main/pod/pod_pet.h
+++ b/devices/harness-pro/firmware/main/pod/pod_pet.h
@@ -21,6 +21,9 @@ void pod_pet_draw(ht_scene_t *s, int x, int y, int side, const char *engine, pod
// side / 0.88. False, drawing nothing, when the engine has no pet. pod_pet_loop_next_ms: ms to its next change (1000 when still).
bool pod_pet_draw_loop(ht_scene_t *s, int x, int y, int side, const char *engine, ht_pet_state_t state, uint32_t clock_ms);
uint32_t pod_pet_loop_next_ms(const char *engine, ht_pet_state_t state, uint32_t clock_ms);
+// The same on a ground of ground_rgb (0xRRGGBB): the listening waves fade toward it instead of white.
+void pod_pet_draw_on(ht_scene_t *s, int x, int y, int side, const char *engine, pod_scene_t scene,
+ uint32_t clock_ms, uint32_t started_ms, uint32_t ground_rgb);
#define POD_PET_STEP_MS 33 // 1000 / 30: the frame rate of anything drawn in code from the clock
#define POD_CS_ANIM_MS 66 // Console: the equaliser, the spinner and the working mark (about 15 fps; a new height every 66 ms)
#define POD_CS_WAVE_MS 100 // Console: the voice wave (square bars)
diff --git a/devices/harness-pro/firmware/main/pod/pod_view.c b/devices/harness-pro/firmware/main/pod/pod_view.c
index 19423e9f1..6794a0416 100644
--- a/devices/harness-pro/firmware/main/pod/pod_view.c
+++ b/devices/harness-pro/firmware/main/pod/pod_view.c
@@ -1,24 +1,21 @@
// pod_render: the one entry point. Dispatches on the top navigation frame.
#include "pod_view.h"
#include "pro_canvas.h"
+#include "pod/classic/ci.h"
#include "pod/console/cs.h"
void pod_render(pod_out_frame_t *f, const pod_nav_t *nav, pod_model_t *m, uint32_t now_ms)
{
if (nav->skin == POD_SKIN_CONSOLE) { cs_render(f, nav, m, now_ms); return; }
pod_model_clock(m, now_ms);
+ f->scene->background = CI_GROUND; // the app clears to its canvas; Classic's ground is its own
f->hit_count = 0;
- ht_scene_t *s = f->scene;
const pod_frame_t *top = nav->depth ? &nav->stack[nav->depth - 1] : NULL;
// The bell: every screen with a status bar while something is unread, but not the Inbox itself and never over a recording.
f->unread = !m->linked ? 0 : !top || (top->view != POD_V_INBOX && top->view != POD_V_TALK) ? (m->unread_count > 99 ? 99 : m->unread_count) : 0;
f->bell_x = 0;
- if (!m->linked) {
- // No cable: the stack stays where it is and comes back on reconnect. Only BACK is live.
- pod_status(f, pod_view_title(nav, m), nav->depth > 1, 0);
- const char *text = "Connecting…";
- int w = ht_pro_width(&ht_pro_32, text);
- ht_pro_text(s, (POD_W - w) / 2, 346, w, &ht_pro_32, ht_rgb(0x7b7d84), text);
+ if (!m->linked) { // no cable: Connection lost in place of the stack, which comes back on reconnect
+ ci_connection_lost(f, (uint8_t)(m->unread_count > 99 ? 99 : m->unread_count));
return;
}
switch (top ? top->view : POD_V_TABS) {
@@ -63,7 +60,7 @@ int pod_scroll_pitch(const pod_nav_t *nav)
return top->view == POD_V_TABS ? pod_tabs_pitch() :
top->view == POD_V_TAB ? pod_tab_pitch() :
top->view == POD_V_INBOX ? pod_inbox_pitch() :
- top->view == POD_V_RECAP ? ht_pro_32.height : 0;
+ top->view == POD_V_RECAP ? pod_recap_pitch() : 0;
}
int pod_scroll_max(const pod_nav_t *nav, const pod_model_t *m)
{
diff --git a/devices/harness-pro/firmware/main/pod/pod_view.h b/devices/harness-pro/firmware/main/pod/pod_view.h
index 082b4875e..a054e5c6b 100644
--- a/devices/harness-pro/firmware/main/pod/pod_view.h
+++ b/devices/harness-pro/firmware/main/pod/pod_view.h
@@ -21,18 +21,12 @@ typedef struct { ht_scene_t *scene; pod_hit_t hits[32]; uint8_t hit_count; bool
uint8_t unread; int16_t bell_x; bool banner;
int mic_level; // 0..4, pro_rec_level(): set by the app layer before rendering; the Console voice wave reads it
} pod_out_frame_t;
-enum { POD_BELL_RUNS = 6, POD_BANNER_RUNS = 16 };
+enum { POD_BELL_RUNS = 7, POD_BANNER_RUNS = 16 };
static inline int pod_spare_runs(const pod_out_frame_t *f) { return (f->unread ? POD_BELL_RUNS : 0) + (f->banner ? POD_BANNER_RUNS : 0); }
// Layout, in px on the 720 x 720 glass.
-enum { POD_W = 720, POD_STATUS_H = 54, POD_TRANSPORT_H = 126, POD_TRANSPORT_Y = 720 - POD_TRANSPORT_H, POD_H_BODY = 720 - POD_STATUS_H };
-
-// What a pane diagram draws, as flags: the engine marks, the state foot of working and asking panes, and the
-// 1 px outline of the box (without it the box is a plain pale fill). The Tabs and Tab views pick the richest of
-// POD_DETAIL_LADDER that keeps the screen within HT_RUNS.
-enum { POD_DETAIL_TINT = 0, POD_DETAIL_MARKS = 1, POD_DETAIL_FEET = 2, POD_DETAIL_BORDER = 4,
- POD_DETAIL_FULL = POD_DETAIL_MARKS | POD_DETAIL_FEET | POD_DETAIL_BORDER };
-#define POD_DETAIL_LADDER {POD_DETAIL_FULL, POD_DETAIL_MARKS | POD_DETAIL_BORDER, POD_DETAIL_MARKS, POD_DETAIL_TINT}
+// POD_CLASSIC_TRANSPORT_Y: where Classic's transport bar starts (ci.h's CI_TRANS_Y); the glue clears it of swipes and notices.
+enum { POD_W = 720, POD_TRANSPORT_Y = 594, POD_CLASSIC_TRANSPORT_Y = 616 };
// ---- the screen -----------------------------------------------------------------------------------------
// Dispatches on the top frame. While !model->linked it draws the status bar and "Connecting…" only (the stack
@@ -48,46 +42,10 @@ int pod_scroll_pitch(const pod_nav_t *);
int pod_scroll_max(const pod_nav_t *, const pod_model_t *);
// ---- chrome (pod_chrome.c) ------------------------------------------------------------------------------
-// The 54 px status bar: ‹ back (a BACK hit), or "▶ N" when working > 0 and there is no back, then the title.
-void pod_status(pod_out_frame_t *, const char *title, bool back, int working);
-// The y that centres a status bar line's capitals on the bar (pod_chrome.c).
-int pod_status_text_y(const ht_pro_font_t *font);
-// The title the top frame wants in the status bar.
+// The title the top frame wants (the Tab screen's bar).
const char *pod_view_title(const pod_nav_t *, const pod_model_t *);
-// An engine's mark in a 36 x 36 slot at (x, y): the 27 px mark centred, on a dark chip when the mark is light
-// (pod_logo_draw draws the bare logo; this is the chip around it). Runs: pod_mark_runs.
-bool pod_mark_chip(ht_scene_t *, int x, int y, const char *engine);
-// The same on a ground other than white (the default mark's inside takes it); engine may be NULL.
-bool pod_mark_chip_on(ht_scene_t *, int x, int y, const char *engine, uint16_t ground);
-unsigned pod_mark_runs(const char *engine);
-// The same, dimmed (an offline agent's card): the logo at POD_MARK_DIM opacity, a light mark's dark square lightened. Same runs.
-#define POD_MARK_DIM 90
-bool pod_mark_chip_dim_on(ht_scene_t *, int x, int y, const char *engine, uint16_t ground);
// The three-bar equaliser, 23 x 20 at (x, y), moving with now_ms. Always 3 runs.
void pod_eq(ht_scene_t *, int x, int y, uint16_t ink, uint32_t now_ms);
-// A tab drawn as its panes in a side x side box at (x, y), at full detail. pod_panes_ex picks the detail and
-// pod_panes_runs says what it costs.
-void pod_panes(ht_scene_t *, int x, int y, int side, const pod_model_t *, const pod_tab_t *);
-void pod_panes_ex(ht_scene_t *, int x, int y, int side, const pod_model_t *, const pod_tab_t *, int detail);
-// A tab as an album cover on the Tabs grid: white rounded cards on the cover (a mark on each, a green or amber dot top right
-// of a working or asking agent's), in the side x side cover at (x, y). detail is POD_COVER_MARKS | POD_COVER_FEET (the dots);
-// pod_cover_cards_runs says what it costs. pod_cover_layout gives the cards' boxes relative to the cover (the count
-// returned; *extra panes beyond them are the "+N" box after the last). pod_cover_recent draws Recent's up to 8 marks in
-// a 4 x 2 grid of white squares; pod_cover_empty is a tab with no panes (grey, a "+" ring).
-enum { POD_COVER_MARKS = 1, POD_COVER_FEET = 2, POD_COVER_FULL = 3 };
-typedef struct { int x, y, w, h; } pod_box_t;
-int pod_cover_layout(const pod_tab_t *, int side, pod_box_t out[POD_PANES_MAX], int *extra);
-unsigned pod_cover_cards_runs(const pod_model_t *, const pod_tab_t *, int side, int detail);
-void pod_cover_cards(ht_scene_t *, int x, int y, int side, const pod_model_t *, const pod_tab_t *, int detail);
-unsigned pod_cover_recent_runs(const pod_model_t *, int side, int detail);
-void pod_cover_recent(ht_scene_t *, int x, int y, int side, const pod_model_t *, int detail);
-unsigned pod_cover_empty_runs(void);
-void pod_cover_empty(ht_scene_t *, int x, int y, int side, int radius);
-unsigned pod_panes_runs(const pod_model_t *, const pod_tab_t *, int side, int detail); // side: marks drop from panes too small for one
-// The 126 px transport at the bottom: TABS · ⏮ · ▶ (the send plane while listening) · ⏭ · PANES. Icons only on the big button. Adds the
-// hits TABS, PREV, TALK, NEXT and PANES, each at least 80 x 80. 18 runs, the same whether or not talking.
-void pod_transport(pod_out_frame_t *, bool talking);
-enum { POD_TRANSPORT_RUNS = 18 };
bool pod_hit_add(pod_out_frame_t *, int x, int y, int w, int h, pod_action_t action, int arg);
bool pod_hit_add_id(pod_out_frame_t *, int x, int y, int w, int h, pod_action_t action, int arg, const char *id);
// The Tab screen's scroll geometry (see pod_scroll_*), and the Tabs grid's: a page is two rows of three covers; the frame's
@@ -104,11 +62,7 @@ int pod_tab_pitch(void);
int pod_tab_max_row(const pod_nav_t *, const pod_model_t *);
// The Recap screen's: a row is one wrapped line of the recap; the last offset shows its last lines.
int pod_recap_max_row(const pod_nav_t *, const pod_model_t *);
-// The Recent tile's face: a gradient with a small clock (a ring and two hands), side x side at (x, y). 4 runs.
-void pod_recent_face(ht_scene_t *, int x, int y, int side);
-void pod_recent_face_r(ht_scene_t *, int x, int y, int side, int radius); // the same with the cover's corner radius
-unsigned pod_recent_face_runs(void);
-
+int pod_recap_pitch(void); // the drawn body line pitch
// Small helpers shared by the views.
void pod_engine_name(char *out, size_t n, const char *engine);
void pod_fmt_time(char *out, size_t n, uint32_t secs); // "m:ss"
@@ -121,8 +75,6 @@ int pod_agent_pane(const pod_model_t *, const pod_agent_t *, const pod_tab_t *);
int pod_agent_index(const pod_model_t *, const pod_agent_t *);
// Drawing primitives Pod's glyph-free icons are made of (the Pro fonts have no arrows or chevrons).
-// A play triangle in the w x h box with top-left (x, y): dir 0 points right, 1 points left. One POD_TRI run.
-void pod_play(ht_scene_t *, int x, int y, int w, int h, int dir, uint16_t ink);
// A chevron ‹ with its tip at (x, y); legs a px across and down, one mitered stroke (4 runs).
void pod_chevron(ht_scene_t *, int x, int y, int a, uint16_t ink);
// A tick ✓ in a box with top-left (x, y), about 20 x 15 (4 runs).
@@ -145,11 +97,15 @@ int pod_inbox_max_row(const pod_model_t *);
void pod_view_ota(pod_out_frame_t *, const char *from, const char *to, int pct, bool restarting);
// "now", "3m", "1h", "2d" for an age in seconds.
void pod_fmt_age(char *out, size_t n, uint32_t secs);
-// The notification banner for unread entry `u`: a white card at (16, POD_STATUS_H + 12), 688 px wide, over whatever the frame holds
-// (call it last): the engine's mark, the agent's name, the age, the recap's first two lines and "Done . 2m 14s". Adds the
-// POD_A_BANNER hit. Returns the card's height. At most POD_BANNER_RUNS runs.
-enum { POD_BANNER_X = 16, POD_BANNER_Y = POD_STATUS_H + 12, POD_BANNER_W = POD_W - 32 };
-int pod_banner(pod_out_frame_t *, const pod_model_t *, const pod_unread_t *u, uint32_t now_ms);
+// The notification banner for unread entry `u`: a card at (16, 98), 688 px wide, over whatever the frame holds (call it last): the
+// engine's mark, the agent's name, the recap's first two lines, "Done . 0m 48s" (or "Failed ..."), the x and, along the card's bottom
+// edge, a 6 px blue line that shrinks from the full width at shown_ms to 0 after POD_BANNER_MS. Adds the hits POD_A_BANNER (the card)
+// then POD_A_BANNER_CLOSE (65 x 65 at its top right, on top). Returns the card's height. At most POD_BANNER_RUNS runs.
+#ifndef POD_BANNER_MS
+#define POD_BANNER_MS 6000 // how long a banner shows (pod_glue.h repeats it)
+#endif
+enum { POD_BANNER_X = 16, POD_BANNER_Y = 98, POD_BANNER_W = 688 };
+int pod_banner(pod_out_frame_t *, const pod_model_t *, const pod_unread_t *u, uint32_t shown_ms, uint32_t now_ms);
// Milliseconds until the top screen, if it shows a pet (Agent, Recap, Talk), next draws something different: the pet's
// next step and every animation beside it. POD_PET_STEP_MS when unsure. Always >= 1.
uint32_t pod_view_next_ms(const pod_nav_t *, const pod_model_t *, uint32_t now_ms);
diff --git a/devices/harness-pro/firmware/scripts/gen_fonts.py b/devices/harness-pro/firmware/scripts/gen_fonts.py
index 0bfd943ef..9439b68ae 100644
--- a/devices/harness-pro/firmware/scripts/gen_fonts.py
+++ b/devices/harness-pro/firmware/scripts/gen_fonts.py
@@ -7,6 +7,7 @@ Emits ht_pro_24, ht_pro_32, ht_pro_42 and ht_pro_56 (ht_pro_font_t, see main/dis
The default font is the system sans on macOS when present, else the bundled Liberation Sans.
Also emits the Console faces (cs_sb_*, cs_md_*, cs_rg_*, cs_mono_*) from the committed Inter / JetBrains Mono TTFs in
fonts/, whatever --font says: full coverage, plus the CONSOLE_EXTRA marks appended after the Vietnamese entries.
+And the Classic faces (ci_rg_*, ci_bd_*) from Liberation Sans Regular / Bold in fonts/, with the ellipsis appended.
The output is a build artifact; it is generated at build time and never committed.
"""
import argparse
@@ -26,7 +27,7 @@ SPARSE = {42: "#>_?", 56: "#>_?"}
# Keep in sync with ht_pro_vietnamese_index().
VIETNAMESE = list(range(0x1ea0, 0x1efa)) + [0x102, 0x103, 0x110, 0x111, 0x128, 0x129,
0x168, 0x169, 0x1a0, 0x1a1, 0x1af, 0x1b0]
-# Console faces: (symbol, font file, size). Extras follow the Vietnamese entries; keep in sync with ht_pro_extra_index().
+# Console faces: (symbol, font file, size). Extras follow the Vietnamese entries; each face lists its own extras in its extras table (ht_pro_font_t.extras), which pro_canvas.c searches.
# Console glyphs are cropped to their inked rows (ht_pro_glyph_t top/rows). A mark the face lacks gets a copy of '?', so it never draws as an empty box.
FONTS = ROOT / 'fonts'
CONSOLE = [('cs_sb_48', 'Inter-SemiBold.ttf', 48), ('cs_sb_34', 'Inter-SemiBold.ttf', 34),
@@ -44,6 +45,26 @@ CONSOLE = [('cs_sb_48', 'Inter-SemiBold.ttf', 48), ('cs_sb_34', 'Inter-SemiBold.
CONSOLE_CUT = {'cs_sb_48': '0123456789.-+_ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\u2026',
'cs_mono_24': ''.join(chr(c) for c in range(32, 127))}
CONSOLE_EXTRA = [0x2026, 0x2192, 0x2191, 0x2193, 0x2190, 0x21e2, 0x25b2, 0x25c6, 0x2713]
+# Classic faces: Liberation Sans Regular / Bold, always from fonts/ whatever --font says. Latin-1 and Vietnamese, plus
+# CLASSIC_EXTRA after them (the ellipsis; U+00B7 is Latin-1). Each face carries its own table of these code points
+# (emitted by emit()); pro_canvas.c draws a mark only if the face's table lists it.
+LS_REG, LS_BOLD = 'LiberationSans-Regular.ttf', 'LiberationSans-Bold.ttf'
+CLASSIC = ([('ci_rg_%d' % n, LS_REG, n) for n in (20, 22, 23, 24, 25, 26, 28, 30, 32, 33, 41, 43, 48)]
+ + [('ci_bd_%d' % n, LS_BOLD, n) for n in (20, 23, 24, 26, 30, 45)])
+CLASSIC_EXTRA = [0x2026, 0x2014] # ellipsis, em dash (unknown time)
+# Faces that draw a few known strings keep only those characters (the Classic total cap is 800 KB, see test_fonts.py).
+_DIGITS = '0123456789'
+_ASCII = ''.join(chr(c) for c in range(0x20, 0x7f)) + '\u2026\u00b7\u2014' # fixed English copy, digits or the brand: no Latin-1 high half or Vietnamese
+CLASSIC_CUT = {'ci_rg_20': _ASCII, # labels, "Updated\u2026", footer caps
+ 'ci_rg_25': _ASCII, # band state word, "Connection lost" copy
+ 'ci_rg_28': _ASCII, # Talk button
+ 'ci_bd_20': _ASCII, # eyebrows, list state words
+ 'ci_bd_24': _ASCII, # count pill
+ 'ci_bd_26': _ASCII, # brand "Harness"
+ 'ci_rg_43': 'No panes yet.' + 'Connection lost.',
+ 'ci_rg_48': 'Listening.' + 'unread.' + _DIGITS,
+ 'ci_bd_45': 'Sending your words\u2026' + 'Updating to' + 'Restarting\u2026' + _DIGITS + '.'
+ + ''.join(chr(c) for c in range(0x20, 0x7f))} # "Updating to %s" draws any version string
def has_glyph(f, cp):
@@ -101,7 +122,7 @@ def bake(font_path, size, sparse_chars=None, extras=(), crop=False):
return height, data, glyphs
-def emit(source, name, height, data, glyphs):
+def emit(source, name, height, data, glyphs, extras=()):
tag = name.removeprefix('ht_pro_') # the array names Classic has always had: alpha_24, glyphs_24
source.append(f'static const uint8_t alpha_{tag}[]={{\n')
source.extend(','.join(str(v) for v in data[i:i + 96]) + ',\n' for i in range(0, len(data), 96))
@@ -109,7 +130,12 @@ def emit(source, name, height, data, glyphs):
source.append(f'static const ht_pro_glyph_t glyphs_{tag}[]={{\n')
source.extend('{' + ','.join(map(str, g)) + '},\n' for g in glyphs)
source.append('};\n')
- source.append(f'const ht_pro_font_t {name}={{32,255,{height},{len(glyphs)},glyphs_{tag},alpha_{tag}}};\n')
+ if extras: # the code points baked after the Vietnamese entries, in glyph order (pro_canvas.c code() searches it)
+ source.append(f'static const uint16_t extras_{tag}[]={{' + ','.join('0x%04x' % cp for cp in extras) + '};\n')
+ table = f'extras_{tag},{len(extras)}'
+ else:
+ table = '0,0'
+ source.append(f'const ht_pro_font_t {name}={{32,255,{height},{len(glyphs)},glyphs_{tag},alpha_{tag},{table}}};\n')
def main():
@@ -125,7 +151,9 @@ def main():
height, data, glyphs = bake(args.font, size)
emit(source, f'ht_pro_{size}', height, data, glyphs)
for name, ttf, size in CONSOLE:
- emit(source, name, *bake(FONTS / ttf, size, sparse_chars=CONSOLE_CUT.get(name, ''), extras=CONSOLE_EXTRA, crop=True))
+ emit(source, name, *bake(FONTS / ttf, size, sparse_chars=CONSOLE_CUT.get(name, ''), extras=CONSOLE_EXTRA, crop=True), CONSOLE_EXTRA)
+ for name, ttf, size in CLASSIC:
+ emit(source, name, *bake(FONTS / ttf, size, sparse_chars=CLASSIC_CUT.get(name, ''), extras=CLASSIC_EXTRA, crop=True), CLASSIC_EXTRA)
args.out.parent.mkdir(parents=True, exist_ok=True)
args.out.write_text(''.join(source))
diff --git a/devices/harness-pro/firmware/test/golden-liberation.txt b/devices/harness-pro/firmware/test/golden-liberation.txt
index 0eadc3be8..59303e23e 100644
--- a/devices/harness-pro/firmware/test/golden-liberation.txt
+++ b/devices/harness-pro/firmware/test/golden-liberation.txt
@@ -1,295 +1,350 @@
-0330cdea3ce5ba783cf5107a983ad9b1330cb6e1e8d6d728802e0d1251261a93 default@2500
-0330cdea3ce5ba783cf5107a983ad9b1330cb6e1e8d6d728802e0d1251261a93 default@600
-03588a02bb9104cd814f7636b4df4c333e7219dea072afb77ac6c17df6639799 chrome@0
-03588a02bb9104cd814f7636b4df4c333e7219dea072afb77ac6c17df6639799 chrome@1234
-03588a02bb9104cd814f7636b4df4c333e7219dea072afb77ac6c17df6639799 chrome@2500
-03588a02bb9104cd814f7636b4df4c333e7219dea072afb77ac6c17df6639799 chrome@5000
-03588a02bb9104cd814f7636b4df4c333e7219dea072afb77ac6c17df6639799 chrome@600
-0390c6b58f216ec63f2b5a885cab51d2af9ee718f45a5b71b0fc22b9d5ca3544 agent:site@5000
-0390c6b58f216ec63f2b5a885cab51d2af9ee718f45a5b71b0fc22b9d5ca3544 agent:site@600
-04ac1d533ec977b5a93dd822584efce30dcf3bbe1585b9cff5030e15e0dedd39 talk:cur@5000
-0526f67407003f191fbe8669dccb2f419fdca406f6d1de85b48ff61703fe27fa tabs:1@0
-0526f67407003f191fbe8669dccb2f419fdca406f6d1de85b48ff61703fe27fa tabs@0
-05443c55259686ce69dfa0aa1712e758e4188f66b4bf07c032f9ad71bbf15b01 agent:docs@0
-05443c55259686ce69dfa0aa1712e758e4188f66b4bf07c032f9ad71bbf15b01 agent:docs@1234
-05443c55259686ce69dfa0aa1712e758e4188f66b4bf07c032f9ad71bbf15b01 agent:docs@2500
-05443c55259686ce69dfa0aa1712e758e4188f66b4bf07c032f9ad71bbf15b01 recap:docs@0
-05443c55259686ce69dfa0aa1712e758e4188f66b4bf07c032f9ad71bbf15b01 recap:docs@1234
-05443c55259686ce69dfa0aa1712e758e4188f66b4bf07c032f9ad71bbf15b01 recap:docs@2500
-08233364af6bef978fdddc67544550f735c5da1bb83725f4a303cfc461ab1e3b recap:web@5000
-087f2c03b69ce5581269278e95eda92ad138c1cbde9f35657b1a23ef1f96c32f agent:cur@5000
-08e0997a5f80215a5c8bbcae0f3697a345e8a47c1857a2b212a44a046f378e7f talk:cli@2500
-08e9bfdca89f248d0a8d9e6409d7501506115a8f52ce3ed92faab7c39b9a7169 talk:kilo@0
-0a129f79853d6e3a6346f25c28e401eadf183da76494121d12c6c6530be8e628 talk:site@5000
-0a64d7935f80250d21e00f39aa8077bac7c2782a7d341c8ef380ebf0a757a6c1 agent:web@600
-0ad768cab2ee0c05516a26dba4e4fbd68f246184f836b4790c8882e6b27398b4 recap:cur@1234
-0b385f9de09ce2c37c5698737767e16146e05dcf06fb111bd9cedfcf75b1285e tab:0@2500
-0c00c243777d633f6a2d9f6d75cc5a67a66a80c3efbc5c652a35c7c8e1b2df3c talk:notes2@1234
-0cb90807433ab8660b81bd9d56d6e8d684b215adfeed64004249242cbd27df3d recap:ota@5000
-106c7dba207c59d0d38ee10a73f4e0be6e52952d1fe71c5cdcd2a758aee962bc agent:web@0
-124ca4bf263412ed7568afbfad86f138550bfd2d52d864dee3861e8c71d3cda4 recap:web@600
-147aec6cb780345c6bf322f36f5fb045a9455c2cc7983643af75b3fa97c957f7 agent:docs@5000
-147aec6cb780345c6bf322f36f5fb045a9455c2cc7983643af75b3fa97c957f7 agent:docs@600
-147aec6cb780345c6bf322f36f5fb045a9455c2cc7983643af75b3fa97c957f7 recap:docs@5000
-147aec6cb780345c6bf322f36f5fb045a9455c2cc7983643af75b3fa97c957f7 recap:docs@600
-14cd0b37179d9687d422bae91f23e98006b150e0eafcd3fe2759e1c9757a4930 tab:1@5000
-1563d37fa89c242d0c13be284a6497364faa37059e7e21b216b56b5ba0de829d default:tab@600
-16056e9d53f26fffbf4620beec27cef6e5a758df1a0270aed3a4b9e63da9fe87 tab:4@1234
-16bb8e86a33a446c41a7910e92dd3ec0c76cf5d6177b7f0b9e80d86f25722d39 agent:desk@1234
-16bb8e86a33a446c41a7910e92dd3ec0c76cf5d6177b7f0b9e80d86f25722d39 recap:desk@1234
-188db60202f02c432f90f759e626da2b6d7b7bc200136818c5dbfd8e14f4da02 agent:fw@5000
-2042077c3562c89631e49b292429b9a658b97b4458b2cffb9a1b932aecf7b2cb ota:100@0
-2042077c3562c89631e49b292429b9a658b97b4458b2cffb9a1b932aecf7b2cb ota:100@1234
-2042077c3562c89631e49b292429b9a658b97b4458b2cffb9a1b932aecf7b2cb ota:100@2500
-2042077c3562c89631e49b292429b9a658b97b4458b2cffb9a1b932aecf7b2cb ota:100@5000
-2042077c3562c89631e49b292429b9a658b97b4458b2cffb9a1b932aecf7b2cb ota:100@600
-2052c55a19b1b3560028aa678c8656df6212b7bef560cd0207b861bfa3755fed agent:cli:qresume@0
-23363e72267755ef7e1a201e518121e8ec1f114abcbdca000a59bbb07b484bf4 default@0
-25f042e9c1ef0d6ff27b41d9ff6f49fc4b9228ca1baaebe93d7c1968f8ab4fca recap:ota@600
-26566d758721967bb1238e1f52e70decca76931339d7be850ae2771175b53fcb recap:notes2@0
-2674298a54ba62bcae8c8866649d242b98bcf5a92b92a87e00497c0ff9e3217b recap:notes2@600
-271717be5e21bb16d49fde07e965cdf5393d452d7d056770f230dde0c668b103 talk:cli@0
-2753d761ffb3159e451cabc91a4606d407a0faacd0972ce436e998e34971a77c talk:web@0
-2a3ef0bb13c7c010b75e063bca6945fd93183b01144645831435da42de40ca38 tab:5@600
-2aee71043d3b867df8ce5e40205e83112eb4e317c1e32415455feb166300f9a1 recap:web@0
-2bddef393680ce9606c28e2f43e043377ce0ebb632745b8aa77ff533e47f0749 ota:restart@0
-2bddef393680ce9606c28e2f43e043377ce0ebb632745b8aa77ff533e47f0749 ota:restart@1234
-2bddef393680ce9606c28e2f43e043377ce0ebb632745b8aa77ff533e47f0749 ota:restart@2500
-2bddef393680ce9606c28e2f43e043377ce0ebb632745b8aa77ff533e47f0749 ota:restart@5000
-2bddef393680ce9606c28e2f43e043377ce0ebb632745b8aa77ff533e47f0749 ota:restart@600
-2d45aff300684861aaeab6d73ed1ea5b778f808cea46c0f3cb99473056bd27ed talk:docs@2500
-2dbf66188176bdd272d86f01237e804f486eb6753be2f4181c630b28d21be2a5 tab:2@0
-2dbf66188176bdd272d86f01237e804f486eb6753be2f4181c630b28d21be2a5 tab:2@1234
-2dbf66188176bdd272d86f01237e804f486eb6753be2f4181c630b28d21be2a5 tab:2@2500
-2dbf66188176bdd272d86f01237e804f486eb6753be2f4181c630b28d21be2a5 tab:2@5000
-2dbf66188176bdd272d86f01237e804f486eb6753be2f4181c630b28d21be2a5 tab:2@600
-2e45643debce0971b1f645bf6ac5a0a2612d18f6fac7a14476524cbd7dd1e9b9 recap:cli@5000
-2e45643debce0971b1f645bf6ac5a0a2612d18f6fac7a14476524cbd7dd1e9b9 recap:cli@600
-2ed5af54867b9bdf6afbcdaeb814491ad2df96433081b50ca425f7e0d253f875 agent:be@5000
-324f2c2eb3fd1ad2bdb80eab12fbbe339c8cc307929d4c58eb01babacc5ab6db notice:updated@2500
-324f2c2eb3fd1ad2bdb80eab12fbbe339c8cc307929d4c58eb01babacc5ab6db notice:updated@600
-33b3858739ef536dcee26c891c867ff3ae7f433bd3621ae2d83e66cecad381cc agent:web@1234
-33f654b3c50d1b878e811ab636730f65b2ceec3ee5873a59815c4b791e47d0f9 default@1234
-33f654b3c50d1b878e811ab636730f65b2ceec3ee5873a59815c4b791e47d0f9 default@5000
-36134330459efdbc959c552024cc86f2fa1005ca405dc7b8769b7a5f558abc7c notice:failed@1234
-36134330459efdbc959c552024cc86f2fa1005ca405dc7b8769b7a5f558abc7c notice:failed@5000
-383127e925f6dc5266c8dc0c8bda88b49fd589742d2fd24ffd9823d8449aac44 talk:notes2@5000
-3bd18fd9a0014ffab2f757bf13689e263d655aae06ea7443a9f8d12d6f8aa089 agent:notes2@600
-3dc7f75864cdb91477d4ef8cab0064b5c8c5133ab388fcb1ba1eacc7dace4870 recent@0
-4283a7354c54769fd939e67385ed0e00a0e2dc75f247c47ed67635eb9c8b90f4 agent:cur@0
-43ac24f7124238cfd5a08ef41cc9183e23634edf77675e5f0c01082c4f47b555 talk:vault@600
-44293f60c35e450cff8b9a494b47fb6d654dfe6c879228a408e11fb74bbb9221 tab:0@0
-447f6a5b315d7991894f68669d240fef774b1f988d2423fd872188897d61438e tab:1@2500
-4520a7b9c764cbfae7065b2693f550f96622a8905a6cc7b3f01d77a49c98f973 recap:cur@600
-45e38b293660e14306e5990dae7685ae160a818159ce85853a7f77a3adff6e85 recap:fw@0
-475dbdbae12273cfec8f889268bb21344ebfe0836b3309e0390332a96b66193b recap:be@0
-475f38abaa70078f28e4103b41e3685f159e89b49c2ace8e661d05bf493b9ecb agent:ota@600
-47f07eeb28df79fd143bed089e5e968430b0d65c525160d6146dbde1c9990491 talk:ota@5000
-48b9b8ecbb7d20d122baea1f41c15f7e464199e1bdc12dee79ec8c166eb39eff talk:site@2500
-48f119f38d64640a6be9aef48b977654a4d150efbf0e6f205d2f04a5e0d36a4b talk:cur@0
-497e46a4f0d010a538f7ba652a4beb004c0e32d02050d468363b7d53cf16dd3f recap:ota@2500
-4d4355c299669db4180d0f24bf87916a77475ed3d34f5950c7cfef7c0aa6bf02 recent@1234
-4de16b264d93c0728b567e8283d50f71651c01d8e926766047348773066266ed agent:cur@2500
-4e7aeaf4224c8077d0633af677b33bf3a1bc6bf7c26e3c7261fd6f6047fc1447 agent:fw:steps6@600
-4fa050f91bcbb1ff000fc83634cc76bf7bdf2bd0bfe3acf2727f511cb057ee17 talk:site@0
-50d927edc928fa2e1a757077a0bda5f3e713cd9db435a1af1ca291063c84a34e agent:vault@2500
-50d927edc928fa2e1a757077a0bda5f3e713cd9db435a1af1ca291063c84a34e recap:vault@2500
-522593f0769830dc9ff8856654b06579d82b301a14b78eed9bbcd4004b82a322 agent:cli@0
-52a1a0a68c7847fec76c35599d5df1fa8fbc0702850483d5ad6a5fff86230564 recap:fw@2500
-540c49f41af17bc0c0e4c4145c1ccfb26499732f761c7c00954aa2cce47f3714 recap:fw@5000
-551132ceb0d8f859bb73879d18ad2040de50cfea81dec39e27e69ad007c131de agent:cli:qresume@600
-55f7f3369b4bc4945ba3f2a2578c8ac2aedb5e8febe3b335e69763ff09be5f8f talk:web@2500
-585f65b008096c191ac72c56fbbdae8e92406522067281774d55aea0eb2d3bbc recap:fw@600
-59315b0ffec6ee488160070cd908ad5e4cf35214f4da75657cc7319b4439154c talk:vault@1234
-5af17f3fb8e5e64ca3d2ebf986d05351f9caad3ff6678d77e67c17600d1c00a1 talk:site@1234
-5b8b13552c367303c47008953fc1e2acaa37895db653c31f07a863cf17343b2f talk:ota@0
-5eaf55f9f1db9def9cd1046ecf4b310e21baf5040ce91146ed20f513fd4f934d talk:cli@5000
-5ebf1941df2c756a624648429aab23f5c6ad20860169ca2fd26bcefd80856685 recap:cur@0
-60eda259aa5e8e699078e2363c853f522687e4e0e38687bf0148bba28e6ac59d agent:vault@600
-60eda259aa5e8e699078e2363c853f522687e4e0e38687bf0148bba28e6ac59d recap:vault@600
-612557ef947f55aeb05168dedb0a0333913f7f556ee62998b2474918c50be877 agent:be@2500
-62f46252cc15feb969bc0cad7807aa187e4c3481b35612fe983b7aeddc622714 talk:be@1234
-646de5daeeca0ca8609956c32b9ec08a3448dde33de2c9d8eba6ec50fc91e897 tab:1@1234
-6740587f79ffd599aeeadf7dcef0168effbe10c7bd2ff7950209e3c7f98357a1 notice:failed@2500
-6740587f79ffd599aeeadf7dcef0168effbe10c7bd2ff7950209e3c7f98357a1 notice:failed@600
-687c439967c945ff0f7f9d6d1541ee8e8605e4fbd30a578bb91916fd66145555 agent:vault@1234
-687c439967c945ff0f7f9d6d1541ee8e8605e4fbd30a578bb91916fd66145555 agent:vault@5000
-687c439967c945ff0f7f9d6d1541ee8e8605e4fbd30a578bb91916fd66145555 recap:vault@1234
-687c439967c945ff0f7f9d6d1541ee8e8605e4fbd30a578bb91916fd66145555 recap:vault@5000
-68cc9e32af9d91732b856e7b87b4669abb5c2d04cbc22f5b8712934447c02b87 agent:desk@2500
-68cc9e32af9d91732b856e7b87b4669abb5c2d04cbc22f5b8712934447c02b87 agent:desk@5000
-68cc9e32af9d91732b856e7b87b4669abb5c2d04cbc22f5b8712934447c02b87 recap:desk@2500
-68cc9e32af9d91732b856e7b87b4669abb5c2d04cbc22f5b8712934447c02b87 recap:desk@5000
-6a1d4341904c8cedfea3018d3559b27990c3bf03544e3beb35cc640649e2ba1d talk:ota@1234
-6acc45077117b26e10a8509083711b822e8a47b5dbda1ec7eeebffc92ecd313c tabs:1@2500
-6acc45077117b26e10a8509083711b822e8a47b5dbda1ec7eeebffc92ecd313c tabs:1@600
-6acc45077117b26e10a8509083711b822e8a47b5dbda1ec7eeebffc92ecd313c tabs@2500
-6acc45077117b26e10a8509083711b822e8a47b5dbda1ec7eeebffc92ecd313c tabs@600
-6ae32bd1a1b17da80bad0153d33fd3e0c2f76cde4ea184943059b03660378fde agent:fw@600
-6b5ae8025797a2bc2ab2167265561f288e9536577ee30ad8701bfff39d12df1e talk:web@5000
-6cb409ca41b2f214a33b5293b81e0b8a6b6c6c5a3a6311f9c1fc8a1238c01555 recap:cli@0
-6cb409ca41b2f214a33b5293b81e0b8a6b6c6c5a3a6311f9c1fc8a1238c01555 recap:cli@1234
-6cb409ca41b2f214a33b5293b81e0b8a6b6c6c5a3a6311f9c1fc8a1238c01555 recap:cli@2500
-6ce7603d9013e60d1a56af29e940b83491090f2c6c08da0d0ed4c07daf48b4f4 recap:site@5000
-6ce7603d9013e60d1a56af29e940b83491090f2c6c08da0d0ed4c07daf48b4f4 recap:site@600
-700a351ce0e5b20ccb2f9461cc75aaa7a9c62fb1d81321d3bfdf3f4024f7a2a3 agent:fw:steps6@5000
-704dcce24952619bfdd2e9922479aa93a5103fbe19c5af2f000f7eeaa3d40faa agent:fw:steps6@0
-71b8b57ad74822c4f13f54c82f20e92e0b948ad19c6c626d42b295405f0fffb1 talk:be@5000
-736754c9538b46c45307c47f34d7646c301444f824c2d45e12c9763b20b5c231 talk:notes2@600
-73f551646df94b574f34c7427613e44c821da121938b253047ee15a8135ba139 talk:docs@0
-76dc9d4faa599a0d2a3399341b5ae9c2420fdc84bdc4a2c1904e7a8030563161 recap:site@0
-76dc9d4faa599a0d2a3399341b5ae9c2420fdc84bdc4a2c1904e7a8030563161 recap:site@1234
-76dc9d4faa599a0d2a3399341b5ae9c2420fdc84bdc4a2c1904e7a8030563161 recap:site@2500
-7b7a99aa8c82b0d8e8b51b181b0a5191ec98cdfc3f21d36014baa26298b0f741 agent:fw@1234
-7c3c8c555af3b7ba077d2e7b5425da59d1d5d8f40983ed1f57e6561a06bce3f8 talk:cli@1234
-7cb1d6b53f14e5422d5d4e850f6996544997b41d2a0950f302b54a60e84b957b tabs:mock@2500
-7cb1d6b53f14e5422d5d4e850f6996544997b41d2a0950f302b54a60e84b957b tabs:mock@600
-7cf8187b71a89ed67a2cff173fe7c0327776038e31701f91c6147cb5344dc87d agent:desk@0
-7cf8187b71a89ed67a2cff173fe7c0327776038e31701f91c6147cb5344dc87d recap:desk@0
-7ec13e76443df3e673b865c1a295ea3d3d721252c56a3a66065bce94375d0b65 talk:be@2500
-7f5adf11f7711ac4e54b5717b5693257c361c2b17a19d18a924b9c16678d1266 default:tab@2500
-80cc514d6b64aa2325d55a2542974d810ac2c6263cbd0265cb764654a00f45b3 recent@5000
-82e15e088ab17d966170a72530773fde5306a72281059f90debbabe86e194a00 agent:web@2500
-83ac3c92db7b50111db4283764a52cc98d4e54cb424aad49b2cc82b224dee622 talk:notes2@0
-85f3704b1f08cd92d7237c1205739a31022b3eebb82c1132f847f56db78e0471 tab:4@600
-8887da93cb8c7461416adefcbba879378efd4d85fe30f8554d4ea3d8085e0b6d recap:be@1234
-8b23cea61dffc8e860b6d98a9f7f94202a67ad2e0df9952e6a494266cca5a4f7 talk:docs@5000
-8b50bc098239bfbaecf99de94609a909f862b3fbe79e95603a984125e29470f8 talk:web@600
-8b8b6b4b34404a8433399a25844ddd670bab36f0d07669cde7159835fb59a105 recap:be@5000
-8beb6ec5879e506a0e327c325fec8b5823f78854c5427213c36d743a14f0df90 tab:0@1234
-8ced1e1148ad2779977be600bcd967128a28e86ddb05989384a9ff705b6857a8 talk:fw@2500
-8fd834f63313777e78d7f786816f38dd909ea021503950522f8b083c2dfae6d5 tab:0@5000
-9027170640f525cc103386188fda4ffeeffd017fd03ade0938b323524af23c1e tab:4@5000
-9135ec5076d4863d0c3ac7b9ec00fc5dbfe0316c7a883ee373641fb3b0358253 agent:be@600
-913f0077c06a9fd0f2b606add72250be62d8484bdad73a491a61fc97826bb922 talk:vault@0
-92ff755ab0a0b6126a1e1e4b624ff3b1e21c5ef219f2877280d3f399949dda17 tabs:1@1234
-92ff755ab0a0b6126a1e1e4b624ff3b1e21c5ef219f2877280d3f399949dda17 tabs:1@5000
-92ff755ab0a0b6126a1e1e4b624ff3b1e21c5ef219f2877280d3f399949dda17 tabs@1234
-92ff755ab0a0b6126a1e1e4b624ff3b1e21c5ef219f2877280d3f399949dda17 tabs@5000
-9354d6b6f2ea4314b8c70861eff6abddd2dfac068a2211cb0897766dc00606ce notice:updated@1234
-9354d6b6f2ea4314b8c70861eff6abddd2dfac068a2211cb0897766dc00606ce notice:updated@5000
-93dd1426d84bdd2bd3d2926da8de4936e5eaaff387335d8ce6f502175f9d0107 talk:web@1234
-95212e77e93b50022447c9fbf5866f62d12ad52adf33a368ed7c24f4f049e31d agent:site@0
-95212e77e93b50022447c9fbf5866f62d12ad52adf33a368ed7c24f4f049e31d agent:site@1234
-95212e77e93b50022447c9fbf5866f62d12ad52adf33a368ed7c24f4f049e31d agent:site@2500
-954c26e4370403dcaa599d7b7d518ce67a154fe59b94798c7bcb9ff45be4a905 talk:desk@5000
-956d4de2112b8ebd433d08449c56d7fd96fba4165075a7f87fe0a951af391227 talk:ota@2500
-9a41e1881b1a8bee048cb1de3da747f4c605c08df38a667b83b958b66093dcfe agent:fw:steps6@1234
-9c9e7f7df54a6802d6a10f534cd04256cd488530e7875dd71a0247fa1a37bd84 talk:kilo@1234
-9cd2b729118443a87325d39ae4ad88b5462093f84708464014794070b6206671 recap:notes2@1234
-9cd2b729118443a87325d39ae4ad88b5462093f84708464014794070b6206671 recap:notes2@5000
-9ec44971ab4816329178664ec81c0896854732214d2d90b4cf815ff7f16d291b recap:fw@1234
-a09921f4af47f0d73531e73f810e1f08c6a201b56e8bafd4bea5f2947d681304 recent@2500
-a31410f28c744ea422c5789e354a540dd31f7319a6661f3f68b4ea9f7b7d865b talk:desk@0
-a354cd252c453a0e85a0ef45853da5ffb6c80827d7c2e0bfa33c675755fecd88 talk:ota@600
-a35fca4efc85cc0eba75817747a0a2b595703fa45bca9e4868df258ad7bd0a83 talk:cli@600
-a3b5733e4330213f16a8b66ee06d2bb700c46962b601d95c3155dd7171def563 notice:updated@0
-a4495f32ec666df7b5317ed2bf52eef78cfc99022f324f7ec302fff66cf45d2a tab:4@0
-a4fd1c1af8c2a0797f88f9fdb589d48c5e56cc1b48c19e8e0a29f339131ffe9f agent:ota@2500
-a6741472846ceb329852b164cfc389b88721b898c0132c7f4f869258e2ab706a tab:5@5000
-a870b2996394f0fffb101d5b02e49193cfaa942c3c3cb6afbe78f3efbfe05f3a talk:desk@1234
-a9e7fd4670cc1d030e0605a851df46097184af003f3a27bac144b9e558fc7ccb recap:cur@2500
-aa9fa789159327e02eef00d6a566d8d57a91016eb8d22af707a9c517009926a3 tab:5@1234
-aaa9e496d7e7bc3ce8b8abf55462182df5637b0a946637626c850976d031c944 talk:fw@0
-acb718ccd324e9429f35d3c8445c0f1ce68cf8f88120136f8eb5a7562cc746d4 recap:web@2500
-adcc33342a8298e596dd9a70c73c72771023415d0e5813928d2c435551d28655 agent:ota@5000
-af9b0a21d04aa8d2b3e72ccd2d73ffc0d417a30b1e7ce90923ed95a8fff18bbc talk:docs@600
-b01b546aa36e24c9886a8ff4962fbccd68fb4faa0b8e7b5c266ac9791eacc6bf agent:vault@0
-b01b546aa36e24c9886a8ff4962fbccd68fb4faa0b8e7b5c266ac9791eacc6bf recap:vault@0
-b1aad6764ba7bd13eec80854798c8ba31a68c98cce56807e3fc453f48a0ee721 talk:cur@1234
-b1c9c535d0e9ca06b9780856457615885311400fb7342688c8b85839bbac9e34 agent:notes2@2500
-b46e43c7b2625a6be6d813a692dd35db2be4f67568c421c613d38691b3e542a2 recap:be@2500
-b471a43384f13a09bdb857f90e1242c0a3828304dc906bbd44d9484db6c4ec6d talk:desk@2500
-b4d398370a9c35ae8065078d2b83433902cb5af735d10c36746c3973284482be tab:4@2500
-b80f98afc7ac4e47ff70547a6ec5ee984c39c99b036b5fec6b47c57aecff6a0d talk:kilo@2500
-b835d6e84594b0bddcb18a281c3615686c44f871500a4cd0dad82ff81271fcb8 talk:fw@1234
-bac0537af0562031ef1362817808ec016c6cc62effba731243512d23d486df85 recap:ota@1234
-bba37c978093ef802c8f8539f81766158f4e19f02a9e8540f416dec43aa21f1c ota:42@0
-bba37c978093ef802c8f8539f81766158f4e19f02a9e8540f416dec43aa21f1c ota:42@1234
-bba37c978093ef802c8f8539f81766158f4e19f02a9e8540f416dec43aa21f1c ota:42@2500
-bba37c978093ef802c8f8539f81766158f4e19f02a9e8540f416dec43aa21f1c ota:42@5000
-bba37c978093ef802c8f8539f81766158f4e19f02a9e8540f416dec43aa21f1c ota:42@600
-bbc487f6a276e5fa7ea5254041bbb45785437f1cb5bc0df5bc5d89984b2867cd agent:cli:qresume@2500
-bca20551458026e20e84649e7c8c4b41bb7f0b76e82682d5f1c8c452aaa0dba1 recap:notes2@2500
-bf36b1c5bf7eed0c80191bdca1a46bdb918d1c75b9c435a3396e4c161f20fb8b default:tab@5000
-bf8b7a79a4628a0083ec95f369a032e1fb8cefa10bf6a41199625cbc19d87ecd agent:cli:qresume@5000
-bfe24e37d227c485e4a481a5b7211046f7f400c6132651482da6471e2aeb0535 tab:0@600
-c0462f628ad03ace3b406ddb05945ef9c6529c6ed53f08519c653085401ad0dc agent:be@0
-c0a7cea8f9ea13924e5e725184643eeec914d3d1b383d179f51066a2ca464b92 agent:cur@1234
-c507685d1d7a1ad4b718ac056faa49483348567b69d859755780ef7fcd6540ce tabs:mock@0
-c5566ed7b2654ccc5f4d3e833798a14f23a3b16e195a86414173195971fb7ce5 talk:vault@5000
-c7d5d81d0751d50906f57d04a7aca396c22aa82c87955e8d3c9c36964eed6bfe tab:3@0
-c7d5d81d0751d50906f57d04a7aca396c22aa82c87955e8d3c9c36964eed6bfe tab:3@1234
-c7d5d81d0751d50906f57d04a7aca396c22aa82c87955e8d3c9c36964eed6bfe tab:3@2500
-c7d5d81d0751d50906f57d04a7aca396c22aa82c87955e8d3c9c36964eed6bfe tab:3@5000
-c7d5d81d0751d50906f57d04a7aca396c22aa82c87955e8d3c9c36964eed6bfe tab:3@600
-c80c97c5b6cf68e450afb7fb34d1d9c9e646c2987ba390a67719edbe0d8f132d agent:cur@600
-c90b0a17bd2b63cd8cc2134dc4503572a0c3a7a93e43c59ad1bc1d07d1fce4f0 agent:notes2@0
-ca9e8947e88fc79a74e04105c97b9672b59a386959e8ced50e68d27f0bcb1650 notice:failed@0
-ccd2704ea03a4f7fb41e18b3f5a10259c7a48fc05bc0dc900436c43aa45afc1f default:talk@0
-ccd2704ea03a4f7fb41e18b3f5a10259c7a48fc05bc0dc900436c43aa45afc1f default:talk@1234
-ccd2704ea03a4f7fb41e18b3f5a10259c7a48fc05bc0dc900436c43aa45afc1f default:talk@2500
-ccd2704ea03a4f7fb41e18b3f5a10259c7a48fc05bc0dc900436c43aa45afc1f default:talk@5000
-ccd2704ea03a4f7fb41e18b3f5a10259c7a48fc05bc0dc900436c43aa45afc1f default:talk@600
-cd5c67be678cacdcdcbcf611555a7b4081b0a3a3981b8f283ecf9719d510c700 talk:fw@5000
-cdcd4b816338caed988153b1f850e9f304e1967c007f877a901e907bea7d6341 talk:fw@600
-cea00be4c3925cc505b0d012a469cfe7ecc14f045f69cedface6a7da433d4c91 agent:fw:steps6@2500
-cfdf191882079915deaeaa23441873d33033326bd6a5bfbdb791cce7b2dd1f8e agent:notes2@1234
-cfdf191882079915deaeaa23441873d33033326bd6a5bfbdb791cce7b2dd1f8e agent:notes2@5000
-d14c38c2f47908d9d0027005efee068cc0c2bdf5d376a8c9c9ef3f1adce21665 talk:site@600
-d2de1fed7005af6a79c72cec66cd6088c4de15d33f19c7421c8aad1ef2ea99d2 agent:be@1234
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c agent:kilo@0
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c agent:kilo@1234
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c agent:kilo@2500
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c agent:kilo@5000
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c agent:kilo@600
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c recap:kilo@0
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c recap:kilo@1234
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c recap:kilo@2500
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c recap:kilo@5000
-d666e8e1d18b69f9f60f6dda398d5b4cb360ca6bf677a38bfbadf9197a9c2a4c recap:kilo@600
-d7ab4b17abd5d284c408ab49f2dabd4bba4d75046a0878079d2acfc541173a05 agent:cli:qresume@1234
-d83d84c9f6c7dad38e4f42ab6238c8498511bb871927d58ab6749365261ecbe6 agent:cli@2500
-d83d84c9f6c7dad38e4f42ab6238c8498511bb871927d58ab6749365261ecbe6 agent:cli@600
-d8a58082172691782985a1fdb358e9a5c0d7739aa6d75a447c0d05cabd852085 talk:be@600
-d977f9fb3e5ca55baba448ba36878b8313a4b077b96d8fe400fdee3fed00f02b talk:desk@600
-d9f34f0d0e6c920c8e77971980165afd19e4b72b919d7c404254ec8c2d10a4b6 agent:ota@0
-da39919bb0f6c89d5321dff5186238e6cdd8b9d209d627a517d46e6c5bd7a2de chrome:talk@0
-da39919bb0f6c89d5321dff5186238e6cdd8b9d209d627a517d46e6c5bd7a2de chrome:talk@1234
-da39919bb0f6c89d5321dff5186238e6cdd8b9d209d627a517d46e6c5bd7a2de chrome:talk@2500
-da39919bb0f6c89d5321dff5186238e6cdd8b9d209d627a517d46e6c5bd7a2de chrome:talk@5000
-da39919bb0f6c89d5321dff5186238e6cdd8b9d209d627a517d46e6c5bd7a2de chrome:talk@600
-db137dbb8a650f67d9c3160c25a408eb9135445da23012331d4212585ad72d76 ota:0@0
-db137dbb8a650f67d9c3160c25a408eb9135445da23012331d4212585ad72d76 ota:0@1234
-db137dbb8a650f67d9c3160c25a408eb9135445da23012331d4212585ad72d76 ota:0@2500
-db137dbb8a650f67d9c3160c25a408eb9135445da23012331d4212585ad72d76 ota:0@5000
-db137dbb8a650f67d9c3160c25a408eb9135445da23012331d4212585ad72d76 ota:0@600
-dd39b075ab43869763b9729a682555adc9e7c92a7e8fcff1db605aee4daf4fb3 talk:vault@2500
-dee0ad08f2cf1e57a531d85497e6c13550744870625b91acd0aaf18551ac04fc tab:5@2500
-e0970c2a24a89440087f4b50445e6884cc1e9efd6c3e68f4407b8a96c8af082f talk:kilo@600
-e2c988b35337470200b9167065aa1d89a2329c6e1fabd7f2b0968136d1cbcfbe default:tab@0
-e36cf89e9fdeacb48d9f672e0361b0f2585119a8df4e864dde3fcf3177e60f23 agent:desk@600
-e36cf89e9fdeacb48d9f672e0361b0f2585119a8df4e864dde3fcf3177e60f23 recap:desk@600
-e39fb13976bdd8967614680f8d4c381defd56dfe4aa2c617d73d0bebee847b7f tabs:mock@1234
-e39fb13976bdd8967614680f8d4c381defd56dfe4aa2c617d73d0bebee847b7f tabs:mock@5000
-e455fc2dbf92e57932315d8e73bb1b150b8caceb279b388fd32c4933221bc9f0 talk:cur@2500
-e6a62222fe48900d331e782e21857161c98c096d56d3de3632bcb69d8afeb445 talk:notes2@2500
-e6d3021c548c3aa24b7205ec3dbfec800f4a6585f1df814a3340ac4ec1c16e6f tab:5@0
-e8bb31703d318d8d1ffaf3f6251dfcfea3871a174e7482e5bfb21bccf4258e7b recap:be@600
-e8eb50687a53ddbdabe57482d163d9ecc7c9daa84f2615042c7ccc65546b80e2 agent:cli@1234
-e8eb50687a53ddbdabe57482d163d9ecc7c9daa84f2615042c7ccc65546b80e2 agent:cli@5000
-e8f2c174857870ef0aebb574ce1d637d271d5be97785820488b5683c7effb204 agent:ota@1234
-e9afcc8c73d375b6ac62929cd54153d8399c4f5240605351bb139705c07df6a6 recent@600
-eb7f9830eae6641612c812138cb996133aeff0f2a428eca9c8aa24f987588644 default:tab@1234
-ee1a5c4a4a6ec4b80d029d53e56134e9adc3027fa20d6046dee3e4885caba93b talk:cur@600
-ef19b7459bb93ea6969c2d424fe323410a970353c96caa2ff92737c80e60acdb talk:docs@1234
-f307d1390cfe1712cda5cad0b7e92a35b6ca2b864b36cf50aec7be98c0bbe4d5 tab:1@0
-f4aeeb691fded1c783d0aaebf760832380befdf844ca12bab238c15526c7a353 tab:1@600
-f590be69ddc98f035a1a7ede728585d6ef7e549d8a44c9ddfb62b39ca1e07343 talk:be@0
-f63254e52c1a02392b32e94e35d0f9a1cd82f2ef69c378cfc0082132d77047a2 recap:ota@0
-f908f8b702c59bab567885306722bfbb892dcf9d17d1df2ff07de16684dad494 recap:web@1234
-fb2e95a274a02d3c7197a90561c81a09764971e0319a4556a29da2d2c9dea819 recap:cur@5000
-fc082ad775204d3544e74109c7c1393ac94ade30bdfa92f84a0c53ec298b9f42 agent:web@5000
-fc5904ffdb9fa5baf29971cd6f9b4d34276c5c75d7693fe53f22bd9f5abf074c agent:fw@0
-fd317ed882399934535658c3fc2fd2e9bd83b97eb2286e744d88419d23150e05 talk:kilo@5000
-ff54126ab1a860a8e705526e5bfc52515f0a54e532eab664ecad29f12fb99a09 agent:fw@2500
+01a50e93da85c2d3a5fb8534b26c7f0e47d353e8146f1d57e2609a0e5c8d985e agent:ota@5000
+021d849fd0f13f5c5ec9046178c2cee612a38528fb92dd711dffe6a8d34cac61 talk:cur@5000
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@0
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@1234
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@2500
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@5000
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@600
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@0
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@1234
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@2500
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@5000
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@600
+04532b3999bf93eb85a9e58bd0bf48f171d1a815b4297c5555eebc8624f8bced agent:cli:qresume@0
+07eca96a7f7a2d29f164b50b1a14c24e1bb144d58115255815eb2da42f537c2e notice:failed@0
+09b5fe4dc8fe89cba7dad7bb7f4f79d8e3782e0ace7a222c059fde4c3fc779bf talk:be@0
+09ce67750ec5056c7f3776ba0083383498af5e682ebbd86b9bc06887a87c5b7b tabs:9@0
+09ce67750ec5056c7f3776ba0083383498af5e682ebbd86b9bc06887a87c5b7b tabs@0
+0cc64fc3f5cc1bf175d62c0e321bce8f2e6cb81f23fbe6e05c541dbbabab1819 talk:cli@2500
+0e97655e422b1ae989a8e49842b94870cda5bee75fdc1bbcc60574b918e44a70 talk:vault@0
+0f7aa4508da820a0d92d020f94d091b57c8e785e84cc3e4cdc3aead503002bbe tabs:2+3@1234
+10a81103adc825a196d00afa7cb8c77ffe41c9e2aa11077e16db9b965ad6f061 recap:web@2500
+10fa7edae880130cdcc456c2d9b031df5ff67e7982c2c6e41495c97d613bc8b9 recap:notes2@600
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@0
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@1234
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@2500
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@5000
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@600
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@0
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@1234
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@2500
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@5000
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@600
+1318664b34e150e5e2021db32823fc9a7069bbb805264039d13bfd53725dbebf talk:vault@600
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 agent:vault@1234
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 agent:vault@5000
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 recap:vault@1234
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 recap:vault@5000
+1436418d2fc4f9274107b2217eaec931e95954bdc8a73b7c440e301c47d02eb3 talk:cur@600
+18264414ea892402eb761354e737a43585973a8ee0966dc622b8fe70d8ea20cd agent:site@5000
+18264414ea892402eb761354e737a43585973a8ee0966dc622b8fe70d8ea20cd agent:site@600
+18a8d0e75d9b953894585ec639e3ec5469807f050f7ed7fe8737f1a7365c832e agent:cli:qresume@2500
+1a1bb057d4971f8f20d2b5291d3b551dfb68290200a97a2c6f7a1e9d90ad5943 notice:failed@2500
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@0
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@1234
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@2500
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@5000
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@600
+1aaea0e4243ef7a74fd51b1984ee9cd22842afb0158d467ad353b13f2f87ad9c talk:docs@2500
+1c44252852b07efe4efcaca7a490179bf9efa58171cd31d01d58ff7af5b0753d recap:fw@0
+1df74a496adad3bd51f009ce704b8f26c8dbda016c6205f7f3bbbddcb07aafd8 default@1234
+1e61cdb7465fdbff08c2a498029a0429b3f1634e83d677271d288abf85aa97d5 talk:fw@600
+1e61cdb7465fdbff08c2a498029a0429b3f1634e83d677271d288abf85aa97d5 talk:listen@600
+2043c80b95a5339faf3e243d95b99630c47f79f2d0e5ee1c945c6d09d9f90a44 default@2500
+20da7f29e40d18e07bd41bd7742d9dd246c57e5d4f2318d89e654d8e844bd8f5 agent:be@0
+20f1d809ec727675980f8e0264dd69034de9f73cb31d1fc29fefe0ae788000ae recap:fw@600
+216dda7ae1116973601ba137bc41ada356a71d1fc0f8509cf8f5203fe39de4c5 talk:cli@0
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@0
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@1234
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@2500
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@5000
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@600
+23addcbb73d71bad178077fdf904b79ddeeca3ef49f94623e4633429af76baa5 talk:be@2500
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@0
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@1234
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@2500
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@5000
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@600
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@0
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@1234
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@2500
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@5000
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@600
+24e19b7d3f2a336dda754faf633c9df03518ead261eb241b820e43173df8b32f agent:vault@600
+24e19b7d3f2a336dda754faf633c9df03518ead261eb241b820e43173df8b32f recap:vault@600
+24e35f0a6619abc5c1ca92243370b512e25b430424aae4f89db3d72cb0dca0e3 agent:notes2@0
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@0
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@1234
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@2500
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@5000
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@600
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@0
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@1234
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@2500
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@5000
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@600
+2cde59136bf3441ee1d7e55be270f457cf3075544059c8709a92ad3c5e822275 talk:web@1234
+2d3ee367f37ded151c9dee3cea8e2a42e3cf81d477fef07f7103fdbe02ff85a1 talk:ota@5000
+2da475c2e3a0b1faf2a96cb562275186621659dd6e0bcfb7a17e16168d6667c5 recap:notes2@1234
+2da475c2e3a0b1faf2a96cb562275186621659dd6e0bcfb7a17e16168d6667c5 recap:notes2@5000
+2ec771ad3d6dbd19215419a6b1b6e4481124d54594b3c8d7f4490a307dce36b1 talk:docs@600
+2f1cf95611ebd348a21a22dae0c523fd36639c5cca3a484d39864a0c487dec46 recap:cur@2500
+31bffbf67ece7b8327c7a350c90440b13ea0345f5dc1f4665ba8ccc447c9be65 recap:fw@1234
+328cbbb7b9bf0c7e6d2f587dcfcedcb08b582d3a504f449ffaa6a1474d023ef6 talk:notes2@600
+346de314b6374aa893ff1d594252ee0e3a9574e6ba42df420a02ab16b95e923a talk:cur@2500
+350da4e1975e7649b03097e8ee1d4644f80132782bcdcaf1aa4b55ce9339bae3 agent:cli@1234
+350da4e1975e7649b03097e8ee1d4644f80132782bcdcaf1aa4b55ce9339bae3 agent:cli@5000
+36044580605d4627dcdb2913d1b0895c9c178d9667b2c68fdd62f94f39a5357b agent:fw:steps6@1234
+370686f586b4758a0f1e5f92c164d6b4dd0e48f2def1f8e7b844d9729985437c talk:kilo@1234
+3803ca83c62fdbd6d14abeddf401820f30bbde57d9a4e48f0bc0a3a91d84b14b talk:docs@1234
+3b8522c47e598ca18c86c3aea7c2406af3902315e5038972ffdda8a6d73665b3 agent:ota@0
+3d1e212d1910f85074f3c66d53d2a1cabe078629f8817f77526ad9ebb638b36c recap:cur@1234
+3da469fd6b4f50d2d21f5e606870e2ab67abe6825d3c5c7165db3c49e0b5d389 tabs:9@2500
+3da469fd6b4f50d2d21f5e606870e2ab67abe6825d3c5c7165db3c49e0b5d389 tabs@2500
+3e499d02250796a4989be4a2ccf7f57e9312e1f52b084f0b2829251c38e89513 talk:web@600
+40784cc642b4902d4fc92832c0653c53c1a3d559d3e5470a55ad68096f9f8d60 tabs:9@5000
+40784cc642b4902d4fc92832c0653c53c1a3d559d3e5470a55ad68096f9f8d60 tabs@5000
+40f84152f80906895112b9e02f885d8e817cb5c6cf8d587766f1012b7f7ee4ff agent:fw@1234
+41d4647fd7bd9768855eb19c7b2a1a00af34158777fa2629e56985e456ea8d5a talk:notes2@0
+42bd2117d1f60b873e7519946b7f751e0a4f42fd3d50698be1da7317dd2e2d3b recap:ota@600
+42d2dd4748e72e8d3b300d2b89a846555a67a4f4c841f6a2e07e91b1dd8b1bdf tabs:2+3@5000
+42f6884734076fa9cb4608e59dc50679e72791052602c6c8b130e8d67ebc350c recap:web@5000
+434ea420b907c4ff0e1baed720e9c78ea767b08d1a06024324b04629fcb4c7f8 default:talk@0
+434ea420b907c4ff0e1baed720e9c78ea767b08d1a06024324b04629fcb4c7f8 default:talk@1234
+434ea420b907c4ff0e1baed720e9c78ea767b08d1a06024324b04629fcb4c7f8 default:talk@2500
+434ea420b907c4ff0e1baed720e9c78ea767b08d1a06024324b04629fcb4c7f8 default:talk@5000
+434ea420b907c4ff0e1baed720e9c78ea767b08d1a06024324b04629fcb4c7f8 default:talk@600
+4383adab07850ad89fc3c6450a067661feb699b65a9681969ec421a0a8361385 talk:cur@1234
+43f0c338b58b751579faeeb4f76d000ca2569cfd97df0d5c699e7a08a237a5ba recap:cli@0
+4438812fd869856277df50313124f2246ba22c1c2c45471b9b7129984c1fc8dd agent:fw@5000
+4586e8103c1b41a8a36508b7f972aba026792e40838bf6aefa634a3fa4e01b4a agent:cur@1234
+46eb386206a911f1732abe71c16f201baaef7ddd0a7863c0f2ee87403bbea079 agent:web@600
+4fbd4afb6d61a19588715ebcbb4afec9b8890c3ea0fa7488ae8f49f0c1b9e184 notice:updated@1234
+50aa8a6da44977ea9cbf6b2ba8268726fa5e162cbfdf280b417fa18027bfece3 talk:site@2500
+55e069603ec90568aa2a4b8de4f42fef7cd253bbaf7cf98068bc9ab5c3c77529 talk:vault@1234
+564ffacc423a01f67cd9a5452a429651ea9894bf5eebd3ab49efb0642d975797 talk:cur@0
+56a9c3a0769557a4350634e871c8e495910a54fe857edf188b6f2da41a0034a5 recap:ota@5000
+5723c876135c16aba4815be409d767ac8902225f2875e9ddfd7b3ca3a475e4be agent:fw@600
+58bbe4cc53158be8a4dfb8f2f8b423c5f54457fc907bc081bd4d017511bb2476 talk:kilo@5000
+5a02ed84a09146261069454d862f1e11fcacf39469b96c1a2a1a3437718b58d1 talk:fw@2500
+5a02ed84a09146261069454d862f1e11fcacf39469b96c1a2a1a3437718b58d1 talk:listen@2500
+5a4857d7678cd36b4633fc51e4d493ceaca9c7b20ea40182d8084e65b4d8dfa3 agent:be@600
+5a9927e7e0aa76537085e685c554e9c84f8aca285644ec8c4de838dc13bd42a8 recap:cli@1234
+5a9927e7e0aa76537085e685c554e9c84f8aca285644ec8c4de838dc13bd42a8 recap:cli@5000
+5b578b6f3088a8282db799988a665b48e0720c2302981041007fa19c11db450c agent:ota@2500
+5caeed8beab1896b3495e290ea6d775adf685b0fabca9f08851a77081eb44f62 tabs:2+3@2500
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@0
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@1234
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@2500
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@5000
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@600
+61268089dff9bc85d7d9d5ace8858f373f2bb2004494875f5b38ae342b6319c7 agent:web@1234
+64dd6af80b78830835c97cd2e25ad7d9a547834adf05eac92b1a69972154935c recap:be@2500
+66cb571031c8ec990b66ef470111527b98c4addcb46f4a2da154705231600a9d talk:ota@0
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@0
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@1234
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@2500
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@5000
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@600
+67d12bac7e76d3d49358f2fd9b7ef01fa52a57e297dcdf5a8cb5715666829396 talk:notes2@5000
+681f51cca6af960e1bdd2a6a77a2d3e4da1d3ac89bdda3437ec2b48c2c2749c6 talk:cli@5000
+696ad74bd7dbbffe0b1c0a0d62f1874111ed8193b65509b504e0dc74287b8d11 tabs:2+3@0
+69de72cb18e889e59855388b4cab1a3d66935727013a575cc2471e98ba6d313b talk:desk@5000
+6df2e3e7bc04f61290122dbb985a9ba623fd35b3bdd4f74573470cf83f18a4fe agent:fw:steps6@5000
+7120de1f7ee294cb25673f494126a25d825f05cf9e244dc155616180fab9e05e default:tab@0
+7120de1f7ee294cb25673f494126a25d825f05cf9e244dc155616180fab9e05e default:tab@1234
+7120de1f7ee294cb25673f494126a25d825f05cf9e244dc155616180fab9e05e default:tab@2500
+7120de1f7ee294cb25673f494126a25d825f05cf9e244dc155616180fab9e05e default:tab@5000
+7120de1f7ee294cb25673f494126a25d825f05cf9e244dc155616180fab9e05e default:tab@600
+7367094cd882739d9e57a6841eda384521284f27000f6483bab5dc842b6a3a33 agent:fw:steps6@600
+73758f48060ffed1b5070a0a2963347ab954ca0351a45b599d72c5dabad58b3c agent:be@5000
+73a601b18c4e3f667cf18bc65d590e80af7df5ca9c00c15b3c63731e31926131 talk:notes2@2500
+73faf82e3d639c53f1c1949fc6ac6333cfdf81e9cc5a224818c3011c403f4b70 recap:web@0
+750599b4bc6d7e5d6d08175773ba2b5d8c2f84bb117f4c4e1be23da974dc1101 notice:updated@600
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 agent:docs@0
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 agent:docs@1234
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 agent:docs@2500
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 recap:docs@0
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 recap:docs@1234
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 recap:docs@2500
+762dfba9e4cc0a052ed56f818a144e061e06441f5d5718fc9bdcefdfc6d2e3e5 default@5000
+785d5f4010e1af152ddda3286ad4a77c04de80db64ae5df4fb8e2464fdd3c9d2 agent:notes2@600
+7a96a8519f1e7c5b28f9e27d7eab343751f6e55e3923b1444a223219fc89cb08 agent:ota@1234
+7d31ec341e44719d125172ecb818d9049ee06cca5b8699b7b907891fdd3e1dc8 agent:notes2@1234
+7d31ec341e44719d125172ecb818d9049ee06cca5b8699b7b907891fdd3e1dc8 agent:notes2@5000
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@0
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@1234
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@2500
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@5000
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@600
+8128305b4921dba8ac0e67c658f1ecfb1f84ea4b97858f7418f0b4a9f9d98167 recap:web@600
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@0
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@1234
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@2500
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@5000
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@600
+83ec55ffa652c0db3f3695ca9e020907595650fc2be0ef92a619d75ec0376bb9 recap:cur@0
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba agent:desk@2500
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba agent:desk@5000
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba recap:desk@2500
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba recap:desk@5000
+8501d0e3f933c7d2c1e68bf84726a6f58704c3e8e4e7344d7e099c2639ea2ccf agent:desk@1234
+8501d0e3f933c7d2c1e68bf84726a6f58704c3e8e4e7344d7e099c2639ea2ccf recap:desk@1234
+8712206ea625d0828df65f59066f31e79cd1606f46980d9fa2fd66396690da90 talk:cli@600
+872278b2d8e491fecae35bd2c2bbf746beb555a893d51832dc294e616ad779c3 tabs:9@1234
+872278b2d8e491fecae35bd2c2bbf746beb555a893d51832dc294e616ad779c3 tabs@1234
+88cc47c384235ee3ae44a89d8fdbe925cc3626cf8f5a043c86923e348d036ac9 recap:notes2@0
+8a22012a902c08bde1b3abd94713fdf2bbe6b8ec3263ce9903c5954327c7ba33 agent:desk@0
+8a22012a902c08bde1b3abd94713fdf2bbe6b8ec3263ce9903c5954327c7ba33 recap:desk@0
+8a9d5b1f389e2567aa68e41fd6b7bfa4250edb7f269d856ac758e4c5f2fabe21 talk:cli@1234
+8c1156523f6340a7b5952a39084f2271bc7daf223b1782461ba9ddd2d525c967 recap:cli@2500
+8c1156523f6340a7b5952a39084f2271bc7daf223b1782461ba9ddd2d525c967 recap:cli@600
+8d4e28c7da959fb169279cab818c000f295d0d52b417b25d16911ffd2b0dc828 talk:ota@600
+8e0e7788a2fe1f7b8a6e3345cef0199cf97e744fc897bcc75f34d0f0de776a97 notice:updated@5000
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@0
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@1234
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@2500
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@5000
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@600
+8f86fbb951a594006a4a4756a50b61cbcf4d2b001b035ef2274628116e6a977c talk:docs@0
+90bbe8fd60de51714e27b637990234492a4bbdbac46335573d62148d35eb7767 agent:cur@5000
+9168ac824c16feba2c10ab40a00648f0514698462aca10ceba45d688b518dcce agent:cli:qresume@600
+9265ad0a8611c411a01d53fdd849896c72fe237c15d818369eb6f5c3770af033 talk:kilo@0
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@0
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@1234
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@2500
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@5000
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@600
+944cae7630fd1580bcd58676d8a94a6710cd2c9afe224b19b306abd42c7a3465 talk:kilo@600
+94cde71763cd198d9a5be80f5ceacd2cd94ddbf69328d952c239e92b7140f63b recap:ota@2500
+956a8e812acb26b055653babb552229e76c5629f03f8bca0a789b602f3c60756 talk:fw@0
+956a8e812acb26b055653babb552229e76c5629f03f8bca0a789b602f3c60756 talk:listen@0
+97a0e5635c6bd17435bead4a010c4dbac0bf024d2919e966f2edfdfc74973b71 agent:fw:steps6@0
+9922b62131986df629c9861c73abd6104695e324d2c8803b5a50029105941302 agent:fw@2500
+99e54dfaadaa81d25e85eec257f50a1c821b6dc60712da04f47066adc2624a6d agent:fw@0
+9b19af6b0594feae1e9306fa0884029f4b83ea9c9a36e7324d33a96c50780359 tabs:9@600
+9b19af6b0594feae1e9306fa0884029f4b83ea9c9a36e7324d33a96c50780359 tabs@600
+9cfb2099afd603d74105525f7b5d1e541beb7378c949cb4fdcc6995daec5be9b agent:vault@2500
+9cfb2099afd603d74105525f7b5d1e541beb7378c949cb4fdcc6995daec5be9b recap:vault@2500
+9d658ea6ee4f4cabaa448f4841d84e757a32be3274cf5e17c32192103488ef2e talk:desk@0
+a09725b66ca3d6fdf1f6c75830b6dc1c141183002ab8962e094eb59afef7d6e9 talk:site@0
+a103cb43fd60d28b515e254f6dc0d7aec1879a91c8501b15f151a5f65ca8a6b5 talk:vault@2500
+a11f43c9eb5bc23eaa3deeff5ebc3682851801eb1baa51c9bc0726f85c1a161c agent:site@0
+a11f43c9eb5bc23eaa3deeff5ebc3682851801eb1baa51c9bc0726f85c1a161c agent:site@1234
+a11f43c9eb5bc23eaa3deeff5ebc3682851801eb1baa51c9bc0726f85c1a161c agent:site@2500
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@0
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@1234
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@2500
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@5000
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@600
+a653cc8a595a00c8b82d78c761a4f923e5bb8c4eb5311d61b24b1d64616a8a36 recap:notes2@2500
+a6c2aba15e9de278b8b642685810f112fc1657ba33feb3448c44e8c53c3d19e8 agent:cur@2500
+a9395a1f21d8b8df80ab207dd59531763a47668466b9925f182ec6e389325420 talk:docs@5000
+ac8bd362a98d0db2ce5da888b5c0896232e3e0583fd6b8cea58a97e13edbf5cc agent:fw:steps6@2500
+aed656841d3436a6478eeb047d0de0d32e7b765e03484db497b7ed5bc1495346 agent:web@0
+afe2ece5b595b813db298547ba25c4c943f07edf137455204d3b6540afa3787e recap:be@0
+b0be1bb45b54035a43b57ac22394b1563d29aa68bbacd2183dc17c0436517e12 recap:be@1234
+b20cfb15b20ebe78736eef7d19165c134f5fda7af67465731329dd32a66f3919 agent:web@5000
+b30aad877da00f1ed1fade4623ca11792228e2e3bb09384db096230367255c15 talk:kilo@2500
+b5becd228bf48e3d1d151f45db09d97619e8887b790cfcf94ab067663d16735e agent:be@1234
+b650ee3c7ab984eb6da027c81b81c48603a86b6fbaad1de069aed7a958bdc929 agent:cli@2500
+b650ee3c7ab984eb6da027c81b81c48603a86b6fbaad1de069aed7a958bdc929 agent:cli@600
+b80e0fd30ee2df5b9af735c4dba24a0aa7735b4d2c13f3b5389c4ca73d7bc834 recap:web@1234
+b90636f915c8002f7f52efbd77de85ec86bec33ae2973ae68362b31d5fe63fdf talk:ota@2500
+b96ce056d6a4c97ae7e9f7b42446b83a1d7a011b8cce763a4f298fc133cbdf72 talk:desk@2500
+b983f982ab2f462e980adf242b5280809496caf96b21273a723608a4cd3a4778 talk:ota@1234
+bb2d6ee2fed5565b07d17ef15e4f1b8fb439030b86ab329121f55829a157c692 talk:site@600
+bb5404bdff3afd89df986ddcf937ea8e996ef20767d51c1ef28c1b7e3e924065 agent:be@2500
+bba666192173a5f19229df55f8f15e867cb348760c45f3bf3d5549a708f09ea1 recap:site@5000
+bba666192173a5f19229df55f8f15e867cb348760c45f3bf3d5549a708f09ea1 recap:site@600
+bbfd5ce1aa25cb3cf8b5e61a22ef291571b5c82df3c74463522bfcfc8ebbada7 recap:cur@600
+bca9494e786dcadf23ba73e223bf38c1293869f7aa085deda7fdc38f738722b0 agent:ota@600
+c0c141b261e0c1951f4fe4a55e7b57612cd84b5a0ff6abd57c1933fb4276511d recap:be@600
+c1e231e6cf98a6f283ce85933501c21d008532c70645c4fa0303e86509ff7102 talk:notes2@1234
+c31d789e5d5ad31ac188a249d13acd8057a923f37209b6ddcc81d7ee4ab9724a talk:site@5000
+c33e84dd7841f36c8963e73143073909b1a027703d3783897639776384672e8c recap:site@0
+c33e84dd7841f36c8963e73143073909b1a027703d3783897639776384672e8c recap:site@1234
+c33e84dd7841f36c8963e73143073909b1a027703d3783897639776384672e8c recap:site@2500
+c5310196e6eddf18f4da9fd08d8a7db19961fd5a61edd65dea3254ec52980245 agent:web@2500
+c7dda548920ea58d32b0fbaf8fa67dcbc89f4b7eee1cab379ddb006feec46d06 agent:notes2@2500
+cb24a813557be6baa24bb4392161ada2518f32c4d3c5e0875915e935d738275c agent:cli:qresume@1234
+cb270206ef3ebe28edf40fe227735377949b6173835be2cd1e7f08e205cbb679 recap:ota@0
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@0
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@1234
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@2500
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@5000
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@600
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@0
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@1234
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@2500
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@5000
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@600
+cf29e8dd0512217f86f03cede425b8e45c7d64c6d44a0454fff8d2ca5b8955a6 talk:be@1234
+d02e64ed8ec5e5d8c212f1aaf4946552dc43fe8f1bdd712028ab6d9161985fe7 talk:web@5000
+d2cf2c58bbf5b25e88ebbda13b3ff4d8b9f4f3bef68b782cf563aed4364d679d agent:desk@600
+d2cf2c58bbf5b25e88ebbda13b3ff4d8b9f4f3bef68b782cf563aed4364d679d recap:desk@600
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 agent:docs@5000
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 agent:docs@600
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 recap:docs@5000
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 recap:docs@600
+d4e193fb5662e614376c611a1b587575f18f8c9bf55e9866519093cadf9ab3b5 talk:be@5000
+d4f9eedc595917fa889d2679b787de30fdca6681cfe7ba6ca08b3a593b04b46d talk:web@0
+d5042314a0e49e8ef956df47e2122539d95c2a6ee116650660bf46f208f24b9c talk:vault@5000
+d5800ea7a2afc36a41de545378e2e27801fd336a9334802ee5db88fee10e8a0d tabs:2+3@600
+d7c89214a319d27805dba071bf93560f8320d03117f8ba3cef01ec5668aa62a7 talk:web@2500
+d7f170112fea32ee9846a93c3da59f01a3f0e5ad2d66466482a2cecb8f2c5db8 notice:failed@1234
+d9cfb44a04e7d53c47013f29eba8a35cf0ee694f849df2e9ec538fcfbcddd30f talk:fw@5000
+d9cfb44a04e7d53c47013f29eba8a35cf0ee694f849df2e9ec538fcfbcddd30f talk:listen@5000
+da695df934d199c1e01bb3ec50f1237b09761d04bdbd41db2d8b6f41e35cb4ce notice:updated@2500
+db581d974fe8375f72b827accf2058db9a0b9db4f145f2bc0db16d8aca746871 notice:failed@5000
+db925b7c7a9996ad40d2b9b4fc3ea4234f2d338555f566b6b6801a9506ccc7ad agent:vault@0
+db925b7c7a9996ad40d2b9b4fc3ea4234f2d338555f566b6b6801a9506ccc7ad recap:vault@0
+dc7ebe103331b11d8c8d9bee01f96efdf4e933117b03918d017b8747e8f2f41f recap:cur@5000
+dd41eeefd5a1f952b5a7bdc6769feb740b0de70fa43637117a877d199c77892a talk:desk@600
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@0
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@1234
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@2500
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@5000
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@600
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@0
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@1234
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@2500
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@5000
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@600
+e3263842426abdaaa106cc4859edf9d3e3a2e01da6f29d9c0139e22454e4d4c4 recap:be@5000
+e3e11905c32cc510f33c9fe4b3570b2bf48ae91b8599ff2412508f15dbe96717 agent:cur@0
+e4779518a514b9194eec4f8f400d414f9bffb6b70670c8a8541800946f618109 agent:cur@600
+e53e6ceee3f9f557adaf6c02658b8cefa6cc9f2ecaa2ab9297242bfb6b2e15dd agent:cli@0
+e93deb4dbeb4b67443f4992ed126c079fc7eaf6166c59feaa4834924657f33d3 default@0
+ec27955b7847d206405eb6d4e65cd794ecb9f2b593699d8b84feda2ac1fd23e8 recap:ota@1234
+ec7130edb1d09398e90d6cf5f994049c8b7d8fa5e317fb94a59b9f104dfbdc5c talk:be@600
+efd2b9ac7d10e0dd753da356b971700f0e6874260bdf3b343c8a05bbbe4cd222 recap:fw@5000
+f187e35d1de642ea4ee44168a7cf9f07a509985b5bb142acb0fbd68b2fa0f85e notice:updated@0
+f1e41f7766da1ed44cda39397e353d12b83070c783f35e61b53dcfd73fca9b74 talk:site@1234
+f382f1b2369edaf6129d3bb0deda108bf6dfcccd1ca195279cc458236cc24b53 notice:failed@600
+f4f4290eb7d344afa63a601aca23692b36e0f0395e561233cb18f5ba572d2a9c default@600
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@0
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@1234
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@2500
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@5000
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@600
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@0
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@1234
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@2500
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@5000
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@600
+f9d413eee6d7024ca700e4f5a5ea215ac2ee728e911f02c33525e01a7b68e19f talk:fw@1234
+f9d413eee6d7024ca700e4f5a5ea215ac2ee728e911f02c33525e01a7b68e19f talk:listen@1234
+fa82521fdc3ecf7639d3ac75d388101e0223c9c99926191920e1f0fb56478da6 recap:fw@2500
+fca3ff8e7e4f855af5197345bc3b045c98c134a2c01c84e8a1ef8f5cf8dbcb38 agent:cli:qresume@5000
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@0
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@1234
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@2500
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@5000
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@600
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@0
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@1234
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@2500
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@5000
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@600
+ff53e8556772e47486770e4cc4af48005e7f7d00171767e2b39974ad54d134f2 talk:desk@1234
diff --git a/devices/harness-pro/firmware/test/golden.sh b/devices/harness-pro/firmware/test/golden.sh
index f12fa0240..596c19233 100644
--- a/devices/harness-pro/firmware/test/golden.sh
+++ b/devices/harness-pro/firmware/test/golden.sh
@@ -31,7 +31,8 @@ fi
cc -std=c11 -D_DEFAULT_SOURCE -Wall -Wextra -Werror -O1 -g -DHT_FACE_PX=720 -I"$disp" -I"$fw/main" -I"$here/host_stubs" \
-o "$out/pod_render" "$here/pod_render.c" "$fw"/main/pod/*.c "$fw"/main/pod/classic/*.c "$fw"/main/pod/console/*.c "$disp/pro_canvas.c" "$disp/terminal.c" "$out/pro_fonts.c"
-screens=(agent:fw:steps6 agent:cli:qresume tabs tabs:1 tabs:mock default default:tab default:talk recent chrome chrome:talk tab:{0..5} ota:0 ota:42 ota:100 ota:restart notice:updated notice:failed)
+screens=(agent:fw:steps6 agent:cli:qresume tabs tabs:9 tabs:2+3 tabs:linkdown agent:fw:linkdown tab:empty default default:tab default:talk recent chrome chrome:talk tab:{0..5}
+ inbox inbox:ask banner:done@0 banner:done@3000 banner:done@5900 banner:failed@0 talk:listen talk:send ota:0 ota:42 ota:100 ota:restart notice:updated notice:failed)
for k in agent recap talk; do
for id in fw ota be cli web desk docs vault site cur notes2 kilo; do screens+=("$k:$id"); done
done
diff --git a/devices/harness-pro/firmware/test/golden.txt b/devices/harness-pro/firmware/test/golden.txt
index 3db1f6de4..60cea7f38 100644
--- a/devices/harness-pro/firmware/test/golden.txt
+++ b/devices/harness-pro/firmware/test/golden.txt
@@ -1,295 +1,350 @@
-01421f996fde511663404cbc819a75ea6284d892b62ccd810b776580f2ee9cf8 default:tab@1234
-035cfa82ce33fb359390fa0b03bb2a415eeee3f80a0c68b449a68c156a401964 tab:2@0
-035cfa82ce33fb359390fa0b03bb2a415eeee3f80a0c68b449a68c156a401964 tab:2@1234
-035cfa82ce33fb359390fa0b03bb2a415eeee3f80a0c68b449a68c156a401964 tab:2@2500
-035cfa82ce33fb359390fa0b03bb2a415eeee3f80a0c68b449a68c156a401964 tab:2@5000
-035cfa82ce33fb359390fa0b03bb2a415eeee3f80a0c68b449a68c156a401964 tab:2@600
-05116b02b6a53f32fa702e53bd613903b9cfff28bdad16f708fbd2cf4e95985e tab:5@2500
-08c7d7a414dc98b8f11e7cac12980bd0eaf4a25199d02b661ecfc753c32d3aa3 talk:vault@2500
-099b00fa2ef19d29a6bb3187ec83b855c11e1fae07420a922d9731af1fce278b tab:0@0
-0a8a9a82bfd22a0d4124139ba7b23556c0332caae030fe35a4ec0ac03f8a2e16 agent:ota@0
-0c462fd264d2465f5fc9f140e9864993d77a529fcaa621d303fb66b804681cf8 agent:fw:steps6@2500
-111597fe69f26396cb657a48ea47ff1b8de4b4f76cd36eee04548523b8612ea9 talk:kilo@0
-112afffb51191c0415cf23ffe7dfbb0f43e11af4cbb51aaaab0ac8c6f9fe2bda talk:site@2500
-1255a9c2161d275e30fa1e14164554dc89317b5a1bb33e0431f94f1b942a57b3 agent:web@1234
-125684b3b0f9b9274ef70ddc07581ce41ddf5fc333985dc3d93f6eb260d89b1d talk:notes2@1234
-126aa2e7730df0b11d504789bdd0999ea40845328ba4919568713d2183803784 tab:4@1234
-130390bb699c70885aba052b36c0cf13be72d1d42c30ecc6efd31504b31aa757 agent:docs@0
-130390bb699c70885aba052b36c0cf13be72d1d42c30ecc6efd31504b31aa757 agent:docs@1234
-130390bb699c70885aba052b36c0cf13be72d1d42c30ecc6efd31504b31aa757 agent:docs@2500
-130390bb699c70885aba052b36c0cf13be72d1d42c30ecc6efd31504b31aa757 recap:docs@0
-130390bb699c70885aba052b36c0cf13be72d1d42c30ecc6efd31504b31aa757 recap:docs@1234
-130390bb699c70885aba052b36c0cf13be72d1d42c30ecc6efd31504b31aa757 recap:docs@2500
-14a3e9adfe010a746fee3ac1ff8052cffede2547c217f0ae133ec0214036b9af agent:web@0
-14c75d7fcaa0134edc4cd5ed7b85f75eeb6e2c1049631de268b1da83b8ce9758 agent:be@2500
-165a0655476a1673749219705f2dd52ed7b4f16d281fcc0855f02fcd08ad7238 tab:4@5000
-168071810dc0220e317fe870f7756c1d71f89b9bb8fa9c71d3a130f256248889 recap:cli@5000
-168071810dc0220e317fe870f7756c1d71f89b9bb8fa9c71d3a130f256248889 recap:cli@600
-1698730065525b5a1a16159b63b8c6d7cb97b80bd5e09c11b08951ca8fd8c009 agent:fw:steps6@5000
-1a4f8d198d66f06c31a052880d20dfd316a59523e9724b57d2edc885185cde0b recap:web@1234
-1a6b356969eec708446a613361e13b2116c7be425c9d614ee085f9caa6c8f406 tab:0@600
-1aff44eb3218ff0c9b2af2d70d1438e5eec847d1ebf247feeb79715b6a219b36 default:talk@0
-1aff44eb3218ff0c9b2af2d70d1438e5eec847d1ebf247feeb79715b6a219b36 default:talk@1234
-1aff44eb3218ff0c9b2af2d70d1438e5eec847d1ebf247feeb79715b6a219b36 default:talk@2500
-1aff44eb3218ff0c9b2af2d70d1438e5eec847d1ebf247feeb79715b6a219b36 default:talk@5000
-1aff44eb3218ff0c9b2af2d70d1438e5eec847d1ebf247feeb79715b6a219b36 default:talk@600
-1bbc5979cdaef84301da0b56ff12027b2399091338ed2bf3dcc0824ba0906326 talk:ota@1234
-1c68724d4d7363d6a95895d8cf7c12eebbe3d4b49f2798fdb11449ed5e14e1e9 talk:cur@0
-2056e5d59e3888e8314c9df1dc27e58318e5e4156304dce0fc150bcdcf58e3fa agent:cli:qresume@2500
-21d8c60b90109c4b29f86e41b6e84af4d4ec0e8215ef50dc35d59f66fb4267c7 talk:notes2@600
-2299b8ecef3d58edf1a0f8758c77e20b27ea89050c1c9f8a024054feedd02a7c talk:cur@5000
-232e4a1a501cd1b7c390ffa781b3458f08341ad72d25324149323e6e212569d9 talk:be@1234
-25b4a0c2144224d017a62420a86391589b821ca5baa13306070265373fc34b17 notice:updated@1234
-25b4a0c2144224d017a62420a86391589b821ca5baa13306070265373fc34b17 notice:updated@5000
-2d0ada7ac5fe3fba506c1d0caaf5f8b3be139d842d16cc607761cf802165f96c tabs:mock@0
-2d36d06bbb43c9009cc335411f5cd925b0b6083d758da1bc33d03b6e6a6e49db talk:ota@5000
-30a2f1563195c56af7b7c4de6181502f630bb907ff26a468d7e6c61a43718793 recap:site@0
-30a2f1563195c56af7b7c4de6181502f630bb907ff26a468d7e6c61a43718793 recap:site@1234
-30a2f1563195c56af7b7c4de6181502f630bb907ff26a468d7e6c61a43718793 recap:site@2500
-321c92e4fd22e3422201de2112450f1d9f3a2fc60dea278fc07bbe76dde25a2b agent:cli@0
-33735f26efb796bc823623fc8a1c8282253f021bcfa86629dbcd7f1b9c06698a agent:cur@2500
-3382ca9f9082f295131dccf1e8581f00e52dfa0031f2f69a8e88085317b63310 recap:ota@1234
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d agent:kilo@0
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d agent:kilo@1234
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d agent:kilo@2500
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d agent:kilo@5000
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d agent:kilo@600
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d recap:kilo@0
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d recap:kilo@1234
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d recap:kilo@2500
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d recap:kilo@5000
-33a8ea49ffa3a67e1e988b7fc2df322c3a39927c56601bba9ff7dce24541433d recap:kilo@600
-35921a6fa7fb161a2792c210621d9a3582554793238a9bb95b0fcdfbbfc6fdbf talk:ota@2500
-35c80afd3cb07e724fd54e8b1736d0485f3947c5a36504ffaa4de31df0e1092a talk:fw@5000
-360c07f61d5fd7e200d85ead042dc9889fe507c854ec64a818149ba55328f0e0 ota:0@0
-360c07f61d5fd7e200d85ead042dc9889fe507c854ec64a818149ba55328f0e0 ota:0@1234
-360c07f61d5fd7e200d85ead042dc9889fe507c854ec64a818149ba55328f0e0 ota:0@2500
-360c07f61d5fd7e200d85ead042dc9889fe507c854ec64a818149ba55328f0e0 ota:0@5000
-360c07f61d5fd7e200d85ead042dc9889fe507c854ec64a818149ba55328f0e0 ota:0@600
-38ef0f28fdc062fcfd5c1665333cbcd2b54033df15f6e6ff2d772245502626af agent:desk@600
-38ef0f28fdc062fcfd5c1665333cbcd2b54033df15f6e6ff2d772245502626af recap:desk@600
-3992a6856c5a59b5044e4e0f5fbc32bd3c97cd641b81bcf393908dd1751ade84 talk:web@0
-3b28f8b319e9e43094100dc8784827cf8da7c55a8c9a9f473ca005db635579f3 ota:100@0
-3b28f8b319e9e43094100dc8784827cf8da7c55a8c9a9f473ca005db635579f3 ota:100@1234
-3b28f8b319e9e43094100dc8784827cf8da7c55a8c9a9f473ca005db635579f3 ota:100@2500
-3b28f8b319e9e43094100dc8784827cf8da7c55a8c9a9f473ca005db635579f3 ota:100@5000
-3b28f8b319e9e43094100dc8784827cf8da7c55a8c9a9f473ca005db635579f3 ota:100@600
-3be3a526d97e877c7fdf2f1bbc768f7b9ecdb9f156c0e1e8e9cc411e68b49185 talk:desk@600
-3c9c867e932d27f432e3703fd41bbf78a9038beefa8ca0a57f295a8f4b2ca511 recap:be@2500
-3db4b72c02fe9566c144833da8cb1602021056799e2eb6d44d74ac1428b6bb9b recap:web@5000
-3e6cce3ff48dc12366f1bda3d29e4838c6299dd331a167b1a54b54da4a69296b agent:fw:steps6@1234
-3f1dc4571d917b59e2ca10193d34fd6ea72beafbef27a35abdbed6c16a492a4b tab:5@1234
-413ea81be32fd6eccb5c3034d1f31d612cfb84573f18e6b216a15805759f7c31 ota:42@0
-413ea81be32fd6eccb5c3034d1f31d612cfb84573f18e6b216a15805759f7c31 ota:42@1234
-413ea81be32fd6eccb5c3034d1f31d612cfb84573f18e6b216a15805759f7c31 ota:42@2500
-413ea81be32fd6eccb5c3034d1f31d612cfb84573f18e6b216a15805759f7c31 ota:42@5000
-413ea81be32fd6eccb5c3034d1f31d612cfb84573f18e6b216a15805759f7c31 ota:42@600
-437229527796afc8c5e59730b189a5e342bfc48c389eb1efcc09e6708a9302c7 recent@5000
-43c750a6dc85f90889b49a06e585928a4fe54eb4a5072a038907849250e2b659 recap:be@600
-44c54fdadebfea318c475cc55dd5576749ccd7160d9e2e785d98dde6c6382fe8 talk:vault@1234
-4772882bc85d370556611fcdb9a93b564182ba037658c3ba6c8a7bad6dc1f6b3 agent:cur@600
-4783f0201a948c603a47f3581010e3b34ad5ee9344cec90ca5c8b856ee613456 talk:be@2500
-47c891830a9edb26cc1dbb86ed3396c51415e6a981722710b38795b0a0c3ab05 agent:desk@2500
-47c891830a9edb26cc1dbb86ed3396c51415e6a981722710b38795b0a0c3ab05 agent:desk@5000
-47c891830a9edb26cc1dbb86ed3396c51415e6a981722710b38795b0a0c3ab05 recap:desk@2500
-47c891830a9edb26cc1dbb86ed3396c51415e6a981722710b38795b0a0c3ab05 recap:desk@5000
-49923f768d3c7432b85ff412713b0f874dfc1f6eb96995a3df2910bf289ccfdf agent:fw@5000
-49ad3c6aa7233f747ac7b3160208b2d0a9e4305a01af1062c66466fc951ee2c2 talk:desk@0
-4a589baddc622ea45a95f69093971b67366311d91619baa8ef4388026630ac51 talk:vault@600
-4ac35e72c69bf7910c154c547ead1b94a6b64782e01710a1e3442c90c184a655 agent:fw@2500
-4b9fd18e3dad7f7e1904e4f60fce59dd183466238254e80bff08e700a09e60a2 talk:be@600
-4d2095b1040abf7276c4cbbe40bc00ecfdfe88dad7bd186b164886c9e9a99bca talk:desk@2500
-5138100a9062f3b5620c582ffe8ee024faf1c673f146ba80a3a6809aff5ae4bf agent:fw@600
-51c244c59f0d14c9e124ae1cb9ba8eeef6c291b0a85ddb636850d874e755a2b1 talk:desk@5000
-553026d6475e1c084d5ae33a7e471eadcdcaa49e907e38baa92cf3325aba928c talk:docs@0
-5618a7c5f8b58f27df4751379a53cfa35290ce8145c504e4cd57db59b9da56fd talk:web@600
-5830fa57d4dd661033b7da15a6723c21e12a5fc2473b896d9089bd4248d5a3f1 talk:site@1234
-5893563599a00c1aa7f61ac1b19310b89ed015bbd37a95d9874350ad449c283f talk:web@1234
-5a653e2bae018aee69a89c958eadeb282c1a0159b0d9042e52032364209845e7 talk:kilo@1234
-5a7a913330da93802022a233c1fafd96a09fdc8bfdcc1bb022defdccccc67b7e notice:updated@0
-5a94d3caa02cccc46d00383ce7c9876b594510bfdf14ce22e0e2657592d9966c recap:cur@600
-5b5f915f26d7fededf2015362495c828d86a81229b8185500166faeb5959060e agent:vault@2500
-5b5f915f26d7fededf2015362495c828d86a81229b8185500166faeb5959060e recap:vault@2500
-5cbd62c093b2354149fe1a7621711f3237c94b2de797c6d2d149283014dd529d talk:fw@1234
-60cc9101bf279c10711b53bd0155b4a82dd1db493b488d0318042e4f3cfd8db9 talk:ota@0
-62f0eedf78ccaf1aeceda7fcbaf53c3a7d659fafeca35e0d22296a23bc4b6e20 recap:site@5000
-62f0eedf78ccaf1aeceda7fcbaf53c3a7d659fafeca35e0d22296a23bc4b6e20 recap:site@600
-67b0bd7ed0972b382ed9e61813c2148be7bb91d40c8faa60f34650d3c4bafcdc tab:1@5000
-6aebe5b592891a211f630a37c6bb8ce166755f0e03a0bb2c70911f7296685626 agent:ota@1234
-6bee82c3c94009d3983827c0c494c43c8e6516e56c06d9f9b9195a9399030769 notice:failed@2500
-6bee82c3c94009d3983827c0c494c43c8e6516e56c06d9f9b9195a9399030769 notice:failed@600
-6c82b518f529d47fd7fb9f330acf729619b69cff91df97936d61191c90f9996d tab:1@600
-6c950cc23bee9f208c3cedd13ff939f81f608a07193d91cac7f7acf5a13061d9 tabs:1@0
-6c950cc23bee9f208c3cedd13ff939f81f608a07193d91cac7f7acf5a13061d9 tabs@0
-6e192094590c79f9f099edb36f0bcceb26c3b02fbeca87f5657bd8fcc1f14e76 recap:fw@0
-6f47c1bbd447ef7315aad9dc35bfc7e7d15f9a010b70907a99a02c6932d1aa75 tab:4@0
-6f534d80ba720229872424b3961e0ecf06f418457a4298a0bca90b79306e0271 talk:web@5000
-7270be685ebed1fb48d0a26873e975696ba5c30eaac2e3206d397c450eb949b5 tabs:1@1234
-7270be685ebed1fb48d0a26873e975696ba5c30eaac2e3206d397c450eb949b5 tabs:1@5000
-7270be685ebed1fb48d0a26873e975696ba5c30eaac2e3206d397c450eb949b5 tabs@1234
-7270be685ebed1fb48d0a26873e975696ba5c30eaac2e3206d397c450eb949b5 tabs@5000
-77d07d48cd068484759325926a141499f476773cb5c10583f8b73001dacde4db recap:cur@0
-791728aa09502eaefbb67dc78da3377de07e1ed99c289a69e2414bc103b4302b talk:notes2@5000
-7babdc6c360d9b276a0f2fba261487e5ce54c39c3e3fc09644a311af0ab732d2 talk:be@5000
-7cf31f01297d477995a69ef442a68a806d44b84aaa0da5c4aea3960df0db8d69 talk:cur@1234
-7d46fb760afc591870cc952456a0946c09e7fd50efdf44a66404ecd5a83f7b8f talk:docs@5000
-7e433290bd5a77c896f45e0de285fda8ea7e2deaa5fcf699f0ca1ebb1e0cd5ce tab:3@0
-7e433290bd5a77c896f45e0de285fda8ea7e2deaa5fcf699f0ca1ebb1e0cd5ce tab:3@1234
-7e433290bd5a77c896f45e0de285fda8ea7e2deaa5fcf699f0ca1ebb1e0cd5ce tab:3@2500
-7e433290bd5a77c896f45e0de285fda8ea7e2deaa5fcf699f0ca1ebb1e0cd5ce tab:3@5000
-7e433290bd5a77c896f45e0de285fda8ea7e2deaa5fcf699f0ca1ebb1e0cd5ce tab:3@600
-8015326263b1204b614218a81d20082a1787d79cd13d81374c5fb17695c82454 talk:vault@5000
-80e7b9cc9be81811575499a1d4cc258179d81d54a913bea7fd61b541cf87f538 agent:cur@0
-80f87d079aac9e9f00165d3b0c86e2b903e0567890d390f7d5e4d44a821894a7 agent:notes2@0
-8113713d213bb6035de92b188cbdcdf2d89b6dc4583fb6794323bae648a95136 chrome@0
-8113713d213bb6035de92b188cbdcdf2d89b6dc4583fb6794323bae648a95136 chrome@1234
-8113713d213bb6035de92b188cbdcdf2d89b6dc4583fb6794323bae648a95136 chrome@2500
-8113713d213bb6035de92b188cbdcdf2d89b6dc4583fb6794323bae648a95136 chrome@5000
-8113713d213bb6035de92b188cbdcdf2d89b6dc4583fb6794323bae648a95136 chrome@600
-828706721f6be9c4d9c11952e2644ff59d483b8be1fa150d2fcbaf90c8691967 recap:be@1234
-82d1c54a488caa586c760a19fa10fa1a540ff4a2667298adf010526bd4c247f5 recap:ota@5000
-844203151c3c850e903ccb109321020c840a1577666933e3ac4c4bb0a7ab8922 talk:cli@600
-85d0d418c1e34320c9d854f5226bdaaac1ff8d15f78034cae0106d26e5368791 talk:notes2@0
-890a15a54358002ad34c0d81be80c6f0b51b004f73208aa65d55e635a37e95b5 talk:kilo@5000
-89223ef9df38fbedd140a3d96a4e471a8883ca2a90bb14dabdf3fabb3284fe96 recap:notes2@600
-8a064df042af97f60475692b48d438907a1edc4eca1e463fdb2d71db316e8c62 talk:cli@0
-8a3c9460dcbb4f5a2a7b07e1b3dc82a33328affa97f683be6c7ec93c59762715 recap:notes2@1234
-8a3c9460dcbb4f5a2a7b07e1b3dc82a33328affa97f683be6c7ec93c59762715 recap:notes2@5000
-8b597e816b7c6edb28dd790cfc38093dc13ff762075dbea1fb872c7e1a8b3b8b talk:kilo@2500
-8d0d29991545876141e11cf3f23f5e34de0f353bf8e0462db47a113fb1e0b56e recent@0
-8f5dc3d2e5c71283bb5fc40d911864c473a71330960adfe06d2ecf3cf597cad6 agent:cur@1234
-8f7067b7439c2dec2ee4f20509a946fb197554d6f283d84b40c397957cdc13f4 tab:5@0
-8f88696c0b2a447fade8b3b9b6f8ca44e3841f683c9254979cc64a4339c3330f talk:desk@1234
-8fb7e701978c811e8907f180fe68814c1c8f95f21330490253fbf92deff5447b tabs:1@2500
-8fb7e701978c811e8907f180fe68814c1c8f95f21330490253fbf92deff5447b tabs:1@600
-8fb7e701978c811e8907f180fe68814c1c8f95f21330490253fbf92deff5447b tabs@2500
-8fb7e701978c811e8907f180fe68814c1c8f95f21330490253fbf92deff5447b tabs@600
-90ad7e3e6e1ac157cfd3667b441829d03678b0dc7cf1b3b83e3eb97628e8a787 talk:cur@2500
-92ac67ba0308f647228033d57de2cffafbb4777c4548a104ed436ffebc940f51 agent:notes2@2500
-938cec2532876f5a53958a0b51d149d854e0fe7f44a1de502912a7e72919716c agent:vault@1234
-938cec2532876f5a53958a0b51d149d854e0fe7f44a1de502912a7e72919716c agent:vault@5000
-938cec2532876f5a53958a0b51d149d854e0fe7f44a1de502912a7e72919716c recap:vault@1234
-938cec2532876f5a53958a0b51d149d854e0fe7f44a1de502912a7e72919716c recap:vault@5000
-93c4125e69f183290f91a05f2eb6284a8b8bde733a6d6a901b0d63e172747b9c agent:vault@600
-93c4125e69f183290f91a05f2eb6284a8b8bde733a6d6a901b0d63e172747b9c recap:vault@600
-940d0f86c20b26511383ab97a9fe47dccfcf1063735342e61c38acd4e09b7d34 agent:be@5000
-94f43bfbb360556404db0b480fda99753bfaea13f5a381a4304f83b7ff558c4a default@0
-9573f498919c5f224b87bf2b4a6266b3c0103903c9e0e3c205f5a270c1d4ee66 default:tab@2500
-95eed729bb388f358d1bce3d1e86e3d1e1f1d29fbd0db5e64ad2d9fa7c3fc02f tab:1@2500
-96101b2d185b6473dc92cd87d8a9053960dad974f3d2dee96267fc3cf7b731ab agent:site@5000
-96101b2d185b6473dc92cd87d8a9053960dad974f3d2dee96267fc3cf7b731ab agent:site@600
-962f2b766bb13e1fa62f9319b0abfbfb66c68b5ec9beed7e9a843b2fde563fec agent:cli:qresume@0
-97bc77d08f4c89b584b51858b176028f998393d9d34d65a81cf9b36d2664dd4e agent:fw@0
-98121f854a5d48f8abed4857eb437c796808fd14ee2453efe799951aec250ca4 talk:docs@2500
-98ccaf35180a6f8de4ff4378a0255d6bff73e32a6c67e0385b006f40ccb0314c agent:ota@2500
-9a35f65b82c2b7967df411954bc11933b98f4ddb4eb938d99c7eb0da455a25e9 talk:kilo@600
-9ffeb53e8bb7744d95f5ff547ca50417a16d95b98298bab8f13c40684012b0be recent@1234
-a0a649139d3abf0fc606f9845922a79d577a1e7cf1b7891106a20525d0c4dcbd agent:cli:qresume@5000
-a14209151039bb833e7db547158e7843a30c3f56502fcf84b02a879075ad5964 talk:cli@2500
-a28543e3c84502f98a63fa9f68eb81f93ff65f715e16d2f925b10e32b45e63e5 agent:vault@0
-a28543e3c84502f98a63fa9f68eb81f93ff65f715e16d2f925b10e32b45e63e5 recap:vault@0
-a2c14101a2da9b7306a05536795f971a60c59f662faa0e7f691e21d7871948e0 talk:cur@600
-a4e6f16c33ad69155701cb6185063f641f8b1e1242e181a0ac276286162a5c82 agent:cli:qresume@1234
-a6c206392a4b278ea3adb7944a300c10f889a8ae01811fb26e4b3e09bd7b573c recent@2500
-a860e3675a5d1773c5fa5ac6b34140227b76c904d35e7cf8fad8c93027065b96 agent:cli:qresume@600
-a897fc753054c0acae0aa5122500d9c6dc7dc2061d4ff2d4d5bcdab397a25044 talk:docs@600
-a8a8677873ece9ac001edebe8727db554718a1a5de26637a81344655d3980a11 recap:cli@0
-a8a8677873ece9ac001edebe8727db554718a1a5de26637a81344655d3980a11 recap:cli@1234
-a8a8677873ece9ac001edebe8727db554718a1a5de26637a81344655d3980a11 recap:cli@2500
-a9bdfc0f1543d1d07419f1f136fa2ba002147360107271145ceec051f04a35a0 notice:updated@2500
-a9bdfc0f1543d1d07419f1f136fa2ba002147360107271145ceec051f04a35a0 notice:updated@600
-ab67b2415441ed614c9388a61449e38a063f170462dcfbcc316570e29bcff2eb tab:0@2500
-abd6f6c38ebec8d73acc0c2bf8f03c3277ad1104a362eecd5ad1a01dbb581c77 talk:notes2@2500
-afdecec45cc02838a100fe600726bbb1d75645f66ec3bd22118574969da14c73 recap:ota@2500
-afea75383c2214c3f68a7d969b67c8f3bc0a7b22838141db4597f933ea0a251d agent:desk@1234
-afea75383c2214c3f68a7d969b67c8f3bc0a7b22838141db4597f933ea0a251d recap:desk@1234
-afef5fe5a07c2737b9e7d91c2e3790ad1f58b3340d65b5ff0aef0c6cc790b98f tab:0@1234
-b1bbb7d1bd4419f302a5390d80594997bc434fce0f961e1108203ccf6556aab6 recap:ota@0
-b45d3caa5d38962747494c20fd72a5f209571d2c061699f54802d5dc394ab6f8 talk:fw@600
-b57fc85110b33714bab70e8c8a93524b499a53d4f4c7b407602ff078aef7a276 tabs:mock@2500
-b57fc85110b33714bab70e8c8a93524b499a53d4f4c7b407602ff078aef7a276 tabs:mock@600
-ba9210c3fb428b9e223df8c9c271f1d9f27727f38d41633445ae23480a0155f3 default@1234
-ba9210c3fb428b9e223df8c9c271f1d9f27727f38d41633445ae23480a0155f3 default@5000
-bb403b2fff420b96170c68f08b74c85e33791a0cb32f3ef910412557a4480e83 recap:fw@5000
-bccc9282e4db9e006c359f8c3c28ccb5bba01efedfb027d66a1b2d48762df632 agent:web@2500
-c15dcba94f7f971f1e2a2281a53e2ea7e45b92ac21d28cb5250dfaae783aa214 talk:be@0
-c19960ef72e5be859450985750d54f8d029dcbcec5cb21d702d4722ae8129373 talk:site@0
-c2f10a4278b8bd45e1e1a22d201be0a1ab0740c7ab152500f3ef7938d3920500 talk:ota@600
-c306b2c207fb525f92f8cd35895dd4a74124fae65a6da69d796c85ddef8732b8 recap:notes2@2500
-c40791cb27452f953114566ed07c77199b0cce28cf16fdc7a423d26a3b62108b agent:web@600
-c40bf0260438ef609cbbc1b0a7e312aa93c620ae597e6b72cf12720f92ac093a recap:fw@1234
-c53ffa543d42b2a5dec8e2fedb4b0acc0e7f7c1a155a826f7d507b0aab356641 talk:vault@0
-c56862f8f28d8f2c6da1b8e7b553e5a80366bafeb73177a65d20b0ee278e7976 agent:be@1234
-c67cff600cdf431dc170327fcf44bdadc4b7bce9ed0197a01683067761fd4ae1 recap:web@600
-c6b956108fa48f7670ffb199130df17126994855cdd4b76ad2d29ce856aae48f tab:5@600
-c6e1985f296d14e64053ee4eb4e9055a284b74320c4abfdbabe8994816c4e52f tab:0@5000
-c763bccf9aaddf144e69da533ef319aeb1bad483ac2d79f26eebf6bcc7f15d0d tab:1@0
-c791d63d58dd1686f60aab69d3851a18847ac57adab31593b994501c4c6086ab talk:cli@5000
-c836186d3f6f4fc9140b113ceb7460bb217632420a2ed7e14cbacc98b4534d57 agent:site@0
-c836186d3f6f4fc9140b113ceb7460bb217632420a2ed7e14cbacc98b4534d57 agent:site@1234
-c836186d3f6f4fc9140b113ceb7460bb217632420a2ed7e14cbacc98b4534d57 agent:site@2500
-c9e114875fcd52da450e03fb1707d9cff3d09b66fe600c565bbbb75385820d65 talk:fw@2500
-cc22bede0bf0e7f325d66036b00c9cc54666b233a99f39f228470ba7c9073acd talk:site@600
-cd0e6c4aa0bcd4b42108ead916040d569f1ff623940bc65a1b30a27f8288ca30 tab:4@600
-cff054024d993337573ac3643dbb466a06e4bbefb01e160267f2d67551486dbc talk:docs@1234
-d011a3b7b9281ac1adb2770bdabf9e049771d1a8d2f2b1353e749adcfe00d0a4 agent:cur@5000
-d05fd64cc049c82875db1b6ce58c53712399df06d9b210173535e6f7e5d506fc agent:be@0
-d0d46e82c52987d29f33748af5693bb79685bab98c7fd70106746ebf782c3d44 agent:fw@1234
-d1441cfc9066cf98797017f4f8e9d7f5d94c7f1029964b0647b0631ac1df0f02 recap:ota@600
-d20942219b63b1ed4877bd325748aedc88fdd53318505c1f5a8a8eb52268ce98 talk:cli@1234
-d241fc12ad6cd31f43cf5c6ee793cf3d404956faba119d9a9c3c03493e4a4d4a default@2500
-d241fc12ad6cd31f43cf5c6ee793cf3d404956faba119d9a9c3c03493e4a4d4a default@600
-d25fbc9c831c54a42fe5b8fb9e945578809d4629ad7f32729d6e02a38ca45c6f recap:web@0
-d26c668ee456e73cc116cf9255891faf1a9507b41d03334554f1f648363c3abd agent:ota@5000
-d375d300bf5ffec29f2f7bbfe63593714c00ff4151e053eeabb6a9b8ea1ca989 agent:web@5000
-d56dd9b5291a4a1e9825b7485c5398b69170d53ef5af56137319c14ad3db4ad7 recap:be@0
-d7f370ef76688aaa1c50bdd7ccf7d7cd9c95e0ec8256913888161fda12f6385a agent:fw:steps6@0
-da0b01db1b314e5b217d8a87bc234f532af053b442f8a75c1f701dd460a6d4f1 agent:docs@5000
-da0b01db1b314e5b217d8a87bc234f532af053b442f8a75c1f701dd460a6d4f1 agent:docs@600
-da0b01db1b314e5b217d8a87bc234f532af053b442f8a75c1f701dd460a6d4f1 recap:docs@5000
-da0b01db1b314e5b217d8a87bc234f532af053b442f8a75c1f701dd460a6d4f1 recap:docs@600
-dac26f96775bd8db1e1f7dce451446fb969d84e7e5ddf64ea707214d78be1804 agent:notes2@600
-de2cd1307aed2b9f28e067d1af57f472da2b47b578251e9679b02c785d05ee9b recap:cur@5000
-e0cb2ec2e5bfab19b46399201ca3e0f6ee43d0a8434f7ee3e105d739015c5f72 recent@600
-e193af92b6d9d3a41cf92437dbcf9b6da1515aca87bc38c7185b37fd368419c1 agent:notes2@1234
-e193af92b6d9d3a41cf92437dbcf9b6da1515aca87bc38c7185b37fd368419c1 agent:notes2@5000
-e1e633a6aba418ecb3b1728625788d3a8f491c99dc7055ab2e22a8e397702c24 tab:4@2500
-e299605229d78b5c3d3125f07647ca6b9416d64ecd3cb1147604e41eea7834c1 default:tab@0
-e2fa555d1902b088f92df042e2558271a5d47b9560f9cea58e6bdf7714be76f1 recap:fw@600
-e34fafdd951821e71755edccde09b840f3007b28b94444a2584da03b58157fbe talk:web@2500
-e3649a700eb994acd196a62c13c6c175602ae26a266aafb3e6c5fade228c6659 agent:cli@1234
-e3649a700eb994acd196a62c13c6c175602ae26a266aafb3e6c5fade228c6659 agent:cli@5000
-e382364398ce8361edc9d78c37cdee5ab4057386fbac3712a9a63af586db88f3 recap:be@5000
-e494d5cc8b1b8f57d34e0c58d5c62218a9f9fa6f1ab100eb1cc9fba2a659bc41 talk:fw@0
-e4b26d5c436fbef918277e248dc284c08a3082ce1fb9dc6a5c76b30bb4f4fab6 agent:ota@600
-e531b850e58400b6d043a42207b6b2d35f8f69fb94bce9f06be85904fb82c818 default:tab@5000
-e778b4f2f5186943084936d81cf1613d9384eeaabc16ae406072e5ac4a46d1fa agent:desk@0
-e778b4f2f5186943084936d81cf1613d9384eeaabc16ae406072e5ac4a46d1fa recap:desk@0
-e7d1db1cc082fe032fcf999b399d19692116343ac59d28d52e2946861e8e1311 agent:be@600
-eadaf7d4ee920a5c04f12d0bfa0a2c986bb00bc34866befc5e26d4303248fae9 recap:fw@2500
-ecaf67474a8998935e1d88e5225fcb88cae21c60340e403c27ab767792575cb0 notice:failed@1234
-ecaf67474a8998935e1d88e5225fcb88cae21c60340e403c27ab767792575cb0 notice:failed@5000
-ecdea9e0e780c4ddd823f45596e4f7166ca132fea5d19cfea8ad7639bc6875c5 talk:site@5000
-efbaa8fe2173ed646cb38614e08e3d1eea5fcfaacd1a616910214ee35e812a98 recap:cur@2500
-f10495216e03858f40c8db490a75a0ebc27128b8c59d8a5ff64d43f958c86faa tabs:mock@1234
-f10495216e03858f40c8db490a75a0ebc27128b8c59d8a5ff64d43f958c86faa tabs:mock@5000
-f1057a8ef43146051153aa7e3b8189af1251ac55cc0ad71b384ee109c7cf4646 agent:fw:steps6@600
-f2fe6e5c50548cc3dd8b316d28d716bfdbd782c36165053450db7ed9ccd61d5d recap:notes2@0
-f33785be5c7e765cc4861d2b915b28bff994789997860068aeaf4350a459bd8f recap:cur@1234
-f36300ddc312096d575ef3192e8ed8ba63f4cc119036ca3385f322cd7682ce2a agent:cli@2500
-f36300ddc312096d575ef3192e8ed8ba63f4cc119036ca3385f322cd7682ce2a agent:cli@600
-f41da7bf975598744ddb9465fbdf8785e34f295a788f3964acd978e4cbfceeb0 default:tab@600
-f63b9fb10583b56c23b6dcfa083ffe66326899b9c2d3fdfd7963a5eb4ccef41b notice:failed@0
-f64f79ef42da08e58deae79161a7910fd3d440629148e9fd04bc644a458444fd tab:1@1234
-f9b9f3ca3d7981eec018e1e3e85be626d0e77066889c34824afc61d2e1c5efee ota:restart@0
-f9b9f3ca3d7981eec018e1e3e85be626d0e77066889c34824afc61d2e1c5efee ota:restart@1234
-f9b9f3ca3d7981eec018e1e3e85be626d0e77066889c34824afc61d2e1c5efee ota:restart@2500
-f9b9f3ca3d7981eec018e1e3e85be626d0e77066889c34824afc61d2e1c5efee ota:restart@5000
-f9b9f3ca3d7981eec018e1e3e85be626d0e77066889c34824afc61d2e1c5efee ota:restart@600
-fb1a64bfc845cf77eba633d16bc3558d111c26eb48bbd353132f52a257f7c28c recap:web@2500
-fbb9d29501eb41df1bcffae579d86341c966047aa51e77737c4257b8c706d706 chrome:talk@0
-fbb9d29501eb41df1bcffae579d86341c966047aa51e77737c4257b8c706d706 chrome:talk@1234
-fbb9d29501eb41df1bcffae579d86341c966047aa51e77737c4257b8c706d706 chrome:talk@2500
-fbb9d29501eb41df1bcffae579d86341c966047aa51e77737c4257b8c706d706 chrome:talk@5000
-fbb9d29501eb41df1bcffae579d86341c966047aa51e77737c4257b8c706d706 chrome:talk@600
-ff17a5799425e35e38d6e238aee71e1c50940be02b902d494fc4b7ce956db487 tab:5@5000
+01a50e93da85c2d3a5fb8534b26c7f0e47d353e8146f1d57e2609a0e5c8d985e agent:ota@5000
+021d849fd0f13f5c5ec9046178c2cee612a38528fb92dd711dffe6a8d34cac61 talk:cur@5000
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@0
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@1234
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@2500
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@5000
+02d319e369b7944405ba62f06bae91d4ef081e8495520f8e5d666d816b48c8fc inbox:ask@600
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@0
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@1234
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@2500
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@5000
+036909202b745942c0521b9bbfffbdf3661a4725d8f1ec87c7d97c87623f0d44 tab:5@600
+04532b3999bf93eb85a9e58bd0bf48f171d1a815b4297c5555eebc8624f8bced agent:cli:qresume@0
+06de3db308b5933e326e11d0bd848df283f59792f049b8270985f903e7ab84d2 default@600
+07eca96a7f7a2d29f164b50b1a14c24e1bb144d58115255815eb2da42f537c2e notice:failed@0
+09b5fe4dc8fe89cba7dad7bb7f4f79d8e3782e0ace7a222c059fde4c3fc779bf talk:be@0
+09ce67750ec5056c7f3776ba0083383498af5e682ebbd86b9bc06887a87c5b7b tabs:9@0
+09ce67750ec5056c7f3776ba0083383498af5e682ebbd86b9bc06887a87c5b7b tabs@0
+0cc64fc3f5cc1bf175d62c0e321bce8f2e6cb81f23fbe6e05c541dbbabab1819 talk:cli@2500
+0e97655e422b1ae989a8e49842b94870cda5bee75fdc1bbcc60574b918e44a70 talk:vault@0
+0f7aa4508da820a0d92d020f94d091b57c8e785e84cc3e4cdc3aead503002bbe tabs:2+3@1234
+10a81103adc825a196d00afa7cb8c77ffe41c9e2aa11077e16db9b965ad6f061 recap:web@2500
+10fa7edae880130cdcc456c2d9b031df5ff67e7982c2c6e41495c97d613bc8b9 recap:notes2@600
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@0
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@1234
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@2500
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@5000
+11690aaa4ca0c12417589c603f5032dfc105c750614850bb4f87d74c187f0515 ota:42@600
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@0
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@1234
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@2500
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@5000
+120c7233a85ab626e51a772133f5d6f70c56fe89f33782e3dfe7e1a069826fc7 banner:failed@0@600
+1318664b34e150e5e2021db32823fc9a7069bbb805264039d13bfd53725dbebf talk:vault@600
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 agent:vault@1234
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 agent:vault@5000
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 recap:vault@1234
+140168159285efb5318dbf51fdb0a8b3d9e3378eebf514ccd3d2e02b1ca61473 recap:vault@5000
+1436418d2fc4f9274107b2217eaec931e95954bdc8a73b7c440e301c47d02eb3 talk:cur@600
+18264414ea892402eb761354e737a43585973a8ee0966dc622b8fe70d8ea20cd agent:site@5000
+18264414ea892402eb761354e737a43585973a8ee0966dc622b8fe70d8ea20cd agent:site@600
+18a8d0e75d9b953894585ec639e3ec5469807f050f7ed7fe8737f1a7365c832e agent:cli:qresume@2500
+1a1bb057d4971f8f20d2b5291d3b551dfb68290200a97a2c6f7a1e9d90ad5943 notice:failed@2500
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@0
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@1234
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@2500
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@5000
+1a3e45b626262296929313537db3c27ff9aa8d590e81a18ce6cba4e5b104d234 tab:empty@600
+1aaea0e4243ef7a74fd51b1984ee9cd22842afb0158d467ad353b13f2f87ad9c talk:docs@2500
+1c44252852b07efe4efcaca7a490179bf9efa58171cd31d01d58ff7af5b0753d recap:fw@0
+1e61cdb7465fdbff08c2a498029a0429b3f1634e83d677271d288abf85aa97d5 talk:fw@600
+1e61cdb7465fdbff08c2a498029a0429b3f1634e83d677271d288abf85aa97d5 talk:listen@600
+20da7f29e40d18e07bd41bd7742d9dd246c57e5d4f2318d89e654d8e844bd8f5 agent:be@0
+20f1d809ec727675980f8e0264dd69034de9f73cb31d1fc29fefe0ae788000ae recap:fw@600
+216dda7ae1116973601ba137bc41ada356a71d1fc0f8509cf8f5203fe39de4c5 talk:cli@0
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@0
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@1234
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@2500
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@5000
+23978d05188acc97501b6ac661e5c70badb26c24e1b8fcf45eb79daf0f929f0e chrome:talk@600
+23addcbb73d71bad178077fdf904b79ddeeca3ef49f94623e4633429af76baa5 talk:be@2500
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@0
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@1234
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@2500
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@5000
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 agent:kilo@600
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@0
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@1234
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@2500
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@5000
+24084f4ac9fe26d4ee80774d8a23c1ec0099ef7642c0f67013acce2b4e0601d1 recap:kilo@600
+24e19b7d3f2a336dda754faf633c9df03518ead261eb241b820e43173df8b32f agent:vault@600
+24e19b7d3f2a336dda754faf633c9df03518ead261eb241b820e43173df8b32f recap:vault@600
+24e35f0a6619abc5c1ca92243370b512e25b430424aae4f89db3d72cb0dca0e3 agent:notes2@0
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@0
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@1234
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@2500
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@5000
+265ed5d199ee0cd59287d9e5737d59f624c5e277ab92865b4126c992f9511fc0 ota:100@600
+284f743b73c3ab77d804ad68698582084e8407ac267fb08128feada61e88d30d default@5000
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@0
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@1234
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@2500
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@5000
+2c2b09ce211e5c434dbd8d4de3f7b9ec4d553bbd878b5590a39bf1a888830688 chrome@600
+2cde59136bf3441ee1d7e55be270f457cf3075544059c8709a92ad3c5e822275 talk:web@1234
+2d3ee367f37ded151c9dee3cea8e2a42e3cf81d477fef07f7103fdbe02ff85a1 talk:ota@5000
+2da475c2e3a0b1faf2a96cb562275186621659dd6e0bcfb7a17e16168d6667c5 recap:notes2@1234
+2da475c2e3a0b1faf2a96cb562275186621659dd6e0bcfb7a17e16168d6667c5 recap:notes2@5000
+2ec771ad3d6dbd19215419a6b1b6e4481124d54594b3c8d7f4490a307dce36b1 talk:docs@600
+2f1cf95611ebd348a21a22dae0c523fd36639c5cca3a484d39864a0c487dec46 recap:cur@2500
+31bffbf67ece7b8327c7a350c90440b13ea0345f5dc1f4665ba8ccc447c9be65 recap:fw@1234
+328cbbb7b9bf0c7e6d2f587dcfcedcb08b582d3a504f449ffaa6a1474d023ef6 talk:notes2@600
+346de314b6374aa893ff1d594252ee0e3a9574e6ba42df420a02ab16b95e923a talk:cur@2500
+350da4e1975e7649b03097e8ee1d4644f80132782bcdcaf1aa4b55ce9339bae3 agent:cli@1234
+350da4e1975e7649b03097e8ee1d4644f80132782bcdcaf1aa4b55ce9339bae3 agent:cli@5000
+36044580605d4627dcdb2913d1b0895c9c178d9667b2c68fdd62f94f39a5357b agent:fw:steps6@1234
+370686f586b4758a0f1e5f92c164d6b4dd0e48f2def1f8e7b844d9729985437c talk:kilo@1234
+3803ca83c62fdbd6d14abeddf401820f30bbde57d9a4e48f0bc0a3a91d84b14b talk:docs@1234
+3b8522c47e598ca18c86c3aea7c2406af3902315e5038972ffdda8a6d73665b3 agent:ota@0
+3d1e212d1910f85074f3c66d53d2a1cabe078629f8817f77526ad9ebb638b36c recap:cur@1234
+3da469fd6b4f50d2d21f5e606870e2ab67abe6825d3c5c7165db3c49e0b5d389 tabs:9@2500
+3da469fd6b4f50d2d21f5e606870e2ab67abe6825d3c5c7165db3c49e0b5d389 tabs@2500
+3e499d02250796a4989be4a2ccf7f57e9312e1f52b084f0b2829251c38e89513 talk:web@600
+40784cc642b4902d4fc92832c0653c53c1a3d559d3e5470a55ad68096f9f8d60 tabs:9@5000
+40784cc642b4902d4fc92832c0653c53c1a3d559d3e5470a55ad68096f9f8d60 tabs@5000
+40f84152f80906895112b9e02f885d8e817cb5c6cf8d587766f1012b7f7ee4ff agent:fw@1234
+41d4647fd7bd9768855eb19c7b2a1a00af34158777fa2629e56985e456ea8d5a talk:notes2@0
+42bd2117d1f60b873e7519946b7f751e0a4f42fd3d50698be1da7317dd2e2d3b recap:ota@600
+42d2dd4748e72e8d3b300d2b89a846555a67a4f4c841f6a2e07e91b1dd8b1bdf tabs:2+3@5000
+42f6884734076fa9cb4608e59dc50679e72791052602c6c8b130e8d67ebc350c recap:web@5000
+4383adab07850ad89fc3c6450a067661feb699b65a9681969ec421a0a8361385 talk:cur@1234
+43f0c338b58b751579faeeb4f76d000ca2569cfd97df0d5c699e7a08a237a5ba recap:cli@0
+4438812fd869856277df50313124f2246ba22c1c2c45471b9b7129984c1fc8dd agent:fw@5000
+4586e8103c1b41a8a36508b7f972aba026792e40838bf6aefa634a3fa4e01b4a agent:cur@1234
+46eb386206a911f1732abe71c16f201baaef7ddd0a7863c0f2ee87403bbea079 agent:web@600
+47610ccc38876a7ecf90ad24c42fae53fe75fd8d9f2e0eb67cefeec1c1ef006a default:tab@0
+47610ccc38876a7ecf90ad24c42fae53fe75fd8d9f2e0eb67cefeec1c1ef006a default:tab@1234
+47610ccc38876a7ecf90ad24c42fae53fe75fd8d9f2e0eb67cefeec1c1ef006a default:tab@2500
+47610ccc38876a7ecf90ad24c42fae53fe75fd8d9f2e0eb67cefeec1c1ef006a default:tab@5000
+47610ccc38876a7ecf90ad24c42fae53fe75fd8d9f2e0eb67cefeec1c1ef006a default:tab@600
+4fbd4afb6d61a19588715ebcbb4afec9b8890c3ea0fa7488ae8f49f0c1b9e184 notice:updated@1234
+50aa8a6da44977ea9cbf6b2ba8268726fa5e162cbfdf280b417fa18027bfece3 talk:site@2500
+55e069603ec90568aa2a4b8de4f42fef7cd253bbaf7cf98068bc9ab5c3c77529 talk:vault@1234
+564ffacc423a01f67cd9a5452a429651ea9894bf5eebd3ab49efb0642d975797 talk:cur@0
+56a9c3a0769557a4350634e871c8e495910a54fe857edf188b6f2da41a0034a5 recap:ota@5000
+5723c876135c16aba4815be409d767ac8902225f2875e9ddfd7b3ca3a475e4be agent:fw@600
+58bbe4cc53158be8a4dfb8f2f8b423c5f54457fc907bc081bd4d017511bb2476 talk:kilo@5000
+5a02ed84a09146261069454d862f1e11fcacf39469b96c1a2a1a3437718b58d1 talk:fw@2500
+5a02ed84a09146261069454d862f1e11fcacf39469b96c1a2a1a3437718b58d1 talk:listen@2500
+5a4857d7678cd36b4633fc51e4d493ceaca9c7b20ea40182d8084e65b4d8dfa3 agent:be@600
+5a9927e7e0aa76537085e685c554e9c84f8aca285644ec8c4de838dc13bd42a8 recap:cli@1234
+5a9927e7e0aa76537085e685c554e9c84f8aca285644ec8c4de838dc13bd42a8 recap:cli@5000
+5b578b6f3088a8282db799988a665b48e0720c2302981041007fa19c11db450c agent:ota@2500
+5caeed8beab1896b3495e290ea6d775adf685b0fabca9f08851a77081eb44f62 tabs:2+3@2500
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@0
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@1234
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@2500
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@5000
+604603998414e6ab62a48f85d679e9ece6a301df77a68b81ebeda275c90c0101 tab:3@600
+61268089dff9bc85d7d9d5ace8858f373f2bb2004494875f5b38ae342b6319c7 agent:web@1234
+64dd6af80b78830835c97cd2e25ad7d9a547834adf05eac92b1a69972154935c recap:be@2500
+66cb571031c8ec990b66ef470111527b98c4addcb46f4a2da154705231600a9d talk:ota@0
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@0
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@1234
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@2500
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@5000
+67af91496e1167018286b7c396118fa029430f04538f5452a29c051d8f6ddafd ota:restart@600
+67d12bac7e76d3d49358f2fd9b7ef01fa52a57e297dcdf5a8cb5715666829396 talk:notes2@5000
+681f51cca6af960e1bdd2a6a77a2d3e4da1d3ac89bdda3437ec2b48c2c2749c6 talk:cli@5000
+696ad74bd7dbbffe0b1c0a0d62f1874111ed8193b65509b504e0dc74287b8d11 tabs:2+3@0
+69de72cb18e889e59855388b4cab1a3d66935727013a575cc2471e98ba6d313b talk:desk@5000
+6df2e3e7bc04f61290122dbb985a9ba623fd35b3bdd4f74573470cf83f18a4fe agent:fw:steps6@5000
+7367094cd882739d9e57a6841eda384521284f27000f6483bab5dc842b6a3a33 agent:fw:steps6@600
+73758f48060ffed1b5070a0a2963347ab954ca0351a45b599d72c5dabad58b3c agent:be@5000
+73a601b18c4e3f667cf18bc65d590e80af7df5ca9c00c15b3c63731e31926131 talk:notes2@2500
+73faf82e3d639c53f1c1949fc6ac6333cfdf81e9cc5a224818c3011c403f4b70 recap:web@0
+750599b4bc6d7e5d6d08175773ba2b5d8c2f84bb117f4c4e1be23da974dc1101 notice:updated@600
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 agent:docs@0
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 agent:docs@1234
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 agent:docs@2500
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 recap:docs@0
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 recap:docs@1234
+751930ea60ceaa103fb7479cda1ba5950c581148871f254b00a1c05495691d77 recap:docs@2500
+785d5f4010e1af152ddda3286ad4a77c04de80db64ae5df4fb8e2464fdd3c9d2 agent:notes2@600
+7a96a8519f1e7c5b28f9e27d7eab343751f6e55e3923b1444a223219fc89cb08 agent:ota@1234
+7d31ec341e44719d125172ecb818d9049ee06cca5b8699b7b907891fdd3e1dc8 agent:notes2@1234
+7d31ec341e44719d125172ecb818d9049ee06cca5b8699b7b907891fdd3e1dc8 agent:notes2@5000
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@0
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@1234
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@2500
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@5000
+7ea1994187efe1c05476e776464000b2828f86c3c3be2283a1257c3fce07ade9 ota:0@600
+8128305b4921dba8ac0e67c658f1ecfb1f84ea4b97858f7418f0b4a9f9d98167 recap:web@600
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@0
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@1234
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@2500
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@5000
+8370bc197c1cb9806990fc6c192bc274ddab41b73077db7b27447a48a2f4022a inbox@600
+83ec55ffa652c0db3f3695ca9e020907595650fc2be0ef92a619d75ec0376bb9 recap:cur@0
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba agent:desk@2500
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba agent:desk@5000
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba recap:desk@2500
+8486bebec31870a63ad1a33f62b75f0334ac864b088fab5f8ecab312fce000ba recap:desk@5000
+8501d0e3f933c7d2c1e68bf84726a6f58704c3e8e4e7344d7e099c2639ea2ccf agent:desk@1234
+8501d0e3f933c7d2c1e68bf84726a6f58704c3e8e4e7344d7e099c2639ea2ccf recap:desk@1234
+8712206ea625d0828df65f59066f31e79cd1606f46980d9fa2fd66396690da90 talk:cli@600
+872278b2d8e491fecae35bd2c2bbf746beb555a893d51832dc294e616ad779c3 tabs:9@1234
+872278b2d8e491fecae35bd2c2bbf746beb555a893d51832dc294e616ad779c3 tabs@1234
+88cc47c384235ee3ae44a89d8fdbe925cc3626cf8f5a043c86923e348d036ac9 recap:notes2@0
+8a22012a902c08bde1b3abd94713fdf2bbe6b8ec3263ce9903c5954327c7ba33 agent:desk@0
+8a22012a902c08bde1b3abd94713fdf2bbe6b8ec3263ce9903c5954327c7ba33 recap:desk@0
+8a9d5b1f389e2567aa68e41fd6b7bfa4250edb7f269d856ac758e4c5f2fabe21 talk:cli@1234
+8c1156523f6340a7b5952a39084f2271bc7daf223b1782461ba9ddd2d525c967 recap:cli@2500
+8c1156523f6340a7b5952a39084f2271bc7daf223b1782461ba9ddd2d525c967 recap:cli@600
+8d4e28c7da959fb169279cab818c000f295d0d52b417b25d16911ffd2b0dc828 talk:ota@600
+8e0e7788a2fe1f7b8a6e3345cef0199cf97e744fc897bcc75f34d0f0de776a97 notice:updated@5000
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@0
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@1234
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@2500
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@5000
+8f774683269ed26ae91642b0cc51687d3a6f1919b6e3da40da06f033d4aa9c56 banner:done@3000@600
+8f86fbb951a594006a4a4756a50b61cbcf4d2b001b035ef2274628116e6a977c talk:docs@0
+8fedc69858334d75cbd2fbe35410add9468917904494c534dcb69b623afd86aa default@2500
+90bbe8fd60de51714e27b637990234492a4bbdbac46335573d62148d35eb7767 agent:cur@5000
+9168ac824c16feba2c10ab40a00648f0514698462aca10ceba45d688b518dcce agent:cli:qresume@600
+9265ad0a8611c411a01d53fdd849896c72fe237c15d818369eb6f5c3770af033 talk:kilo@0
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@0
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@1234
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@2500
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@5000
+937094f39bbf172b9590651ab90b007b2c02ade7eafb5e3e72e18ec3a7266759 banner:done@0@600
+944cae7630fd1580bcd58676d8a94a6710cd2c9afe224b19b306abd42c7a3465 talk:kilo@600
+94cde71763cd198d9a5be80f5ceacd2cd94ddbf69328d952c239e92b7140f63b recap:ota@2500
+956a8e812acb26b055653babb552229e76c5629f03f8bca0a789b602f3c60756 talk:fw@0
+956a8e812acb26b055653babb552229e76c5629f03f8bca0a789b602f3c60756 talk:listen@0
+97a0e5635c6bd17435bead4a010c4dbac0bf024d2919e966f2edfdfc74973b71 agent:fw:steps6@0
+9922b62131986df629c9861c73abd6104695e324d2c8803b5a50029105941302 agent:fw@2500
+99e54dfaadaa81d25e85eec257f50a1c821b6dc60712da04f47066adc2624a6d agent:fw@0
+9b19af6b0594feae1e9306fa0884029f4b83ea9c9a36e7324d33a96c50780359 tabs:9@600
+9b19af6b0594feae1e9306fa0884029f4b83ea9c9a36e7324d33a96c50780359 tabs@600
+9cfb2099afd603d74105525f7b5d1e541beb7378c949cb4fdcc6995daec5be9b agent:vault@2500
+9cfb2099afd603d74105525f7b5d1e541beb7378c949cb4fdcc6995daec5be9b recap:vault@2500
+9d658ea6ee4f4cabaa448f4841d84e757a32be3274cf5e17c32192103488ef2e talk:desk@0
+a09725b66ca3d6fdf1f6c75830b6dc1c141183002ab8962e094eb59afef7d6e9 talk:site@0
+a103cb43fd60d28b515e254f6dc0d7aec1879a91c8501b15f151a5f65ca8a6b5 talk:vault@2500
+a11f43c9eb5bc23eaa3deeff5ebc3682851801eb1baa51c9bc0726f85c1a161c agent:site@0
+a11f43c9eb5bc23eaa3deeff5ebc3682851801eb1baa51c9bc0726f85c1a161c agent:site@1234
+a11f43c9eb5bc23eaa3deeff5ebc3682851801eb1baa51c9bc0726f85c1a161c agent:site@2500
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@0
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@1234
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@2500
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@5000
+a4ea464195d95dca17d8ae2d4a29a000f1931257fb711ee25341345f4366f6bc tab:1@600
+a653cc8a595a00c8b82d78c761a4f923e5bb8c4eb5311d61b24b1d64616a8a36 recap:notes2@2500
+a6c2aba15e9de278b8b642685810f112fc1657ba33feb3448c44e8c53c3d19e8 agent:cur@2500
+a9395a1f21d8b8df80ab207dd59531763a47668466b9925f182ec6e389325420 talk:docs@5000
+ac8bd362a98d0db2ce5da888b5c0896232e3e0583fd6b8cea58a97e13edbf5cc agent:fw:steps6@2500
+aed656841d3436a6478eeb047d0de0d32e7b765e03484db497b7ed5bc1495346 agent:web@0
+afe2ece5b595b813db298547ba25c4c943f07edf137455204d3b6540afa3787e recap:be@0
+b0be1bb45b54035a43b57ac22394b1563d29aa68bbacd2183dc17c0436517e12 recap:be@1234
+b20cfb15b20ebe78736eef7d19165c134f5fda7af67465731329dd32a66f3919 agent:web@5000
+b30aad877da00f1ed1fade4623ca11792228e2e3bb09384db096230367255c15 talk:kilo@2500
+b5becd228bf48e3d1d151f45db09d97619e8887b790cfcf94ab067663d16735e agent:be@1234
+b64b55462ffffb5eecf9c685e8453413770a8310929dfc8c28abb729677e5db9 default@1234
+b650ee3c7ab984eb6da027c81b81c48603a86b6fbaad1de069aed7a958bdc929 agent:cli@2500
+b650ee3c7ab984eb6da027c81b81c48603a86b6fbaad1de069aed7a958bdc929 agent:cli@600
+b80e0fd30ee2df5b9af735c4dba24a0aa7735b4d2c13f3b5389c4ca73d7bc834 recap:web@1234
+b90636f915c8002f7f52efbd77de85ec86bec33ae2973ae68362b31d5fe63fdf talk:ota@2500
+b96ce056d6a4c97ae7e9f7b42446b83a1d7a011b8cce763a4f298fc133cbdf72 talk:desk@2500
+b983f982ab2f462e980adf242b5280809496caf96b21273a723608a4cd3a4778 talk:ota@1234
+bb2d6ee2fed5565b07d17ef15e4f1b8fb439030b86ab329121f55829a157c692 talk:site@600
+bb5404bdff3afd89df986ddcf937ea8e996ef20767d51c1ef28c1b7e3e924065 agent:be@2500
+bba666192173a5f19229df55f8f15e867cb348760c45f3bf3d5549a708f09ea1 recap:site@5000
+bba666192173a5f19229df55f8f15e867cb348760c45f3bf3d5549a708f09ea1 recap:site@600
+bbfd5ce1aa25cb3cf8b5e61a22ef291571b5c82df3c74463522bfcfc8ebbada7 recap:cur@600
+bca9494e786dcadf23ba73e223bf38c1293869f7aa085deda7fdc38f738722b0 agent:ota@600
+c0c141b261e0c1951f4fe4a55e7b57612cd84b5a0ff6abd57c1933fb4276511d recap:be@600
+c1e231e6cf98a6f283ce85933501c21d008532c70645c4fa0303e86509ff7102 talk:notes2@1234
+c31d789e5d5ad31ac188a249d13acd8057a923f37209b6ddcc81d7ee4ab9724a talk:site@5000
+c33e84dd7841f36c8963e73143073909b1a027703d3783897639776384672e8c recap:site@0
+c33e84dd7841f36c8963e73143073909b1a027703d3783897639776384672e8c recap:site@1234
+c33e84dd7841f36c8963e73143073909b1a027703d3783897639776384672e8c recap:site@2500
+c5310196e6eddf18f4da9fd08d8a7db19961fd5a61edd65dea3254ec52980245 agent:web@2500
+c7dda548920ea58d32b0fbaf8fa67dcbc89f4b7eee1cab379ddb006feec46d06 agent:notes2@2500
+cb24a813557be6baa24bb4392161ada2518f32c4d3c5e0875915e935d738275c agent:cli:qresume@1234
+cb270206ef3ebe28edf40fe227735377949b6173835be2cd1e7f08e205cbb679 recap:ota@0
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@0
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@1234
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@2500
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@5000
+cbd652a8dcceb40c9efdcfc53219b48c12b9e7fbf63e1ba59f7a2e1b2f939711 tab:4@600
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@0
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@1234
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@2500
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@5000
+cdae6810fbf295ff6a49c30895f94d357b1db99040bc3e166c515dea53ec9ace banner:done@5900@600
+cf29e8dd0512217f86f03cede425b8e45c7d64c6d44a0454fff8d2ca5b8955a6 talk:be@1234
+d02e64ed8ec5e5d8c212f1aaf4946552dc43fe8f1bdd712028ab6d9161985fe7 talk:web@5000
+d2cf2c58bbf5b25e88ebbda13b3ff4d8b9f4f3bef68b782cf563aed4364d679d agent:desk@600
+d2cf2c58bbf5b25e88ebbda13b3ff4d8b9f4f3bef68b782cf563aed4364d679d recap:desk@600
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 agent:docs@5000
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 agent:docs@600
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 recap:docs@5000
+d2d4a9331f69bc86e6a7d0799270110ce7962b9f4a967666ea53ccd552870560 recap:docs@600
+d4e193fb5662e614376c611a1b587575f18f8c9bf55e9866519093cadf9ab3b5 talk:be@5000
+d4f9eedc595917fa889d2679b787de30fdca6681cfe7ba6ca08b3a593b04b46d talk:web@0
+d5042314a0e49e8ef956df47e2122539d95c2a6ee116650660bf46f208f24b9c talk:vault@5000
+d568d14ae0c365b72a839798a294b048da0871c51cd0e4737eb672e7eb1bdc94 default@0
+d5800ea7a2afc36a41de545378e2e27801fd336a9334802ee5db88fee10e8a0d tabs:2+3@600
+d7c89214a319d27805dba071bf93560f8320d03117f8ba3cef01ec5668aa62a7 talk:web@2500
+d7f170112fea32ee9846a93c3da59f01a3f0e5ad2d66466482a2cecb8f2c5db8 notice:failed@1234
+d9cfb44a04e7d53c47013f29eba8a35cf0ee694f849df2e9ec538fcfbcddd30f talk:fw@5000
+d9cfb44a04e7d53c47013f29eba8a35cf0ee694f849df2e9ec538fcfbcddd30f talk:listen@5000
+da695df934d199c1e01bb3ec50f1237b09761d04bdbd41db2d8b6f41e35cb4ce notice:updated@2500
+db581d974fe8375f72b827accf2058db9a0b9db4f145f2bc0db16d8aca746871 notice:failed@5000
+db925b7c7a9996ad40d2b9b4fc3ea4234f2d338555f566b6b6801a9506ccc7ad agent:vault@0
+db925b7c7a9996ad40d2b9b4fc3ea4234f2d338555f566b6b6801a9506ccc7ad recap:vault@0
+dc7ebe103331b11d8c8d9bee01f96efdf4e933117b03918d017b8747e8f2f41f recap:cur@5000
+dd41eeefd5a1f952b5a7bdc6769feb740b0de70fa43637117a877d199c77892a talk:desk@600
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@0
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@1234
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@2500
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@5000
+e0e84cdcc3c3032561f598e0e68af548b489a7f708853b5ca803e2ca198b30ec tab:2@600
+e11e44ef16c033d0abb42a50aecd0b94ad64d679d775c69d7b0fa35fd1660db4 default:talk@0
+e11e44ef16c033d0abb42a50aecd0b94ad64d679d775c69d7b0fa35fd1660db4 default:talk@1234
+e11e44ef16c033d0abb42a50aecd0b94ad64d679d775c69d7b0fa35fd1660db4 default:talk@2500
+e11e44ef16c033d0abb42a50aecd0b94ad64d679d775c69d7b0fa35fd1660db4 default:talk@5000
+e11e44ef16c033d0abb42a50aecd0b94ad64d679d775c69d7b0fa35fd1660db4 default:talk@600
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@0
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@1234
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@2500
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@5000
+e181c1b0681a14d179b90f21fa6b55c3dcd0db02f8e03bd69f97f2145bf6e5b4 recent@600
+e3263842426abdaaa106cc4859edf9d3e3a2e01da6f29d9c0139e22454e4d4c4 recap:be@5000
+e3e11905c32cc510f33c9fe4b3570b2bf48ae91b8599ff2412508f15dbe96717 agent:cur@0
+e4779518a514b9194eec4f8f400d414f9bffb6b70670c8a8541800946f618109 agent:cur@600
+e53e6ceee3f9f557adaf6c02658b8cefa6cc9f2ecaa2ab9297242bfb6b2e15dd agent:cli@0
+ec27955b7847d206405eb6d4e65cd794ecb9f2b593699d8b84feda2ac1fd23e8 recap:ota@1234
+ec7130edb1d09398e90d6cf5f994049c8b7d8fa5e317fb94a59b9f104dfbdc5c talk:be@600
+efd2b9ac7d10e0dd753da356b971700f0e6874260bdf3b343c8a05bbbe4cd222 recap:fw@5000
+f187e35d1de642ea4ee44168a7cf9f07a509985b5bb142acb0fbd68b2fa0f85e notice:updated@0
+f1e41f7766da1ed44cda39397e353d12b83070c783f35e61b53dcfd73fca9b74 talk:site@1234
+f382f1b2369edaf6129d3bb0deda108bf6dfcccd1ca195279cc458236cc24b53 notice:failed@600
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@0
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@1234
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@2500
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@5000
+f82665b5113adc6d4ae82ba04411d0b67e817f6b7d1b1785cbe2f3540b24543d tab:0@600
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@0
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@1234
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@2500
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@5000
+f89068c3eae6ae267d63f25a5418cc8e1595fd8567e383aeb16b8625828f7c68 talk:send@600
+f9d413eee6d7024ca700e4f5a5ea215ac2ee728e911f02c33525e01a7b68e19f talk:fw@1234
+f9d413eee6d7024ca700e4f5a5ea215ac2ee728e911f02c33525e01a7b68e19f talk:listen@1234
+fa82521fdc3ecf7639d3ac75d388101e0223c9c99926191920e1f0fb56478da6 recap:fw@2500
+fca3ff8e7e4f855af5197345bc3b045c98c134a2c01c84e8a1ef8f5cf8dbcb38 agent:cli:qresume@5000
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@0
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@1234
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@2500
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@5000
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc agent:fw:linkdown@600
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@0
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@1234
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@2500
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@5000
+fedc2319f0f4f88513b871cd933784ab1246f7152508e71f5aae73920c3d5afc tabs:linkdown@600
+ff53e8556772e47486770e4cc4af48005e7f7d00171767e2b39974ad54d134f2 talk:desk@1234
diff --git a/devices/harness-pro/firmware/test/pod_render.c b/devices/harness-pro/firmware/test/pod_render.c
index 2ebb5d64e..bb4b6f333 100644
--- a/devices/harness-pro/firmware/test/pod_render.c
+++ b/devices/harness-pro/firmware/test/pod_render.c
@@ -1,13 +1,14 @@
// Dev tool (not run by run.sh): renders one Pod screen of a fixed demo model to a 720 x 720 PPM.
// Usage: pod_render <screen> <out.ppm> [now_ms] pod_render.py builds it and converts the PPMs to PNG.
-// screens: tabs[:<rows scrolled>[+<more tabs>][@<px offset: mid-drag>] | :mock] (the album grid; mock = the mockup's six covers, one empty), default[:tab|:talk] (default marks), recent, chrome[:talk] (the status bar and transport alone), tab:<n>, agent:<id>, recap:<id>, talk:<id> (ids: fw ota be cli web desk docs vault
-// site cur notes2 kilo). ota:<pct>|ota:restart (the update screen), notice:updated|notice:failed (the Tabs screen with that pill). inbox; and ":bell" (unread entries: the bell in the status bar) or ":banner" (the notification banner too) on any
+// screens: tabs[:<rows scrolled>[+<more tabs>][@<px offset: mid-drag>] | :mock] (the album grid; mock = the mockup's six covers, one empty), default[:tab|:talk] (default marks), recent, chrome[:talk] (the bar and the Talk transport alone: Classic's, where chrome:talk is the disabled button; or the Console's bar and hints), tab:<n>, agent:<id>, recap:<id>, talk:<id> (ids: fw ota be cli web desk docs vault
+// site cur notes2 kilo). ota:<pct>|ota:restart (the update screen), notice:updated|notice:failed (the Tabs screen with that pill). inbox[:ask] (Classic: entries only, or the asking agent's row first), banner:done|failed[@<ms after shown>] (Classic banner over Tabs; --now is ignored), tab:empty, tabs:9 (nine tabs: two pages), talk:listen|send, tabs:linkdown (Connection lost); and ":bell" (unread entries: the bell in the status bar) or ":banner" (the notification banner too) on any
// other screen, e.g. tabs:bell, tab:1:bell, agent:fw:banner, recap:desk:banner. The demo is the HTML mockup's (the Pod mockup): the same agents, tabs and times.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include "pod/classic/ci.h"
#include "pod/console/cs.h"
#include "pod/pod_view.h"
#include "pro_canvas.h"
@@ -295,9 +296,13 @@ int main(int argc, char **argv)
int ota_pct = -1; // ota:<pct> | ota:restart (the update screen, the mockup's 0.1.2 -> 0.1.3); restart is -2
if (argc < 3) { fprintf(stderr, "usage: pod_render [--spec out.json] [--skin console|classic] <screen> <out.ppm> [now_ms]\n"); return 2; }
const char *screen = argv[1];
+ if (!strcmp(screen, "talk:listen")) screen = "talk:fw"; // Classic Talk, listening / sending (talk:<id>[:send] for any agent)
+ else if (!strcmp(screen, "talk:send")) screen = "talk:fw:send";
bool timing = !strncmp(screen, "time:", 5); // time:<screen>: rasterise the screen 50 times, print the mean us per full frame
if (timing) screen += 5;
uint32_t now = argc > 3 ? (uint32_t)strtoul(argv[3], NULL, 10) : T0;
+ const bool ban_screen = !strncmp(screen, "banner:", 7); // banner:done|failed[@ms]: the banner ms after it showed (shown at T0), over Tabs
+ if (ban_screen && strchr(screen, '@')) now = T0 + (uint32_t)atoi(strchr(screen, '@') + 1);
demo();
classic_fixture(screen);
N.skin = skin;
@@ -310,7 +315,11 @@ int main(int argc, char **argv)
pod_model_unread_add(&M, "ota", "dial-ota", "Built and flashed the dial with the new face. The OTA channel is untouched.", 301, T0 - 180000u);
pod_model_unread_add(&M, "be", "backend", "Fixed the cable resync. Tests pass on the host and the device, and the frame time is back under 45 ms.", 134, T0 - 2000u);
}
+ if (ban_screen && !strncmp(screen + 7, "failed", 6)) ((pod_unread_t *)pod_model_unread_find(&M, "be"))->kind = POD_UNREAD_FAILED;
+ if (inbox && skin == POD_SKIN_CLASSIC && !strstr(screen, ":ask")) pod_model_question_close(&M, "cli"); // inbox: entries only; inbox:ask: the asking agent's amber row first
if (inbox) pod_nav_act(&N, &M, POD_A_INBOX, 0, T0);
+ else if (ban_screen) { // the Tabs screen under the banner
+ } else if (!strcmp(screen, "tabs:9")) more_tabs(3); // nine tabs: more than one page
else if (!strncmp(screen, "tabs", 4)) { // tabs, or tabs:<n>: the Cover Flow with cover n (0 = Recent) chosen
if (screen[4] == ':' && !strcmp(screen + 5, "mock")) mock_tabs();
else if (screen[4] == ':') {
@@ -359,6 +368,14 @@ int main(int argc, char **argv)
uint8_t cnt[1] = {(uint8_t)n};
pod_model_swarms(&M, sw, &ids, cnt, 1, "p", tl, n);
pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, T0);
+ } else if (!strcmp(screen, "tab:empty")) { // a tab with no panes
+ static const uint8_t none[1] = {0};
+ cable_swarm_t sw[1];
+ memset(sw, 0, sizeof sw);
+ snprintf(sw[0].id, SWARM_ID_MAX, "n0");
+ snprintf(sw[0].name, CABLE_NAME_MAX, "New Swarm");
+ pod_model_swarms(&M, sw, NULL, none, 1, "n0", NULL, 0);
+ pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, T0);
} else if (!strncmp(screen, "tab:", 4)) {
pod_nav_act(&N, &M, POD_A_OPEN_TAB, atoi(screen + 4), T0);
} else if (!strncmp(screen, "agent:", 6) || !strncmp(screen, "recap:", 6) || !strncmp(screen, "talk:", 5)) {
@@ -390,8 +407,9 @@ int main(int argc, char **argv)
fprintf(stderr, "unknown screen: %s\n", screen);
return 2;
}
- ht_scene_clear(&S, ht_rgb(0xffffff));
+ ht_scene_clear(&S, ht_rgb(skin == POD_SKIN_CONSOLE ? 0xffffffu : 0xf6f6f0u)); // Classic ground (CI_GROUND)
F.scene = &S;
+ if (strstr(screen, "linkdown")) pod_model_link(&M, false); // e.g. tabs:linkdown
F.banner = banner;
F.mic_level = strstr(screen, "quiet") ? 0 : 3;
if (ota_pct != -1) {
@@ -414,22 +432,28 @@ int main(int argc, char **argv)
cs_badge(&S, 520, 96, "cursor"); cs_badge(&S, 560, 96, "kilo");
cs_working_mark(&S, 28, 140, now);
cs_logo(&S, 100, 130, 36, "claude"); cs_logo(&S, 150, 130, 44, "codex");
- } else if (!strncmp(screen, "chrome", 6)) { // the status bar and the transport alone: chrome or chrome:talk
- pod_status(&F, "Firmware", true, 0);
- pod_transport(&F, strstr(screen, "talk") != NULL);
+ } else if (!strncmp(screen, "chrome", 6)) { // Classic's bar (back label, title, bell) and the Talk transport alone: chrome or chrome:talk
+ ci_bar(&F, "Firmware", "Tabs", 3, true);
+ ci_talk(&F, strstr(screen, "talk") == NULL);
} else {
pod_render(&F, &N, &M, now);
}
if (banner) { // the glue draws it after pod_render, and only while the entry is unread (pod_glue.c)
const pod_unread_t *ban = pod_model_unread_find(&M, "be");
if (ban && skin == POD_SKIN_CONSOLE) cs_toast(&F, &M, ban, now);
- else if (ban) pod_banner(&F, &M, ban, now);
+ else if (ban) pod_banner(&F, &M, ban, T0, now); // shown at T0: --now T0+3000 is the half-way frame
}
if (notice) { // the glue's pill (pod_glue.c pod_ui_render), repeated here: this tool does not link the glue
const char *text = notice_text;
- int w = ht_pro_width(&ht_pro_24, text), pw = w + 40, ny = POD_TRANSPORT_Y - 8 - 40;
- ht_pro_rect(&S, (POD_W - pw) / 2, ny, pw, 40, 20, ht_rgb(notice_bad ? 0xb3261e : 0x111111));
- ht_pro_text(&S, (POD_W - w) / 2, ny + 7, w, &ht_pro_24, ht_rgb(0xffffff), text);
+ const bool classic = skin != POD_SKIN_CONSOLE;
+ const ht_pro_font_t *font = classic ? &ci_rg_24 : &ht_pro_24;
+ int w = ht_pro_width(font, text);
+ if (w > (classic ? 580 : 600)) w = classic ? 580 : 600;
+ int pw = w + (classic ? 24 : 40), ny = (classic ? POD_CLASSIC_TRANSPORT_Y : POD_TRANSPORT_Y) - 8 - 40;
+ const uint16_t bg = ht_rgb(notice_bad ? 0xb3261e : classic ? 0x25372f : 0x111111);
+ if (classic) ht_pro_rect_aa(&S, (POD_W - pw) / 2, ny, pw, 40, 7, bg);
+ else ht_pro_rect(&S, (POD_W - pw) / 2, ny, pw, 40, 20, bg);
+ ht_pro_text(&S, (POD_W - w) / 2, ny + (classic ? (40 - font->height) / 2 : 7), w, font, ht_rgb(0xffffff), text);
}
if (spec) write_spec(spec, screen);
static uint16_t px[720 * 720];
@@ -440,12 +464,12 @@ int main(int argc, char **argv)
double build = 0, raster = 0;
for (int i = 0; i < REPS; i++) {
clock_gettime(CLOCK_MONOTONIC, &a);
- ht_scene_clear(&S, ht_rgb(0xffffff));
+ ht_scene_clear(&S, ht_rgb(skin == POD_SKIN_CONSOLE ? 0xffffffu : 0xf6f6f0u)); // Classic ground (CI_GROUND)
pod_render(&F, &N, &M, now);
if (banner) { // the glue draws the toast after pod_render (and only while the entry is unread): time it too
const pod_unread_t *bn = pod_model_unread_find(&M, "be");
if (bn && skin == POD_SKIN_CONSOLE) cs_toast(&F, &M, bn, now);
- else if (bn) pod_banner(&F, &M, bn, now);
+ else if (bn) pod_banner(&F, &M, bn, T0, now);
}
clock_gettime(CLOCK_MONOTONIC, &b);
build += (double)(b.tv_sec - a.tv_sec) * 1e6 + (double)(b.tv_nsec - a.tv_nsec) / 1e3;
diff --git a/devices/harness-pro/firmware/test/run.sh b/devices/harness-pro/firmware/test/run.sh
index d44e9391a..689c44791 100755
--- a/devices/harness-pro/firmware/test/run.sh
+++ b/devices/harness-pro/firmware/test/run.sh
@@ -53,6 +53,9 @@ for t in "$here"/test_pod_*.c; do
"$out/$name"
done
+cc "${cflags[@]}" -o "$out/test_ci_chrome" "$here/test_ci_chrome.c" "${objs[@]}"
+"$out/test_ci_chrome"
+
cc "${cflags[@]}" -o "$out/test_cs_views" "$here/test_cs_views.c" "${objs[@]}"
"$out/test_cs_views"
cc "${cflags[@]}" -o "$out/test_cs_glue" "$here/test_cs_glue.c" "${objs[@]}"
diff --git a/devices/harness-pro/firmware/test/test_ci_chrome.c b/devices/harness-pro/firmware/test/test_ci_chrome.c
new file mode 100644
index 000000000..aa5bf92ee
--- /dev/null
+++ b/devices/harness-pro/firmware/test/test_ci_chrome.c
@@ -0,0 +1,238 @@
+// Task 3: the Classic Index chrome (ci_chrome.c): bar, Talk transport, metadata band and the number formats.
+#include <assert.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "pod/classic/ci.h"
+#include "pro_canvas.h"
+
+static int checks;
+#define CHECK(c) do { assert(c); checks++; } while (0)
+
+enum { K_TEXT = 1 };
+
+static pod_out_frame_t F;
+static ht_scene_t S;
+
+static void fresh(void) {
+ memset(&F, 0, sizeof F);
+ ht_scene_clear(&S, ht_rgb(0xf6f6f0));
+ F.scene = &S;
+}
+static const ht_run_t *find_text(const char *prefix) {
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && !strncmp(S.runs[i].text, prefix, strlen(prefix))) return &S.runs[i];
+ return NULL;
+}
+static const pod_hit_t *find_hit(pod_action_t a) {
+ for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == a) return &F.hits[i];
+ return NULL;
+}
+
+static void test_bar_hits(void) {
+ fresh();
+ ci_bar(&F, "Task", "Recent", 3, true);
+ const pod_hit_t *b = find_hit(POD_A_BACK), *in = find_hit(POD_A_INBOX);
+ CHECK(b && b->x == 0 && b->y == 0 && b->w == 173 && b->h == 88);
+ CHECK(in && in->x == 632 && in->y == 0 && in->w == 88 && in->h == 88);
+ CHECK(F.unread == 3 && F.bell_x > 0 && F.bell_x < 632 + 88);
+ CHECK(find_text("3"));
+ fresh();
+ ci_bar(&F, "Tabs", NULL, 0, true);
+ CHECK(!find_hit(POD_A_BACK) && find_hit(POD_A_INBOX) && find_text("Harness"));
+ CHECK(!find_text("0")); // no pill at 0
+ fresh();
+ ci_bar(&F, "Update", NULL, 5, false);
+ CHECK(!find_hit(POD_A_INBOX) && !find_hit(POD_A_BACK) && F.unread == 0 && F.bell_x == 0 && !find_text("5"));
+}
+static void test_bar_back_ellipsis(void) {
+ fresh();
+ ci_bar(&F, "Task", "averyveryverylongtabname", 0, false);
+ const ht_run_t *r = NULL;
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && !strncmp(S.runs[i].text, "avery", 5)) r = &S.runs[i];
+ CHECK(r && r->w <= 115);
+ size_t n = strlen(r->text);
+ CHECK(n > 3 && !strcmp(r->text + n - 3, "\xe2\x80\xa6"));
+ CHECK(!strstr(r->text, "..."));
+ CHECK(strlen(r->text) < strlen("averyveryverylongtabname"));
+}
+static void test_talk_disabled_no_hit(void) {
+ fresh();
+ ci_talk(&F, false);
+ CHECK(F.hit_count == 0 && find_text("Talk"));
+ fresh();
+ ci_talk(&F, true);
+ const pod_hit_t *t = find_hit(POD_A_TALK);
+ CHECK(F.hit_count == 1 && t && t->x == 32 && t->y == 624 && t->w == 656 && t->h == 88);
+}
+// The mockup's band: rules inset to the 32 px margins, the column rule at x 321, the right column's text near x 338; Ready is green;
+// the state dot is anti-aliased (round).
+static void test_band_geometry(void) {
+ enum { K_RECT = 2, K_RECT_AA = 4 };
+ fresh();
+ ci_band(&S, 221, POD_IDLE, -1, "claude", -1, -1, 0);
+ bool top = false, bottom = false, split = false, dot = false;
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind == K_RECT && r->x == 32 && r->w == 656 && r->pro_height == 1 && r->y == 221) top = true;
+ if (r->pro_kind == K_RECT && r->x == 32 && r->w == 656 && r->pro_height == 1 && r->y == 221 + 87) bottom = true;
+ if (r->pro_kind == K_RECT && r->x == 321 && r->w == 1) split = true;
+ if (r->pro_kind == K_RECT_AA && r->w == 10 && r->pro_height == 10 && r->fg == CI_GREEN) dot = true;
+ }
+ CHECK(top && bottom && split && dot);
+ const ht_run_t *eng = find_text("Engine"), *ready = find_text("Ready");
+ CHECK(eng && eng->x >= 336 && eng->x <= 340 && ready && ready->fg == CI_GREEN);
+}
+// ci_rgb picks the nearest RGB565 where ht_rgb truncates: the ask box is (239, 234, 214) not (246, 234, 222).
+static void test_ci_rgb_nearest(void) {
+ CHECK(ci_rgb(0xffffff) == 0xffff && ci_rgb(0) == 0);
+ unsigned v = CI_ASK_FILL;
+ int r = (v >> 11) * 255 / 31, g = ((v >> 5) & 63) * 255 / 63, b = (v & 31) * 255 / 31;
+ CHECK(abs(r - 0xf0) <= 5 && abs(g - 0xe9) <= 2 && abs(b - 0xd8) <= 5);
+ v = CI_GROUND;
+ r = (v >> 11) * 255 / 31; g = ((v >> 5) & 63) * 255 / 63; b = (v & 31) * 255 / 31;
+ CHECK(abs(r - 0xf6) <= 5 && abs(g - 0xf6) <= 2 && abs(b - 0xf0) <= 5);
+}
+// fit_text is not quadratic: a 120-glyph title cut to a short width still ends in U+2026 and fits.
+static void test_ci_text_long_fit(void) {
+ char t[HT_TEXT_BYTES];
+ memset(t, 0, sizeof t);
+ for (int i = 0; i < 120; i++) t[i] = (char)('a' + i % 26);
+ fresh();
+ ci_text(&S, 10, 10, 200, &ci_rg_26, CI_INK, t);
+ const ht_run_t *r = find_text("abcd");
+ CHECK(r && r->w <= 200 && !strcmp(r->text + strlen(r->text) - 3, "\xe2\x80\xa6") && strlen(r->text) > 4);
+}
+static void test_band_tokens_or_engine(void) {
+ fresh();
+ ci_band(&S, 224, POD_DONE, 134, "claude", 10100, 2300, 0);
+ CHECK(find_text("Tokens") && find_text("10.1k in \xc2\xb7 2.3k out") && !find_text("Engine"));
+ CHECK(find_text("Finished") && find_text("2:14"));
+ fresh();
+ ci_band(&S, 224, POD_WORKING, 5, "codex", -1, -1, 100);
+ CHECK(find_text("Engine") && find_text("Codex") && !find_text("Tokens") && find_text("Working"));
+}
+static void test_band_unknowns(void) {
+ fresh();
+ ci_band(&S, 224, POD_DONE, -1, "", 100, -1, 0);
+ CHECK(find_text("\xe2\x80\x94"));
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT) CHECK(strcmp(S.runs[i].text, "-"));
+ CHECK(find_text("100 in"));
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT) {
+ const char *dot = strstr(S.runs[i].text, "\xc2\xb7");
+ CHECK(!dot); // tokens_out unknown: no separator at all
+ }
+ fresh();
+ ci_band(&S, 224, POD_ASKING, 30, "", -1, -1, 0);
+ CHECK(find_text("Engine") && find_text("Needs you"));
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT) CHECK(!strstr(S.runs[i].text, "\xc2\xb7"));
+}
+static void fmt_t(int32_t v, const char *want) {
+ char b[16];
+ ci_fmt_tokens(b, sizeof b, v);
+ if (strcmp(b, want)) { fprintf(stderr, "tokens %d -> %s, want %s\n", (int)v, b, want); assert(0); }
+ checks++;
+}
+static void test_fmt_tokens(void) {
+ fmt_t(0, "0"); fmt_t(999, "999"); fmt_t(1000, "1.0k"); fmt_t(2300, "2.3k"); fmt_t(10100, "10.1k");
+ fmt_t(999949, "999.9k"); fmt_t(999950, "1.0M"); fmt_t(1250000, "1.3M");
+ char b[16];
+ ci_fmt_elapsed(b, sizeof b, 134); CHECK(!strcmp(b, "2:14"));
+ ci_fmt_elapsed(b, sizeof b, 3723); CHECK(!strcmp(b, "1:02:03"));
+ ci_fmt_elapsed(b, sizeof b, -1); CHECK(!strcmp(b, "\xe2\x80\x94"));
+ const char *w; uint16_t ink;
+ CHECK(ci_state_word(POD_ASKING, &w, &ink) && !strcmp(w, "Needs you") && ink == ht_rgb(0x956616));
+}
+
+// The cut ends in U+2026, fits max_w and never splits a UTF-8 sequence.
+static void check_cut_utf8(const char *t) {
+ size_t n = strlen(t);
+ CHECK(n >= 3 && !strcmp(t + n - 3, "\xe2\x80\xa6"));
+ for (size_t i = 0; i < n;) {
+ unsigned char c = (unsigned char)t[i];
+ size_t len = c < 0x80 ? 1 : (c >> 5) == 6 ? 2 : (c >> 4) == 14 ? 3 : (c >> 3) == 30 ? 4 : 0;
+ CHECK(len && i + len <= n);
+ for (size_t k = 1; k < len; k++) CHECK(((unsigned char)t[i + k] & 0xc0) == 0x80);
+ i += len;
+ }
+}
+static void test_ci_text_ellipsis(void) {
+ const char *name = "Nguy\xe1\xbb\x85n V\xc4\x83n \xc3\x81nh \xc4\x90\xe1\xbb\x93ng Th\xc3\xa1p Mu\xe1\xbb\x9di";
+ for (int max_w = 60; max_w <= 240; max_w += 7) {
+ fresh();
+ ci_text(&S, 10, 20, max_w, &ci_rg_26, CI_INK, name);
+ const ht_run_t *r = find_text("N");
+ CHECK(r && r->w <= max_w && ht_pro_width(&ci_rg_26, r->text) <= max_w);
+ check_cut_utf8(r->text);
+ CHECK(!strstr(r->text, "..."));
+ }
+ fresh(); // text that fits is drawn whole
+ ci_text(&S, 0, 0, 400, &ci_rg_26, CI_INK, "Short");
+ CHECK(find_text("Short") && !strstr(find_text("Short")->text, "\xe2\x80\xa6"));
+ fresh(); // not even the mark fits: nothing is drawn
+ ci_text(&S, 0, 0, 2, &ci_rg_26, CI_INK, name);
+ CHECK(S.count == 0);
+}
+static void test_ci_wrap_last_line_ellipsis(void) {
+ char rows[3][POD_ROW_MAX], plain[3][POD_ROW_MAX];
+ const char *t = "The quick brown fox jumps over the lazy dog and keeps running through the whole wide forest until night";
+ int n = ci_wrap(t, &ci_rg_26, 300, 2, rows);
+ CHECK(n == 2 && pod_wrap(t, &ci_rg_26, 300, 2, plain) == 2);
+ CHECK(!strcmp(rows[0], plain[0])); // earlier rows are pod_wrap's
+ check_cut_utf8(rows[1]);
+ CHECK(ht_pro_width(&ci_rg_26, rows[1]) <= 300 && !strstr(rows[1], "..."));
+ n = ci_wrap("two short words", &ci_rg_26, 300, 2, rows); // fits: no ellipsis
+ CHECK(n == 1 && !strcmp(rows[0], "two short words"));
+ n = ci_wrap("one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty", &ci_rg_26, 300, 3, rows);
+ CHECK(n == 3 && !strstr(rows[0], "\xe2\x80\xa6") && !strstr(rows[1], "\xe2\x80\xa6"));
+ check_cut_utf8(rows[2]);
+ CHECK(ci_wrap("", &ci_rg_26, 300, 2, rows) == 0);
+}
+static void test_classic_em_dash(void) {
+ // ci_* faces carry U+2014 and U+2026; the code() mapping must not read Console's arrow slot as a dash.
+ fresh();
+ ht_pro_text(&S, 0, 0, 100, &ci_rg_22, CI_INK, "\xe2\x80\x94");
+ CHECK(S.count == 1 && S.runs[0].pro_kind == K_TEXT);
+ uint16_t a[100 * 40], b[100 * 40];
+ ht_rect_t clip = {0, 0, 100, 40};
+ for (int i = 0; i < 100 * 40; i++) a[i] = b[i] = 0xffff;
+ ht_pro_raster(&S.runs[0], clip, a);
+ int ink = 0;
+ for (int i = 0; i < 100 * 40; i++) ink += a[i] != 0xffff;
+ CHECK(ink > 0);
+ // distinct from the '?' an unmapped mark draws, and from the hyphen the other dashes alias to
+ fresh();
+ ht_pro_text(&S, 0, 0, 100, &ci_rg_22, CI_INK, "\xe2\x86\x92"); // U+2192: not a Classic mark
+ ht_pro_raster(&S.runs[0], clip, b);
+ int same = 1;
+ for (int i = 0; i < 100 * 40; i++) if (a[i] != b[i]) same = 0;
+ CHECK(!same);
+ // Console faces: U+2014 still aliases to the hyphen; their mark slots keep their glyphs
+ CHECK(ht_pro_width(&cs_rg_22, "\xe2\x80\x94") == ht_pro_width(&cs_rg_22, "-"));
+ CHECK(ht_pro_width(&cs_rg_22, "\xe2\x80\xa6") == ht_pro_width(&cs_rg_22, "\xe2\x80\xa6"));
+ CHECK(ht_pro_width(&cs_rg_22, "\xe2\x86\x92") != ht_pro_width(&cs_rg_22, "?") || ht_pro_width(&cs_rg_22, "\xe2\x86\x92") > 0);
+ // ht_pro_* old Classic atlases keep the hyphen
+ CHECK(ht_pro_width(&ht_pro_32, "\xe2\x80\x94") == ht_pro_width(&ht_pro_32, "-"));
+}
+
+int main(void) {
+ test_bar_hits();
+ test_bar_back_ellipsis();
+ test_talk_disabled_no_hit();
+ test_band_tokens_or_engine();
+ test_band_unknowns();
+ test_band_geometry();
+ test_ci_rgb_nearest();
+ test_ci_text_long_fit();
+ test_fmt_tokens();
+ test_ci_text_ellipsis();
+ test_ci_wrap_last_line_ellipsis();
+ test_classic_em_dash();
+ printf("test_ci_chrome: %d checks passed\n", checks);
+ return 0;
+}
diff --git a/devices/harness-pro/firmware/test/test_cs_glue.c b/devices/harness-pro/firmware/test/test_cs_glue.c
index 10d50285b..6e5c106f2 100644
--- a/devices/harness-pro/firmware/test/test_cs_glue.c
+++ b/devices/harness-pro/firmware/test/test_cs_glue.c
@@ -1103,7 +1103,138 @@ static void tab_cards_page(void) {
CHECK(U.nav.depth == depth && top()->scroll > 0);
}
+// ---- Classic index (Task 4) ----------------------------------------------------------------------------------
+
+// The Classic Talk view will register one full-screen TALK hit while listening; until it does, the tests add it.
+static void add_hit_front(int x, int y, int w, int h, pod_action_t a) { // first in the list: the worst order for priority
+ CHECK(U.frame.hit_count < sizeof U.frame.hits / sizeof U.frame.hits[0]);
+ memmove(&U.frame.hits[1], &U.frame.hits[0], U.frame.hit_count * sizeof U.frame.hits[0]);
+ memset(&U.frame.hits[0], 0, sizeof U.frame.hits[0]);
+ U.frame.hits[0].x = (int16_t)x; U.frame.hits[0].y = (int16_t)y; U.frame.hits[0].w = (int16_t)w; U.frame.hits[0].h = (int16_t)h;
+ U.frame.hits[0].action = a;
+ U.frame.hit_count++;
+}
+static void classic_listen(void) { // Classic, a1 open and recording; the frame carries the full-screen send hit
+ fresh(POD_SKIN_CLASSIC);
+ to_agent(0, 0);
+ render(1000);
+ const pod_hit_t *talk = find(POD_A_TALK);
+ CHECK(talk);
+ CHECK(tap_(talk->x + talk->w / 2, talk->y + talk->h / 2, 1000).fx == POD_FX_VOICE_BEGIN && top()->view == POD_V_TALK);
+ render(1200);
+ U.frame.hit_count = 0; // the Talk view registers this one hit alone while listening
+ add_hit_front(0, 88, 720, 632, POD_A_TALK);
+}
+
+static void test_classic_listen_tap_anywhere_sends(void) {
+ classic_listen();
+ pod_out_t o = tap_(360, 400, 2000);
+ CHECK(o.fx == POD_FX_VOICE_END && !strcmp(o.agent, "a1") && U.nav.sending);
+ classic_listen(); // a tap in a corner of the area too, and a drag out is not a tap
+ CHECK(t_(true, 20, 700, 2000).fx == POD_FX_NONE);
+ CHECK(t_(false, 20, 700, 2050).fx == POD_FX_VOICE_END);
+ classic_listen();
+ t_(true, 360, 300, 2000); t_(true, 360, 400, 2030);
+ CHECK(t_(false, 360, 500, 2060).fx != POD_FX_VOICE_END);
+}
+
+static void test_classic_side_button_discards(void) {
+ // pro_app.c's side button calls the nav's abort path: POD_A_TABS from TALK, and a contact cancel.
+ classic_listen();
+ pod_out_t o = pod_nav_act(&U.nav, &U.model, POD_A_TABS, 0, 1500);
+ CHECK(o.fx == POD_FX_VOICE_ABORT && !strcmp(o.agent, "a1") && top()->view == POD_V_TABS && !U.nav.sending);
+ classic_listen(); // a contact cancelled mid-listen never sends
+ t_(true, 360, 400, 2000);
+ CHECK(pod_ui_touch_cancel(&U).fx != POD_FX_VOICE_END);
+ CHECK(t_(false, 360, 400, 2050).fx == POD_FX_NONE);
+}
+
+static void test_classic_listen_tap_offline_discards(void) {
+ classic_listen();
+ ((pod_agent_t *)pod_model_find(&U.model, "a1"))->state = POD_OFFLINE;
+ pod_out_t o = tap_(360, 400, 2000);
+ CHECK(o.fx == POD_FX_VOICE_ABORT && !strcmp(o.agent, "a1") && !pod_ui_talking(&U));
+ CHECK(U.notice_on && !strcmp(U.notice, "That machine is offline"));
+}
+
+static void test_banner_close_keeps_unread(void) {
+ fresh(POD_SKIN_CLASSIC);
+ to_agent(0, 0);
+ CHECK(pod_ui_notify(&U, "a3", true, 1000));
+ render(1000);
+ pod_hit_t card0 = *find(POD_A_BANNER);
+ const pod_hit_t *ban = &card0;
+ CHECK(U.ban_on);
+ int cx = ban->x + ban->w - 40, cy = ban->y + 30; // inside the card
+ add_hit_front(cx - 22, cy - 22, 44, 44, POD_A_BANNER_CLOSE);
+ int unread = U.model.unread_count, depth = U.nav.depth;
+ CHECK(unread > 0);
+ pod_out_t o = tap_(cx, cy, 1100);
+ CHECK(o.fx == POD_FX_NONE && !U.ban_on && U.model.unread_count == unread && U.nav.depth == depth && !strcmp(top()->agent, "a1"));
+ // Elsewhere on the card still opens the agent.
+ fresh(POD_SKIN_CLASSIC);
+ to_agent(0, 0);
+ CHECK(pod_ui_notify(&U, "a3", true, 1000));
+ render(1000);
+ pod_hit_t card = *find(POD_A_BANNER); // a copy: add_hit_front shifts the list
+ add_hit_front(card.x + card.w - 62, card.y + 8, 44, 44, POD_A_BANNER_CLOSE);
+ o = tap_(card.x + 60, card.y + card.h / 2, 1100);
+ CHECK(o.fx == POD_FX_AGENT_OPEN && !strcmp(o.agent, "a3"));
+}
+
+// The banner over a moving Tabs grid (Classic): the page flick is still settling, the x is on the frame (the glue picks it before
+// the card), and a tap on it closes the banner with the entry still unread, opens nothing and leaves the page where it was going.
+static void test_banner_over_tabs_drag(void) {
+ fresh(POD_SKIN_CLASSIC);
+ static const char *ids3[] = {"a1", "a2", "a3"};
+ const char *const *ids[8] = {ids3, ids3, ids3, ids3, ids3, ids3, ids3, ids3};
+ uint8_t cnt[8] = {3, 3, 3, 3, 3, 3, 3, 3};
+ cable_swarm_t it[8] = {{"s1", "T1", 3, 3}, {"s2", "T2", 3, 3}, {"s3", "T3", 3, 3}, {"s4", "T4", 3, 3},
+ {"s5", "T5", 3, 3}, {"s6", "T6", 3, 3}, {"s7", "T7", 3, 3}, {"s8", "T8", 3, 3}};
+ pod_model_swarms(&U.model, it, ids, cnt, 8, "s1", NULL, 0);
+ pod_ui_set_skin(&U, POD_SKIN_CLASSIC);
+ CHECK(top()->view == POD_V_TABS && pod_tabs_pages_of(&U.nav, &U.model) == 2);
+ CHECK(pod_ui_notify(&U, "a3", true, 1000));
+ render(1000);
+ CHECK(U.ban_on && find(POD_A_BANNER_CLOSE));
+ swipe(360, 500, 360, 200, 1100); // a flick up to page 1: the grid settles
+ CHECK(U.pg_mode == POD_PG_ANIM);
+ render(1200);
+ CHECK(U.frame.tabs_moving && U.frame.banner);
+ const pod_hit_t *x = find(POD_A_BANNER_CLOSE);
+ CHECK(x && &U.frame.hits[U.frame.hit_count - 1] == x);
+ pod_hit_t cl = *x;
+ const int page = top()->scroll, unread = U.model.unread_count, depth = U.nav.depth;
+ CHECK(page > 0 && unread > 0);
+ pod_out_t o = tap_(cl.x + cl.w / 2, cl.y + cl.h / 2, 1250);
+ CHECK(o.fx == POD_FX_NONE && !U.ban_on && U.model.unread_count == unread && U.nav.depth == depth && top()->view == POD_V_TABS);
+ CHECK(top()->scroll == page); // the page did not move
+ render(1400);
+ CHECK(!U.frame.banner && !find(POD_A_BANNER_CLOSE) && top()->scroll == page);
+}
+
+static void test_banner_timer_wakes_66ms(void) {
+ fresh(POD_SKIN_CLASSIC);
+ to_agent(0, 0);
+ calm();
+ render(1000);
+ uint32_t before = pod_ui_wake_ms(&U, 1000);
+ CHECK(pod_ui_notify(&U, "a3", true, 1000));
+ CHECK(pod_ui_banner_shown_ms(&U) == 1000);
+ render(1000);
+ CHECK(U.ban_on && pod_ui_wake_ms(&U, 1000) <= 66);
+ CHECK(pod_ui_wake_ms(&U, 1010) <= 66);
+ U.ban_on = false;
+ CHECK(pod_ui_wake_ms(&U, 1000) == before);
+}
+
int main(void) {
+ test_classic_listen_tap_anywhere_sends();
+ test_classic_side_button_discards();
+ test_classic_listen_tap_offline_discards();
+ test_banner_close_keeps_unread();
+ test_banner_timer_wakes_66ms();
+ test_banner_over_tabs_drag();
overview_pages();
bottom_up_goes_back();
bottom_start_sideways_is_a_pane_swipe();
diff --git a/devices/harness-pro/firmware/test/test_fonts.py b/devices/harness-pro/firmware/test/test_fonts.py
index cb2ed93ef..dd34cb6cf 100644
--- a/devices/harness-pro/firmware/test/test_fonts.py
+++ b/devices/harness-pro/firmware/test/test_fonts.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Tests for scripts/gen_fonts.py (run: python3 test/test_fonts.py)."""
+import math
import os
import re
import subprocess
@@ -40,7 +41,7 @@ def parse(path):
for size in SIZES:
alpha = re.search(r'alpha_%d\[\]=\{(.*?)\};' % size, text, re.S).group(1)
glyphs = re.search(r'glyphs_%d\[\]=\{(.*?)\};' % size, text, re.S).group(1)
- head = re.search(r'ht_pro_%d=\{(\d+),(\d+),(\d+),(\d+),glyphs_%d,alpha_%d\}' % (size, size, size), text)
+ head = re.search(r'ht_pro_%d=\{(\d+),(\d+),(\d+),(\d+),glyphs_%d,alpha_%d,0,0\}' % (size, size, size), text)
assert head, 'ht_pro_%d definition' % size
fonts[size] = dict(
header=tuple(int(v) for v in head.groups()),
@@ -161,9 +162,13 @@ CS = {'cs_sb_48': ('Inter-SemiBold', 48), 'cs_sb_34': ('Inter-SemiBold', 34), 'c
def parse_cs(text, name):
alpha = re.search(r'alpha_%s\[\]=\{(.*?)\};' % name, text, re.S).group(1)
glyphs = re.search(r'glyphs_%s\[\]=\{(.*?)\};' % name, text, re.S).group(1)
- head = re.search(r'%s=\{(\d+),(\d+),(\d+),(\d+),glyphs_%s,alpha_%s\}' % (name, name, name), text)
+ head = re.search(r'%s=\{(\d+),(\d+),(\d+),(\d+),glyphs_%s,alpha_%s,(?:0,0|extras_%s,(\d+))\}' % (name, name, name, name), text)
assert head, name
- return dict(header=tuple(int(v) for v in head.groups()),
+ tag = name.removeprefix('ht_pro_')
+ table = re.search(r'extras_%s\[\]=\{(.*?)\};' % tag, text)
+ extras = [int(v, 16) for v in table.group(1).split(',')] if table else []
+ assert len(extras) == int(head.group(5) or 0), name
+ return dict(header=tuple(int(v) for v in head.groups()[:4]), extras=extras,
glyphs=[tuple(int(v) for v in g) for g in GLYPH.findall(glyphs)],
alpha=bytes(int(v) for v in alpha.replace('\n', '').strip(',').split(',')))
@@ -208,7 +213,7 @@ class ConsoleFontTests(unittest.TestCase):
self.assertLessEqual(total, 900 * 1000)
def test_cs_marks_have_ink(self):
- # the marks the chrome draws (the ← replaces ⇠, which no face carries); order is ht_pro_extra_index()
+ # the marks the chrome draws (the ← replaces ⇠, which no face carries); order is CONSOLE_EXTRA, the face's extras table
marks = [0x2026, 0x2192, 0x2191, 0x2193, 0x2190, 0x21e2, 0x25b2, 0x25c6, 0x2713]
text = self.out.read_text()
for name in CS:
@@ -227,5 +232,100 @@ class ConsoleFontTests(unittest.TestCase):
for name in CS:
self.assertEqual(parse_cs(a, name)['alpha'], parse_cs(b, name)['alpha'])
+
+CONSOLE_MARKS = [0x2026, 0x2192, 0x2191, 0x2193, 0x2190, 0x21e2, 0x25b2, 0x25c6, 0x2713]
+CI_RG = (20, 22, 23, 24, 25, 26, 28, 30, 32, 33, 41, 43, 48)
+CI_BD = (20, 23, 24, 26, 30, 45)
+CI = {**{'ci_rg_%d' % n: n for n in CI_RG}, **{'ci_bd_%d' % n: n for n in CI_BD}}
+
+
+def ci_ink(font, cp):
+ """Summed alpha of a glyph (cp in Latin-1, Vietnamese, then U+2026 and U+2014 after them)."""
+ index = len(CODEPOINTS) + {0x2026: 0, 0x2014: 1}[cp] if cp in (0x2026, 0x2014) else CODEPOINTS.index(cp)
+ off, width, _, _, rows = font['glyphs'][index]
+ data = font['alpha'][off:off + (width * rows + 1) // 2]
+ return sum((b >> 4) + (b & 15) for b in data)
+
+
+class ClassicFontTests(unittest.TestCase):
+ """The Classic faces (ci_*): Liberation Sans Regular / Bold, always from fonts/."""
+
+ @classmethod
+ def setUpClass(cls):
+ cls.tmp = tempfile.TemporaryDirectory()
+ cls.out = Path(cls.tmp.name) / 'pro_fonts.c'
+ assert generate(LIBERATION, cls.out).returncode == 0
+ cls.text = cls.out.read_text()
+
+ @classmethod
+ def tearDownClass(cls):
+ cls.tmp.cleanup()
+
+ def face(self, name):
+ return parse_cs(self.text, name)
+
+ def word(self, name, s):
+ return sum(ci_ink(self.face(name), ord(c)) for c in s)
+
+ def test_classic_faces_exist(self):
+ for name, size in CI.items():
+ f = self.face(name)
+ self.assertEqual(f['header'][2], math.ceil(size * 1.375), name)
+ self.assertEqual(len(f['glyphs']), len(CODEPOINTS) + 2, name) # plus the ellipsis and the em dash
+
+ def test_classic_em_dash(self):
+ # U+2014 is the second Classic mark (after U+2026); every ci_* face draws it, the Console faces keep their own nine marks
+ for name in CI:
+ if name in ('ci_rg_43', 'ci_rg_48', 'ci_bd_45'): continue # cut to a fixed string (gen_fonts.CLASSIC_CUT)
+ self.assertGreater(ci_ink(self.face(name), 0x2014), 0, name)
+ f = self.face('ci_rg_22')
+ off, width, _, _, rows = f['glyphs'][len(CODEPOINTS) + 1]
+ self.assertTrue(any(f['alpha'][off:off + (width * rows + 1) // 2]))
+ for name in CS:
+ self.assertEqual(len(self.face(name)['glyphs']), len(CODEPOINTS) + 9, name)
+
+ def test_classic_bold_is_bold(self):
+ self.assertGreater(self.word('ci_bd_30', 'Tabs'), 1.25 * self.word('ci_rg_30', 'Tabs'))
+
+ def test_classic_coverage(self):
+ for c in '\u1ea1\u01b0\u2026\u00b7':
+ self.assertGreater(ci_ink(self.face('ci_rg_32'), ord(c)), 0, 'U+%04X' % ord(c))
+
+ def test_classic_cut(self):
+ f = self.face('ci_bd_45')
+ self.assertGreater(ci_ink(f, ord('S')), 0)
+ for c in '\u00e9\u1ea1': # printable ASCII is kept; Latin-1 high half and Vietnamese are cut
+ self.assertEqual(ci_ink(f, ord(c)), 0, c)
+ self.assertGreater(ci_ink(self.face('ci_rg_43'), ord('N')), 0)
+ self.assertEqual(ci_ink(self.face('ci_rg_43'), ord('q')), 0)
+
+ def test_classic_ascii_cut(self):
+ f = self.face('ci_rg_25')
+ self.assertGreater(ci_ink(f, ord('A')), 0)
+ self.assertEqual(ci_ink(f, 0x1ea1), 0) # \u1ea1 is cut
+
+ def test_classic_budget(self):
+ total = sum(len(self.face(n)['alpha']) for n in CI)
+ print('classic font total: %d bytes' % total)
+ self.assertLessEqual(total, 800 * 1000)
+
+ def test_extras_tables(self):
+ # every face lists the marks baked after the Vietnamese entries; the old faces list none
+ for name in CS:
+ self.assertEqual(self.face(name)['extras'], CONSOLE_MARKS, name)
+ for name in CI:
+ self.assertEqual(self.face(name)['extras'], [0x2026, 0x2014], name)
+ for size in SIZES:
+ self.assertRegex(self.text, r'ht_pro_%d=\{32,255,\d+,326,glyphs_%d,alpha_%d,0,0\}' % (size, size, size))
+
+ def test_classic_bd_45_printable_ascii(self):
+ # pod_view_ota.c draws "Updating to %s" with any version string: ci_bd_45 keeps all printable ASCII
+ f = self.face('ci_bd_45')
+ for c in range(0x21, 0x7f):
+ self.assertGreater(ci_ink(f, c), 0, chr(c))
+ self.assertGreater(ci_ink(f, 0x2026), 0)
+ self.assertEqual(ci_ink(f, ord('\u00e9')), 0) # the Latin-1 high half stays cut
+
+
if __name__ == '__main__':
unittest.main(verbosity=2)
diff --git a/devices/harness-pro/firmware/test/test_pod_draw.c b/devices/harness-pro/firmware/test/test_pod_draw.c
index 884adfafa..0527b2142 100644
--- a/devices/harness-pro/firmware/test/test_pod_draw.c
+++ b/devices/harness-pro/firmware/test/test_pod_draw.c
@@ -1,6 +1,7 @@
// Task 3: Pod's cell sprite, ring arc and gradient runs.
#include <assert.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "pod/pod_draw.h"
#include "pro_canvas.h"
@@ -227,6 +228,60 @@ static void draw_test_grad(void)
}
+// Classic's grey gradient: every pixel neutral (r = b, g = 2r + 1), so no pink band; dithered, so it has more than a few flat steps.
+static void draw_test_grad_gray(void)
+{
+ ht_scene_t s; ht_scene_clear(&s, 0);
+ pod_grad_gray(&s, 0, 0, 20, 60, ht_rgb(0xf8f9f7), ht_rgb(0xe9eae5));
+ CHECK(s.count == 1);
+ draw(&s);
+ int sum_top = 0, sum_bot = 0;
+ for (int y = 0; y < 60; y++)
+ for (int x = 0; x < 20; x++) {
+ uint16_t v = px(x, y);
+ CHECK(((v >> 11) & 31) == (v & 31) && ((v >> 5) & 63) == 2 * (v & 31) + 1);
+ if (y < 10) sum_top += v & 31;
+ if (y >= 50) sum_bot += v & 31;
+ }
+ CHECK(sum_top > sum_bot && px(20, 0) == 0); // darker toward the bottom; nothing outside the rect
+ int mixed = 0;
+ for (int y = 0; y < 60; y++) { uint16_t a = px(0, y), b = px(1, y); if (a != b) mixed++; }
+ CHECK(mixed > 0); // a row between two levels alternates them
+}
+
+static void draw_test_grad_aa_corner(void)
+{
+ const uint16_t ground = 0x2104, ink = ht_rgb(0x2f6df0);
+ static const int rads[] = {7, 13};
+ for (unsigned k = 0; k < 2; k++) {
+ static uint16_t want[W * H];
+ ht_scene_t s; ht_scene_clear(&s, 0);
+ CHECK(ht_pro_rect_aa(&s, 5, 6, 50, 40, rads[k], ink));
+ draw_over(&s, ground);
+ memcpy(want, buf, sizeof want);
+ ht_scene_clear(&s, 0);
+ pod_grad_aa(&s, 5, 6, 50, 40, rads[k], ink, ink);
+ CHECK(s.count == 1);
+ draw_over(&s, ground);
+ CHECK(memcmp(want, buf, sizeof want) == 0);
+ }
+}
+static void draw_test_grad_aa_rows(void)
+{
+ uint16_t top = ht_rgb(0x5ea2f2), bot = ht_rgb(0x1f63d1);
+ static uint16_t big[20 * 100];
+ ht_scene_t s; ht_scene_clear(&s, 0);
+ pod_grad_aa(&s, 0, 0, 20, 100, 7, top, bot);
+ CHECK(s.count == 1);
+ memset(big, 0, sizeof big);
+ ht_rect_t c = {0, 0, 20, 100};
+ ht_pro_raster(&s.runs[0], c, big);
+ uint16_t m = big[50 * 20 + 10];
+ int rr = (top >> 11) + (bot >> 11), gg = ((top >> 5) & 63) + ((bot >> 5) & 63), bb = (top & 31) + (bot & 31);
+ CHECK(abs((m >> 11) - rr / 2) <= 1 && abs(((m >> 5) & 63) - gg / 2) <= 1 && abs((m & 31) - bb / 2) <= 1);
+ CHECK(big[0] == 0 && big[10] == top);
+}
+
static void draw_test_tri(void)
{
ht_scene_t s; ht_scene_clear(&s, 0);
@@ -413,6 +468,129 @@ static void draw_test_rect_aa_stroke(void)
checks++;
}
+// ---- Face-aware text: a code point is kept only if the face draws it (the face's extras table) ----
+#define FACES(X) \
+ X(ht_pro_24) X(ht_pro_32) X(ht_pro_42) X(ht_pro_56) \
+ X(cs_sb_48) X(cs_sb_34) X(cs_sb_26) X(cs_sb_22) X(cs_rg_24) X(cs_rg_20) X(cs_rg_17) X(cs_mono_26) X(cs_mono_18) \
+ X(cs_mono_15) X(cs_md_28) X(cs_sb_32) X(cs_rg_36) X(cs_rg_27) X(cs_rg_22) X(cs_mono_24) X(cs_mono_22) \
+ X(ci_rg_20) X(ci_rg_22) X(ci_rg_23) X(ci_rg_24) X(ci_rg_25) X(ci_rg_26) X(ci_rg_28) X(ci_rg_30) X(ci_rg_32) \
+ X(ci_rg_33) X(ci_rg_41) X(ci_rg_43) X(ci_rg_48) X(ci_bd_20) X(ci_bd_23) X(ci_bd_24) X(ci_bd_26) X(ci_bd_30) X(ci_bd_45)
+typedef struct { const char *name; const ht_pro_font_t *face; } named_face_t;
+#define ENTRY(f) {#f, &f},
+static const named_face_t all_faces[] = { FACES(ENTRY) };
+#define N_FACES (sizeof all_faces / sizeof all_faces[0])
+
+enum { TW = 400, TH = 96 };
+static uint16_t tbuf[TW * TH];
+// Draw `text` on `face` into tbuf (ground 0, white ink) and return the run's normalized text; *ink counts inked pixels.
+static const char *draw_text(const ht_pro_font_t *face, const char *text, int *ink)
+{
+ static ht_scene_t s;
+ ht_scene_clear(&s, 0);
+ memset(tbuf, 0, sizeof tbuf);
+ CHECK(ht_pro_text(&s, 2, 2, TW - 4, face, 0xffff, text));
+ ht_pro_raster(&s.runs[0], (ht_rect_t){0, 0, TW, TH}, tbuf);
+ int n = 0;
+ for (int i = 0; i < TW * TH; i++) n += tbuf[i] != 0;
+ if (ink) *ink = n;
+ return s.runs[0].text;
+}
+static bool starts_with(const char *s, const char *prefix) { return !strncmp(s, prefix, strlen(prefix)); }
+static bool cut_face(const char *name) // faces cut to a fixed string (gen_fonts CONSOLE_CUT / CLASSIC_CUT): their extras may be blank
+{
+ return !strcmp(name, "cs_sb_48") || !strcmp(name, "cs_mono_24") || !strcmp(name, "ci_rg_43") ||
+ !strcmp(name, "ci_rg_48") || !strcmp(name, "ci_bd_45");
+}
+static const named_face_t *find_face(const char *name)
+{
+ for (unsigned i = 0; i < N_FACES; i++) if (!strcmp(all_faces[i].name, name)) return &all_faces[i];
+ return NULL;
+}
+
+static void draw_test_marks_follow_the_face(void)
+{
+ const char *input = "a \xe2\x86\x90 b \xe2\x86\x91 c \xe2\x96\xb2"; // a <- b ^ c up-triangle
+ // Classic: none of the arrows is in the face, so each becomes its ASCII fallback, never a '?'.
+ const char *ci = draw_text(find_face("ci_rg_24")->face, input, NULL);
+ CHECK(!strchr(ci, '?'));
+ for (const char *p = ci; *p; p++) CHECK(!((unsigned char)*p & 0x80));
+ CHECK(starts_with(ci, "a ") && strstr(ci, " b ") && strstr(ci, " c "));
+ CHECK(strlen(ci) > strlen("a b c "));
+ // Console: the marks are native and kept as they are.
+ const char *cs = draw_text(find_face("cs_rg_24")->face, input, NULL);
+ CHECK(!strcmp(cs, input));
+ // The old faces carry no marks either: a fallback, never '?'.
+ const char *old = draw_text(find_face("ht_pro_24")->face, input, NULL);
+ CHECK(!strchr(old, '?'));
+ for (const char *p = old; *p; p++) CHECK(!((unsigned char)*p & 0x80));
+ // The five marks that always passed through the no-face path still do.
+ char out[64];
+ CHECK(ht_display_text_ex(out, sizeof out, "\xe2\x86\x92", NULL) && !strcmp(out, "\xe2\x86\x92"));
+ // Console's right arrow stays native; Classic's becomes ASCII and does not draw the em dash.
+ CHECK(!strcmp(draw_text(find_face("cs_rg_24")->face, "\xe2\x86\x92", NULL), "\xe2\x86\x92"));
+ CHECK(strcmp(draw_text(find_face("ci_rg_24")->face, "\xe2\x86\x92", NULL), "\xe2\x86\x92") != 0);
+}
+
+static void draw_test_extras_round_trip(void)
+{
+ for (unsigned i = 0; i < N_FACES; i++) {
+ const named_face_t *nf = &all_faces[i];
+ const ht_pro_font_t *f = nf->face;
+ CHECK((f->extras == NULL) == (f->extra_count == 0));
+ CHECK(f->glyph_count == (f->last - f->first + 1) + 102 + f->extra_count); // the table matches the atlas
+ for (unsigned k = 0; k < f->extra_count; k++) {
+ uint32_t cp = f->extras[k];
+ CHECK(ht_pro_extra_pos(f, cp) == (int)k && ht_pro_can_draw(f, cp));
+ char text[8] = {0};
+ if (cp < 0x800) { text[0] = (char)(0xc0 | cp >> 6); text[1] = (char)(0x80 | (cp & 63)); }
+ else { text[0] = (char)(0xe0 | cp >> 12); text[1] = (char)(0x80 | ((cp >> 6) & 63)); text[2] = (char)(0x80 | (cp & 63)); }
+ int ink;
+ const char *shown = draw_text(f, text, &ink);
+ CHECK(!strcmp(shown, text)); // kept native
+ // A face cut to a fixed string draws only that string's marks (U+2026 on cs_sb_48 / ci_bd_45).
+ if (cut_face(nf->name) && !(cp == 0x2026 && (!strcmp(nf->name, "cs_sb_48") || !strcmp(nf->name, "ci_bd_45")))) continue;
+ if (!ink) fprintf(stderr, "%s U+%04X has no ink\n", nf->name, (unsigned)cp);
+ CHECK(ink > 0);
+ }
+ }
+ // Classic: U+2014 draws the dash itself and U+2192 neither draws it nor falls back onto it.
+ for (unsigned i = 0; i < N_FACES; i++) {
+ const named_face_t *nf = &all_faces[i];
+ if (strncmp(nf->name, "ci_", 3) || cut_face(nf->name)) continue;
+ static uint16_t dash[TW * TH], arrow[TW * TH];
+ int ink;
+ CHECK(!strcmp(draw_text(nf->face, "\xe2\x80\x94", &ink), "\xe2\x80\x94") && ink > 0);
+ memcpy(dash, tbuf, sizeof tbuf);
+ const char *a = draw_text(nf->face, "\xe2\x86\x92", NULL);
+ CHECK(strcmp(a, "\xe2\x86\x92") != 0 && !strchr(a, '?'));
+ memcpy(arrow, tbuf, sizeof tbuf);
+ CHECK(memcmp(dash, arrow, sizeof dash) != 0);
+ draw_text(nf->face, "-", NULL);
+ CHECK(memcmp(dash, tbuf, sizeof dash) != 0); // the dash is the em dash glyph, not the hyphen
+ }
+}
+
+static void draw_test_update_version_on_ci_bd_45(void)
+{
+ const ht_pro_font_t *f = find_face("ci_bd_45")->face;
+ const char *version = "0.2.0-beta+v";
+ for (const char *c = version; *c; c++) {
+ char one[2] = {*c, 0};
+ int ink;
+ CHECK(!strcmp(draw_text(f, one, &ink), one));
+ if (*c != ' ') { if (!ink) fprintf(stderr, "ci_bd_45 '%c' has no ink\n", *c); CHECK(ink > 0); }
+ }
+ CHECK(!strcmp(draw_text(f, version, NULL), version));
+ int printable = 0;
+ for (int c = 0x21; c < 0x7f; c++) {
+ char one[2] = {(char)c, 0};
+ int ink;
+ draw_text(f, one, &ink);
+ printable += ink > 0;
+ }
+ CHECK(printable == 0x7f - 0x21);
+}
+
int main(void)
{
draw_test_corner_cover_fast_path();
@@ -425,8 +603,14 @@ int main(void)
draw_test_arc();
draw_test_damage();
draw_test_grad();
+ draw_test_grad_gray();
+ draw_test_grad_aa_corner();
+ draw_test_grad_aa_rows();
draw_test_tri();
draw_test_tri_seam();
+ draw_test_marks_follow_the_face();
+ draw_test_extras_round_trip();
+ draw_test_update_version_on_ci_bd_45();
printf("Pod draw: PASS (%d checks)\n", checks);
return 0;
}
diff --git a/devices/harness-pro/firmware/test/test_pod_nav.c b/devices/harness-pro/firmware/test/test_pod_nav.c
index 855338bc5..b54d0c910 100644
--- a/devices/harness-pro/firmware/test/test_pod_nav.c
+++ b/devices/harness-pro/firmware/test/test_pod_nav.c
@@ -755,7 +755,30 @@ static void nav_test_attention_and_steps(void) {
CHECK(act(POD_A_FOLLOW, 99, 0).fx == POD_FX_NONE);
}
+static void test_origin_label(void) {
+ fresh();
+ CHECK(!strcmp(pod_nav_origin(&N, &M), "Back")); // the root
+ to_agent(0, 0);
+ CHECK(!strcmp(pod_nav_origin(&N, &M), "Build"));
+ act(POD_A_TABS, 0, 0);
+ to_agent(1, 0);
+ CHECK(!strcmp(pod_nav_origin(&N, &M), "Docs"));
+ act(POD_A_TABS, 0, 0);
+ act(POD_A_OPEN_TAB, POD_TAB_RECENT, 0);
+ CHECK(!strcmp(pod_nav_origin(&N, &M), "Tabs")); // the Recent list itself came from Tabs (its view shows "Back")
+ act(POD_A_OPEN_AGENT, 0, 0);
+ CHECK(top()->view != POD_V_TAB && !strcmp(pod_nav_origin(&N, &M), "Recent"));
+ act(POD_A_TABS, 0, 0);
+ act(POD_A_INBOX, 0, 0);
+ CHECK(!strcmp(pod_nav_origin(&N, &M), "Tabs")); // the Inbox view itself shows "Back"
+ pod_model_unread_add(&M, "a3", "Gamma", "Shipped.", 5, 100);
+ act(POD_A_OPEN_NOTIF, 0, 0);
+ CHECK(top()->view == POD_V_RECAP || top()->view == POD_V_AGENT);
+ CHECK(!strcmp(pod_nav_origin(&N, &M), "Inbox"));
+}
+
int main(void) {
+ test_origin_label();
nav_test_grid_scroll();
nav_test_open_by_state();
nav_test_prev_next_wrap();
diff --git a/devices/harness-pro/firmware/test/test_pod_pet.c b/devices/harness-pro/firmware/test/test_pod_pet.c
index 98f10988d..225414abd 100644
--- a/devices/harness-pro/firmware/test/test_pod_pet.c
+++ b/devices/harness-pro/firmware/test/test_pod_pet.c
@@ -136,6 +136,42 @@ static void pet_test_inside_box(void)
}
}
}
+static void pet_render_on(uint32_t ground, bool plain, uint16_t *buf)
+{
+ enum { W = 270, H = 270 };
+ ht_scene_t s; ht_scene_clear(&s, 0);
+ if (plain) pod_pet_draw(&s, 0, 0, W, "claude", POD_SCENE_LISTEN, 700, 0);
+ else pod_pet_draw_on(&s, 0, 0, W, "claude", POD_SCENE_LISTEN, 700, 0, ground);
+ for (int i = 0; i < W * H; i++) buf[i] = ht_rgb(ground);
+ ht_rect_t clip = {0, 0, W, H};
+ for (int i = 0; i < s.count; i++) {
+ if (s.runs[i].pro_kind >= POD_KIND_BASE) pod_draw_raster(&s.runs[i], clip, buf);
+ else ht_pro_raster(&s.runs[i], clip, buf);
+ }
+}
+static int luma(uint16_t p) // 0..255*1000, from the expanded channels
+{
+ int r = (p >> 11) * 255 / 31, g = ((p >> 5) & 63) * 255 / 63, b = (p & 31) * 255 / 31;
+ return 299 * r + 587 * g + 114 * b;
+}
+static int brighter(const uint16_t *buf, uint16_t g) // pixels lighter than the ground
+{
+ int n = 0;
+ for (int i = 0; i < 270 * 270; i++) if (luma(buf[i]) > luma(g)) n++;
+ return n;
+}
+static void pet_test_wave_ground(void)
+{
+ static uint16_t a[270 * 270], b[270 * 270], c[270 * 270];
+ uint16_t g = ht_rgb(0xf6f6f0);
+ pet_render_on(0xf6f6f0, false, a);
+ CHECK(brighter(a, g) == 0);
+ pet_render_on(0xf6f6f0, true, b); // the white-fading default on the same ground: waves go lighter than it
+ CHECK(brighter(b, g) > 0);
+ pet_render_on(0xffffff, true, b);
+ pet_render_on(0xffffff, false, c);
+ CHECK(memcmp(b, c, sizeof b) == 0);
+}
static void pet_test_palette_colour(void)
{
enum { W = 270, H = 270 };
@@ -266,6 +302,7 @@ int main(void)
pet_test_default_mark();
pet_test_inside_box();
pet_test_palette_colour();
+ pet_test_wave_ground();
pet_test_logo_exact();
pet_test_cover_centre_exact();
printf("test_pod_pet: %d checks ok\n", checks);
diff --git a/devices/harness-pro/firmware/test/test_pod_views_agent.c b/devices/harness-pro/firmware/test/test_pod_views_agent.c
index 144c8a146..cbc9c1a22 100644
--- a/devices/harness-pro/firmware/test/test_pod_views_agent.c
+++ b/devices/harness-pro/firmware/test/test_pod_views_agent.c
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <string.h>
+#include "pod/classic/ci.h"
#include "pod/pod_view.h"
#include "pod/pod_view_shared.h"
#include "pro_canvas.h"
@@ -18,10 +19,12 @@ static pod_nav_t N;
static pod_out_frame_t F;
static ht_scene_t S;
+static bool with_banner; // the glue will add the banner: the views leave its runs spare
static void render(uint32_t now) {
memset(&F, 0, sizeof F);
- ht_scene_clear(&S, ht_rgb(0xffffff));
+ ht_scene_clear(&S, ht_rgb(0xf6f6f0));
F.scene = &S;
+ F.banner = with_banner;
pod_render(&F, &N, &M, now);
}
static const ht_run_t *find_text(const char *prefix) {
@@ -29,47 +32,6 @@ static const ht_run_t *find_text(const char *prefix) {
if (S.runs[i].pro_kind == K_TEXT && !strncmp(S.runs[i].text, prefix, strlen(prefix))) return &S.runs[i];
return NULL;
}
-const char *pod_working_verb(uint32_t secs); // pod_view_shared.h
-// The working LCD pill (S5): a dark rounded rect, three green bars, the verb "<verb>..." in light ink and the time
-// "m:ss" in green on the right. find_working_chip is the verb run; find_pill_time the time run; find_pill the rect.
-static const ht_run_t *find_working_chip(void) {
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].fg == ht_rgb(0x26292b) && strstr(S.runs[i].text, "...")) return &S.runs[i];
- return NULL;
-}
-static const ht_run_t *find_pill_time(void) {
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].fg == ht_rgb(0x1f9d4c)) return &S.runs[i];
- return NULL;
-}
-// The pill has no shape (no rim, no fill): only the bars, the verb and the time. Its box is derived from them: the bars'
-// bottom is 30 px into the 40 px box, the bars start 16 px in, the time ends 16 px short of the right edge.
-static bool pill_box(int *x0, int *y0, int *x1, int *y1) {
- int bx = -1, bb = -1, tr = -1;
- for (int i = 0; i < S.count; i++) {
- const ht_run_t *r = &S.runs[i];
- if (r->pro_kind == K_RECT && r->fg == ht_rgb(0x2a9a57) && r->w == 5) {
- if (bx < 0 || r->x < bx) bx = r->x;
- if (r->y + r->pro_height > bb) bb = r->y + r->pro_height;
- }
- if (r->pro_kind == K_TEXT && r->fg == ht_rgb(0x1f9d4c)) tr = r->x + r->w;
- }
- if (bx < 0 || tr < 0) return false;
- *x0 = bx - 16; *y0 = bb - 30; *x1 = tr + 16; *y1 = *y0 + 40;
- return true;
-}
-static const ht_run_t *find_pill(void) {
- static ht_run_t box;
- int x0, y0, x1, y1;
- if (!pill_box(&x0, &y0, &x1, &y1)) return NULL;
- box.x = x0; box.y = y0; box.w = x1 - x0; box.pro_height = 40;
- return &box;
-}
-static int count_green_bars(void) {
- int n = 0;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x2a9a57) && S.runs[i].w == 5) n++;
- return n;
-}
static const pod_hit_t *find_hit(pod_action_t a) {
for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == a) return &F.hits[i];
return NULL;
@@ -85,11 +47,11 @@ static int count_rects(uint16_t ink, int w) {
if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ink && S.runs[i].w == w) n++;
return n;
}
-// Whether the screen holds exactly the runs pod_pet_draw adds for this pet, in a row.
-static bool has_pet(int x, int y, int side, const char *engine, pod_scene_t scene, uint32_t now, uint32_t started) {
+// Whether the screen holds exactly the runs pod_pet_draw_on adds for this pet (on `ground`), in a row.
+static bool has_pet_on(int x, int y, int side, const char *engine, pod_scene_t scene, uint32_t now, uint32_t started, uint32_t ground) {
static ht_scene_t scratch;
ht_scene_clear(&scratch, 0);
- pod_pet_draw(&scratch, x, y, side, engine, scene, now, started);
+ pod_pet_draw_on(&scratch, x, y, side, engine, scene, now, started, ground);
for (int at = 0; at + scratch.count <= S.count; at++) {
bool same = true;
for (int i = 0; i < scratch.count && same; i++) same = !memcmp(&S.runs[at + i], &scratch.runs[i], sizeof S.runs[0]);
@@ -98,10 +60,6 @@ static bool has_pet(int x, int y, int side, const char *engine, pod_scene_t scen
return false;
}
-// Option A: the pet is album art on the left, side 180 inside a 196 square at (26, 84); a pet-less engine's cover fills the 196 square.
-static bool art_has_pet(const char *engine, pod_scene_t scene, uint32_t now, uint32_t started) {
- return pod_pet_for(engine) ? has_pet(34, 92, 180, engine, scene, now, started) : has_pet(26, 84, 196, engine, scene, now, started);
-}
// One tab with: c claude (working), x codex (asking), m muse (idle, no recap), u cursor (idle), d claude (done, recap).
static const char *const ID[] = {"c", "x", "m", "u", "d"};
@@ -144,85 +102,9 @@ static void open_view(const char *id, pod_view_t v) {
CHECK(N.stack[N.depth - 1].view == v);
}
-static void agent_test_scene_by_state(void) {
- build();
- open_view("c", POD_V_AGENT);
- render(3000);
- CHECK(art_has_pet("claude", POD_SCENE_WORK, 3000, 0));
- CHECK(find_text("agent-c") && find_text("Desktop") && find_working_chip() && !strncmp(find_working_chip()->text, pod_working_verb(134), strlen(pod_working_verb(134))) && find_pill_time() && !strncmp(find_pill_time()->text, "2:", 2));
- CHECK(find_text("Editing touch") != NULL);
- open_view("x", POD_V_AGENT);
- render(3000);
- CHECK(art_has_pet("codex", POD_SCENE_ASK, 3000, 0));
- CHECK(find_text("Needs you") && find_text("Run the migration") && find_text("Answer in the Harness app"));
- CHECK(find_text("Answer in the Harness app")->fg == ht_rgb(0xb46a00));
- open_view("m", POD_V_AGENT);
- render(3000);
- CHECK(art_has_pet("muse", POD_SCENE_REST, 3000, 0));
- CHECK(find_text("Idle") == NULL && find_text("Press") == NULL && find_text("to talk") == NULL); // idle: no chip
- CHECK(find_text("agent-m")->pro_font == &ht_pro_32);
- CHECK(find_hit(POD_A_BACK) != NULL);
-}
-static void agent_test_option_a_layout(void) {
- build();
- open_view("c", POD_V_AGENT);
- render(3000);
- const ht_run_t *name = find_text("agent-c"), *title = find_text("Desktop");
- CHECK(name && name->x >= 248 && name->y < 130 && name->pro_font == &ht_pro_32);
- // the pet stands on the glass left of the title block: no square of any colour behind it
- bool square = false, pet = false;
- for (int i = 0; i < S.count; i++) {
- const ht_run_t *r = &S.runs[i];
- if (r->pro_kind == K_RECT && r->w == 196 && r->x == 26) square = true;
- if (r->pro_kind >= 16 && r->x >= 26 && r->x + r->w <= name->x) pet = true;
- }
- CHECK(!square && pet && title != NULL);
- // S5 LCD pill when working: dark pill across the head column, three green bars, the verb, the time on the right.
- const ht_run_t *chip = find_working_chip(), *pill = find_pill(), *tm = find_pill_time();
- int bx0, by0, bx1, by1;
- CHECK(chip && pill && tm && pill_box(&bx0, &by0, &bx1, &by1) && bx0 == 248 && bx1 == 694 && by1 - by0 == 40 && pill->w == 694 - 248);
- for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_RECT && S.runs[i].w > 100 && S.runs[i].y >= by0 && S.runs[i].y < by1)); // no pill shape
- CHECK(chip->y > 170 && chip->y < 280 && chip->y >= pill->y && chip->y + ht_pro_24.height <= pill->y + 40 && chip->pro_font == &ht_pro_24);
- CHECK(tm->x + tm->w == 694 - 16 && tm->y >= pill->y && tm->pro_font == &ht_pro_24 && tm->x > chip->x + chip->w);
- CHECK(count_green_bars() == 3);
- // the engine is its own grey line under the name (above the tab), and no longer follows a chip
- CHECK(find_text("Claude") == NULL && title->y > name->y); // no engine line: the pet says it
- CHECK(pill->y >= find_text("Mac Studio")->y + ht_pro_24.height);
- // no time / "working" row under the bar; the activity starts right under it
- CHECK(find_text("working") == NULL && find_text("idle") == NULL);
- for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_TEXT && S.runs[i].y > 300 && S.runs[i].y < 322 && S.runs[i].x == 28));
- const ht_run_t *act = find_text("Editing touch");
- // the body starts 14 px under the art (no live bar any more: the LCD pill plays)
- CHECK(act && act->x == 28 && act->y == 84 + 196 + 14 && act->pro_font == &ht_pro_24 && act->fg == ht_rgb(0x111111));
- for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_RECT && S.runs[i].w == 664 && S.runs[i].pro_height == 9));
- open_view("x", POD_V_AGENT);
- render(3000);
- chip = find_text("Needs you");
- CHECK(chip && chip->fg == ht_rgb(0xb46a00) && chip->y < 280);
- CHECK(find_pill() == NULL && count_green_bars() == 0);
- { // no engine line, nothing to the right of the chip
- CHECK(find_text("Codex") == NULL);
- for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_TEXT && S.runs[i].y >= chip->y - 2 && S.runs[i].y < chip->y + 38 && S.runs[i].x > chip->x + chip->w));
- }
- const ht_run_t *q = find_text("Run the migration");
- CHECK(q && q->y > 300 && q->y > chip->y + 30 && find_text("Answer in the Harness app")->y > q->y);
- CHECK(find_text("working") == NULL);
- open_view("m", POD_V_AGENT);
- render(3000);
- CHECK(find_text("Idle") == NULL && find_text("Press") == NULL); // idle: no chip (owner, 2026-10-11)
- CHECK(find_text("idle") == NULL && find_pill() == NULL);
- // Item 1: nothing at all under the head of an idle agent: no bar, no text below it, only the transport.
- for (int i = 0; i < S.count; i++) {
- const ht_run_t *r = &S.runs[i];
- CHECK(!(r->pro_kind == K_RECT && r->fg == ht_rgb(0xe5e9e5)));
- CHECK(!(r->pro_kind == K_TEXT && r->y > 300 && r->y < POD_TRANSPORT_Y));
- CHECK(!(r->pro_kind == POD_TRI && r->y > 280 && r->y < POD_TRANSPORT_Y));
- }
-}
-// Items 9 and 10: the chip carries the dial's rotating verb; a working agent without activity text has an empty body.
+// The shared verb helpers (the Console and the old pill still use them).
static bool any_text_has(const char *needle);
-// Claude's own spinner verb in the activity ("Infusing…") is the pill's word, not body text; a sentence stays in the body.
static void agent_test_spinner_verb(void) {
char w[POD_VERB_MAX];
const int room = pod_lcd_verb_room(694 - 248);
@@ -231,158 +113,20 @@ static void agent_test_spinner_verb(void) {
CHECK(!pod_activity_verb("Working", w, sizeof w, room) && !pod_activity_verb("Working...", w, sizeof w, room));
CHECK(!pod_activity_verb("", w, sizeof w, room) && !pod_activity_verb(NULL, w, sizeof w, room));
CHECK(!pod_activity_verb("Editing touch_gt911.c - turning the touch the same way as the panel", w, sizeof w, room)); // too long: the body
- build();
- pod_model_turn(&M, "c", "started", NULL, 0, 10);
- pod_model_turn(&M, "c", "verb", "Infusing\xe2\x80\xa6", 0, 20);
- open_view("c", POD_V_AGENT);
- render(9000); // the made-up verb would be "Brewing" here
- const ht_run_t *chip = find_working_chip();
- CHECK(chip && !strncmp(chip->text, "Infusing...", 11));
- for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_TEXT && S.runs[i].y >= 294 && S.runs[i].y < POD_TRANSPORT_Y));
- pod_model_turn(&M, "c", "activity", "Editing touch_gt911.c - turning the touch the same way as the panel", 0, 30);
- render(9000);
- chip = find_working_chip();
- CHECK(chip && !strncmp(chip->text, "Infusing...", 11) && any_text_has("Editing touch_gt911.c")); // the verb keeps the pill; the sentence is the body
+ CHECK(!strcmp(pod_working_verb(0), "Working") && !strcmp(pod_working_verb(6), "Brewing") && !strcmp(pod_working_verb(6 * 14), "Working"));
}
-static void agent_test_verb_and_empty_body(void) {
- build();
- CHECK(!strcmp(pod_working_verb(0), "Working") && !strcmp(pod_working_verb(5), "Working"));
- CHECK(!strcmp(pod_working_verb(6), "Brewing") && !strcmp(pod_working_verb(12), "Cooking"));
- CHECK(!strcmp(pod_working_verb(6 * 14), "Working")); // it wraps
- // Started 10 ms, now 3000 ms: ~3 s in, so "Working", then the verb moves on every 6 s.
- pod_model_turn(&M, "c", "started", NULL, 0, 10); // a new turn starts blank (an empty activity read keeps the line)
- pod_model_turn(&M, "c", "activity", "", 0, 10);
- open_view("c", POD_V_AGENT);
- render(3000);
- const ht_run_t *chip = find_working_chip();
- CHECK(chip && !strncmp(chip->text, "Working...", 10) && find_pill_time() && !strncmp(find_pill_time()->text, "0:0", 3));
- render(10000);
- chip = find_working_chip();
- CHECK(chip && !strncmp(chip->text, "Brewing...", 10) && find_pill_time() && !strncmp(find_pill_time()->text, "0:", 2));
- render(25000);
- chip = find_working_chip();
- CHECK(chip && !strncmp(chip->text, pod_working_verb(24), strlen(pod_working_verb(24))));
- // No placeholder: nothing under the bar while there is no activity text.
- render(3000);
- for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_TEXT && S.runs[i].y >= 294 && S.runs[i].y < POD_TRANSPORT_Y));
- // The chip fits the head column whatever the verb; the engine name follows it.
- for (int k = 0; k < 14; k++) {
- uint32_t t = 3000 + 6000u * (uint32_t)k;
- pod_model_turn(&M, "c", "activity", "", k * 6, t); // heartbeats keep the turn alive; the cable carries the elapsed seconds
- render(t);
- chip = find_working_chip();
- CHECK(chip && !strncmp(chip->text, pod_working_verb((uint32_t)k * 6), strlen(pod_working_verb((uint32_t)k * 6))));
- CHECK(chip && find_pill_time() && chip->x + chip->w < find_pill_time()->x && find_pill_time()->x + find_pill_time()->w <= 694 && find_text("Claude") == NULL);
- }
- // Done: the verb is gone with the working chip.
- pod_model_turn(&M, "c", "done", NULL, 0, 90000);
- open_view("c", POD_V_RECAP);
- render(91000);
- CHECK(find_working_chip() == NULL);
-}
-// Item 7: an agent of an offline machine, known only from the tab's member metadata.
-static void offline_test_views(void) {
- build();
- cable_swarm_t sw1[1];
- memset(sw1, 0, sizeof sw1);
- snprintf(sw1[0].id, SWARM_ID_MAX, "s0"); snprintf(sw1[0].name, CABLE_NAME_MAX, "Desktop");
- sw1[0].panes = 6; sw1[0].agents = 6;
- const char *ids6[] = {"c", "x", "m", "u", "d", "off"};
- const char *const *idl6[1] = {ids6};
- uint8_t cnt6[1] = {6};
- static pod_member_meta_t meta[1][POD_PANES_MAX];
- memset(meta, 0, sizeof meta);
- meta[0][5] = (pod_member_meta_t){"Stylist", "codex", "Diego's Mac", true, false};
- pod_model_swarms_meta(&M, sw1, idl6, cnt6, 1, "s0", NULL, 0, meta);
- CHECK(pod_model_find(&M, "off") && pod_model_find(&M, "off")->state == POD_OFFLINE);
- // The Tab list: greyed name and sub, "Offline" on the right, still a row that opens.
- pod_nav_init(&N);
- pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
- render(3000);
- const ht_run_t *nm = find_text("Stylist"), *off = find_text("Offline");
- CHECK(nm && nm->fg == ht_rgb(0xa0a4a0) && off && off->fg == ht_rgb(0xa0a4a0) && off->x + off->w >= 690);
- const ht_run_t *sub = NULL;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && strstr(S.runs[i].text, "Diego")) sub = &S.runs[i];
- CHECK(sub && sub->fg == ht_rgb(0xa0a4a0) && !strncmp(sub->text, "Codex", 5));
- CHECK(find_text("agent-c") && find_text("agent-c")->fg != ht_rgb(0xa0a4a0)); // the others are not greyed
- // The Tabs grid card draws its mark dimmed (a faded image run), and only for the offline pane.
- pod_nav_init(&N);
- render(3000);
- int faded = 0;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_IMAGE && S.runs[i].radius == POD_MARK_DIM) faded++;
- CHECK(faded == 1);
- // Opening it: the Agent screen with a grey "Offline" chip, no bar or body, and no talking.
- pod_nav_init(&N);
- pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
- pod_out_t o = pod_nav_act(&N, &M, POD_A_OPEN_AGENT, 5, 0);
- CHECK(o.fx == POD_FX_AGENT_OPEN && N.stack[N.depth - 1].view == POD_V_AGENT);
- render(3000);
- const ht_run_t *chip = find_text("Offline");
- CHECK(chip && chip->fg == ht_rgb(0xa0a4a0) && find_text("Stylist") && find_text("6 of 6") == NULL);
- CHECK(find_working_chip() == NULL && find_text("Idle") == NULL);
- for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0xe5e9e5)));
- o = pod_nav_act(&N, &M, POD_A_TALK, 0, 1000);
- CHECK(o.fx == POD_FX_NONE && N.stack[N.depth - 1].view == POD_V_AGENT);
- // The machine leaves the metadata: the frame goes back to the tab's list.
- memset(meta, 0, sizeof meta);
- pod_model_swarms_meta(&M, sw1, idl6, cnt6, 1, "s0", NULL, 0, meta);
- pod_nav_sync(&N, &M);
- CHECK(N.depth == 2 && N.stack[1].view == POD_V_TAB);
-}
-// Item 3: the Agent screen's status bar says "Recap"; the tab name is in the head.
-static void agent_test_status_title(void) {
- build();
- open_view("c", POD_V_AGENT);
- render(3000);
- const ht_run_t *t = find_text("Recap");
- CHECK(t && t->y < POD_STATUS_H);
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < POD_STATUS_H) CHECK(strcmp(S.runs[i].text, "Desktop") != 0);
- CHECK(find_text("1 of 5") == NULL); // no "N of M" (owner, 2026-10-10)
- open_view("d", POD_V_RECAP);
- render(3000);
- CHECK(find_text("Recap") && find_text("Recap")->y < POD_STATUS_H);
- open_view("c", POD_V_TALK);
- render(3000);
- CHECK(find_text("agent-c") && find_text("agent-c")->y < POD_STATUS_H && find_text("Talking") == NULL); // Listening: the name
-}
-// No "N of M" in the status bar, from a tab list or from Recent (owner, 2026-10-10: "bo 3 of 3 di").
+// No "N of M" in the bar, from a tab list or from Recent (owner, 2026-10-10: "bo 3 of 3 di").
static void agent_test_position(void) {
build();
open_view("x", POD_V_AGENT);
render(3000);
for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < POD_STATUS_H) CHECK(strstr(S.runs[i].text, " of ") == NULL);
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < CI_BAR_H) CHECK(strstr(S.runs[i].text, " of ") == NULL);
open_view("d", POD_V_RECAP);
render(3000);
for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < POD_STATUS_H) CHECK(strstr(S.runs[i].text, " of ") == NULL);
-}
-static int body_texts(uint16_t ink, const ht_run_t *out[], int max);
-static void agent_test_activity_cap(void) {
- build();
- char big[900] = "";
- for (int i = 1; i <= 80; i++) { char t[40]; snprintf(t, sizeof t, "word%d ", i); strcat(big, t); }
- pod_model_turn(&M, "c", "activity", big, 134, 10);
- open_view("c", POD_V_AGENT);
- render(3000);
- int rows = 0;
- const ht_run_t *last = NULL;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_24 && S.runs[i].y >= 294 && S.runs[i].y < POD_TRANSPORT_Y) { rows++; last = &S.runs[i]; }
- CHECK(rows == 8 && last && last->y + ht_pro_24.height <= POD_TRANSPORT_Y);
- CHECK(strstr(last->text, "word80") == NULL); // the model keeps 512 bytes: never past 8 rows
- // a long name: one line, cut with "..."; a newline in it is a space (owner, 2026-10-11)
- pod_model_agent(&M, "c", "hello from my home\narea network gateway device in the garage and more words after", "claude", "Mac Studio");
- render(3000);
- int nrows = 0;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y > 60 && S.runs[i].y < 180 && S.runs[i].x >= 248) nrows++;
- CHECK(nrows == 1);
- const ht_run_t *nm = NULL;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && !strncmp(S.runs[i].text, "hello from my home area", 23)) nm = &S.runs[i];
- CHECK(nm && strstr(nm->text, "...") && nm->y == 92);
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < CI_BAR_H) CHECK(strstr(S.runs[i].text, " of ") == NULL);
}
// A 600 byte Vietnamese activity: the model cuts it at a codepoint boundary, the view fills 8 rows and ends with "...".
@@ -395,34 +139,6 @@ static bool utf8_valid(const char *s) {
}
return true;
}
-static void agent_test_activity_vietnamese(void) {
- build();
- char big[700] = "";
- while (strlen(big) < 600) strcat(big, "Đang kiểm tra những nguyên nhân khiến thiết bị không kết nối được ");
- pod_model_turn(&M, "c", "activity", big, 134, 10);
- const pod_agent_t *a = pod_model_find(&M, "c");
- CHECK(strlen(a->activity) > 400 && strlen(a->activity) <= sizeof a->activity - 1 && utf8_valid(a->activity));
- open_view("c", POD_V_AGENT);
- render(3000);
- int rows = 0;
- const ht_run_t *last = NULL;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_24 && S.runs[i].y >= 294 && S.runs[i].y < POD_TRANSPORT_Y) {
- rows++; last = &S.runs[i];
- CHECK(utf8_valid(S.runs[i].text));
- }
- size_t ln = last ? strlen(last->text) : 0;
- CHECK(rows >= 5 && rows <= 8 && last && last->y + ht_pro_24.height <= POD_TRANSPORT_Y);
- // the Pro font has no ellipsis glyph: the run text normalises "\xe2\x80\xa6" to three dots
- CHECK(ln >= 3 && !strcmp(last->text + ln - 3, "..."));
- // the footer's word goes to the pill and leaves the body's sentence alone
- const ht_run_t *ink[8];
- int before = body_texts(ht_rgb(0x111111), ink, 8);
- pod_model_turn(&M, "c", "verb", "Reading files", 134, 11);
- render(3000);
- CHECK(find_working_chip() && !strncmp(find_working_chip()->text, "Reading files", 13));
- CHECK(before >= 5 && body_texts(ht_rgb(0x111111), ink, 8) == before);
-}
static void agent_test_one_pet(void) {
build();
@@ -452,183 +168,37 @@ static void agent_test_runs_constant(void) {
open_view(cases[k].id, cases[k].v);
render(1000);
int want = S.count;
- CHECK(want > POD_TRANSPORT_RUNS && want <= HT_RUNS);
+ CHECK(want > 0 && want <= HT_RUNS);
for (uint32_t t = 1000; t < 7000; t += 137) { render(t); CHECK(S.count == want); }
}
}
-static void recap_test_rest_pet(void) {
- build();
- open_view("d", POD_V_RECAP);
- render(4000);
- CHECK(has_pet(46, 76, 132, "claude", POD_SCENE_REST, 4000, 0));
- CHECK(find_text("agent-d") && find_text("Done") && find_text("Desktop"));
- // A working agent's recap shows the work scene and says so.
- open_view("c", POD_V_RECAP);
- render(4000);
- CHECK(has_pet(46, 76, 132, "claude", POD_SCENE_WORK, 4000, 0));
- CHECK(find_working_chip() && find_text("The recap comes when this turn ends.") != NULL);
- for (int i = 0; i < F.hit_count; i++) CHECK(F.hits[i].y + F.hits[i].h <= 60 || F.hits[i].y >= POD_TRANSPORT_Y); // no hit in the body
- open_view("m", POD_V_RECAP);
- render(4000);
- CHECK(find_text("Idle") == NULL && find_text("The recap comes") == NULL); // idle says nothing
-}
static bool any_text_has(const char *part) {
for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && strstr(S.runs[i].text, part)) return true;
return false;
}
-static int text_rows_between(int y0, int y1) {
- int n = 0;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y >= y0 && S.runs[i].y < y1) n++;
- return n;
-}
-// The recap is plain wrapped text in one ink, no highlighted line and no hit in the body.
-static void recap_test_plain_text(void) {
- build();
- open_view("d", POD_V_RECAP);
- render(0);
- const ht_run_t *a = find_text("First line.");
- CHECK(a != NULL && a->fg == ht_rgb(0x111111) && a->pro_font == &ht_pro_32);
- CHECK(strstr(a->text, "Second line.") && strstr(a->text, "Third line.")); // the lines joined with spaces, one row here
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT) CHECK(S.runs[i].fg != ht_rgb(0xbfc3bf));
- for (int i = 0; i < F.hit_count; i++) CHECK(F.hits[i].y + F.hits[i].h <= 60 || F.hits[i].y >= POD_TRANSPORT_Y);
- CHECK(pod_recap_max_row(&N, &M) == 0);
-}
-// Item 5: at most 50 words of the recap, then "..." (Vietnamese text, counted by whitespace).
-static void recap_test_fifty_words(void) {
- build();
- char big[1800] = "";
- for (int i = 1; i <= 120; i++) { char w[40]; snprintf(w, sizeof w, "%sTiếng%d", i > 1 ? " " : "", i); strcat(big, w); }
- pod_model_recap(&M, "d", big, false);
- CHECK(strstr(pod_model_find(&M, "d")->recap, "Tiếng120") != NULL);
- open_view("d", POD_V_RECAP);
- render(0);
- // 50 words of this width take more rows than fit: the drag reaches the end, which is word 50 and "...".
- CHECK(any_text_has("Tiếng1 ") && pod_recap_max_row(&N, &M) > 0);
- pod_nav_act(&N, &M, POD_A_SCROLL, 1000, 0);
- render(0);
- char all[2400] = "";
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y >= 200) { if (*all) strcat(all, " "); strcat(all, S.runs[i].text); }
- CHECK(strstr(all, "Tiếng50...") != NULL && strstr(all, "Tiếng51") == NULL && utf8_valid(all));
- size_t n = strlen(all);
- CHECK(n > 3 && !strcmp(all + n - 3, "..."));
- // Exactly 50 words: nothing added.
- char fifty[1000] = "";
- for (int i = 1; i <= 50; i++) { char w[40]; snprintf(w, sizeof w, "%sw%d", i > 1 ? " " : "", i); strcat(fifty, w); }
- pod_model_recap(&M, "d", fifty, false);
- render(0);
- CHECK(any_text_has("w50") && !any_text_has("..."));
-}
-static void recap_test_scrolls_when_long(void) {
- build();
- char big[900] = "";
- for (int i = 1; i <= 30; i++) { char s[40]; snprintf(s, sizeof s, "Sentence-%02d-wide-token ", i); strcat(big, s); } // 30 words, one per row (the cap is 50)
- pod_model_recap(&M, "d", big, false);
- open_view("d", POD_V_RECAP);
- render(0);
- int shown = text_rows_between(200, POD_TRANSPORT_Y);
- int max = pod_recap_max_row(&N, &M);
- CHECK(shown >= 7 && max > 0 && pod_scroll_max(&N, &M) == max && pod_scroll_pitch(&N) == ht_pro_32.height);
- CHECK(any_text_has("Sentence-01-") && !any_text_has("Sentence-30-"));
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y >= 200)
- CHECK(S.runs[i].y + ht_pro_32.height <= POD_TRANSPORT_Y - 8);
- int rows = S.count;
- pod_nav_act(&N, &M, POD_A_SCROLL, 1000, 0); // past the end: the draw clamps
- render(0);
- CHECK(any_text_has("Sentence-30-") && !any_text_has("Sentence-01-") && S.count >= rows - 2);
- pod_nav_act(&N, &M, POD_A_SCROLL, -1000, 0);
- render(0);
- CHECK(any_text_has("Sentence-01-"));
-}
-// "..." on the last visible row: more below, or the source was cut; none on a short whole recap.
-static int dots_rows(void) {
- int n = 0;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y >= 200) {
- size_t l = strlen(S.runs[i].text);
- if (l >= 3 && !strcmp(S.runs[i].text + l - 3, "...")) n++;
- }
- return n;
-}
-static void recap_test_ellipsis(void) {
- build();
- open_view("d", POD_V_RECAP);
- render(0);
- CHECK(dots_rows() == 0); // short and whole
- pod_model_recap(&M, "d", "Fixed the parser and then +", false);
- render(0);
- CHECK(dots_rows() == 1 && any_text_has("Fixed the parser and then...") && !any_text_has("+"));
- char big[1400] = "";
- for (int i = 1; i <= 45; i++) { char s[40]; snprintf(s, sizeof s, "Sentence-%02d-wide-token ", i); strcat(big, s); }
- pod_model_recap(&M, "d", big, false);
- render(0);
- int shown = text_rows_between(200, POD_TRANSPORT_Y);
- CHECK(shown >= 7 && dots_rows() == 1); // fills the space, last row ends "..."
- const ht_run_t *lastrow = NULL;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y >= 200) lastrow = &S.runs[i];
- CHECK(lastrow && lastrow->y + ht_pro_32.height <= POD_TRANSPORT_Y - 8 && ht_pro_width(&ht_pro_32, lastrow->text) <= 640);
- pod_nav_act(&N, &M, POD_A_SCROLL, 1000, 0); // scrolled to the end: whole text, no dots
- render(0);
- CHECK(any_text_has("Sentence-45-") && dots_rows() == 0);
- pod_model_recap(&M, "d", "A long one that ends with a cut\xE2\x80\xA6", false);
- render(0);
- CHECK(dots_rows() == 1);
-}
static int count_kind_run(int kind);
-static int arcs_lit(void) {
+static const ht_run_t *find_in(const ht_pro_font_t *font, const char *prefix);
+// ---- Classic Voice (listening and sending): the Index look draws no bell, no transport and no buttons; one full-screen TALK
+// hit sends. The look itself is pinned in test_pod_views_inbox.c (test_talk_*).
+static int wave_bars(void) {
int n = 0;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == POD_ARC && S.runs[i].w > 0) n++;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x2c6e64) && S.runs[i].w == 5) n++;
return n;
}
-// N2 (mockup pro-listen.html): no pet, so the word Listening one letter a run, a light passing over the letters, and
-// three arcs each side drifting in; no "to ... press" line, the title is the agent's name, the send button a paper plane.
-// The send button: the play button's own gradient, and the plane's ink (its four triangles' box) centred on it.
-static void send_button_ok(void) {
- int grads = 0, x0 = 9999, x1 = -9999, y0 = 9999, y1 = -9999, tris = 0;
- for (int i = 0; i < S.count; i++) {
- const ht_run_t *r = &S.runs[i];
- if (r->pro_kind == POD_GRAD && r->w == 100 && r->y >= POD_TRANSPORT_Y) grads++;
- if (r->pro_kind == POD_TRI && r->y >= POD_TRANSPORT_Y && r->x > 300 && r->x + r->w < 420) {
- tris++;
- if (r->x < x0) x0 = r->x;
- if (r->x + r->w > x1) x1 = r->x + r->w;
- if (r->y < y0) y0 = r->y;
- if (r->y + r->pro_height > y1) y1 = r->y + r->pro_height;
- }
- }
- CHECK(grads == 1 && tris == 4);
- CHECK(abs((x0 + x1) - 2 * 360) <= 2 && abs((y0 + y1) - 2 * (POD_TRANSPORT_Y + 63)) <= 2);
-}
static void talk_test_word_without_pet(void) {
build();
CHECK(!pod_pet_has("cursor", POD_SCENE_LISTEN));
open_view("u", POD_V_TALK);
render(4000);
- CHECK(count_cells() == 0);
- const ht_run_t *L = find_text("L");
- CHECK(L && find_text("g") && find_text("Listening") == NULL && find_text("to ") == NULL);
- CHECK(L->y > POD_STATUS_H && L->y + ht_pro_32.height < POD_TRANSPORT_Y);
- CHECK(find_text("agent-u") && find_text("agent-u")->y < POD_STATUS_H);
- CHECK(count_kind_run(POD_ARC) >= 6 && arcs_lit() >= 2 && arcs_lit() % 2 == 0);
+ CHECK(count_cells() == 0 && wave_bars() == 13); // no pet: the text and the bars alone
+ CHECK(find_in(&ci_rg_48, "Listening.") && find_in(&ci_rg_24, "Tap to send.") && find_in(&ci_bd_23, "agent-u"));
CHECK(count_rects(ht_rgb(0xff3b30), 12) == 0);
- send_button_ok();
int runs = S.count;
- uint16_t ink0 = L->fg;
- int moved = 0;
- for (uint32_t t = 4000; t < 5700; t += 105) {
- render(t);
- CHECK(S.count == runs); // the arcs keep their slots
- moved += find_text("L")->fg != ink0;
- }
- CHECK(moved > 0); // the light passes
+ for (uint32_t t = 4000; t < 5700; t += 105) { render(t); CHECK(S.count == runs); } // the bars keep their slots
}
static void talk_test_listen_with_pet(void) {
@@ -636,42 +206,30 @@ static void talk_test_listen_with_pet(void) {
CHECK(pod_pet_has("claude", POD_SCENE_LISTEN));
open_view("c", POD_V_TALK);
render(4000);
- CHECK(count_rects(ht_rgb(0xff3b30), 12) == 0);
- CHECK(has_pet(230, (POD_STATUS_H + POD_TRANSPORT_Y) / 2 - 130, 260, "claude", POD_SCENE_LISTEN, 4000, 1000));
- CHECK(find_text("Listening") == NULL && find_text("agent-c") && find_text("agent-c")->y < POD_STATUS_H);
- send_button_ok();
- CHECK(find_text("SEND") == NULL && find_text("TALK") == NULL && find_text("TABS") != NULL && find_text("PANES") != NULL);
+ CHECK(has_pet_on(219, 192, 281, "claude", POD_SCENE_LISTEN, 4000, 1000, 0xf6f6f0));
+ CHECK(find_in(&ci_rg_48, "Listening.") && find_in(&ci_bd_23, "agent-c") && find_in(&ci_rg_23, "To "));
+ CHECK(find_text("TABS") == NULL && find_text("TALK") == NULL && find_text("PANES") == NULL && find_text("SEND") == NULL);
}
-static void transport_test_hit_sizes(void) {
+static void transport_test_hit_sizes(void) { // Voice has no transport: the Back hit and one full-screen TALK hit
build();
- static const struct { const char *id; pod_view_t v; } cases[] = {
- {"c", POD_V_AGENT}, {"x", POD_V_AGENT}, {"m", POD_V_AGENT}, {"c", POD_V_RECAP}, {"d", POD_V_RECAP},
- {"c", POD_V_TALK}, {"u", POD_V_TALK},
- };
- for (unsigned k = 0; k < sizeof cases / sizeof cases[0]; k++) {
- open_view(cases[k].id, cases[k].v);
+ static const char *const ids[] = {"c", "u"};
+ for (unsigned k = 0; k < 2; k++) {
+ open_view(ids[k], POD_V_TALK);
render(2000);
- int transport = 0;
- for (int i = 0; i < F.hit_count; i++) {
- const pod_hit_t *h = &F.hits[i];
- CHECK(h->x >= 0 && h->x + h->w <= 720 && h->y >= 0 && h->y + h->h <= 720);
- if (h->y >= POD_TRANSPORT_Y) { CHECK(h->w >= 80 && h->h >= 80); transport++; }
- }
- CHECK(transport == 5);
- CHECK(find_hit(POD_A_TABS) && find_hit(POD_A_PANES) && find_hit(POD_A_PREV) && find_hit(POD_A_TALK) && find_hit(POD_A_NEXT));
- CHECK(find_hit(POD_A_RECAP) == NULL);
- CHECK(find_text("RECAP") == NULL && find_text("TALK") == NULL);
- CHECK(find_hit(POD_A_BACK) != NULL);
+ CHECK(F.hit_count == 2);
+ const pod_hit_t *talk = find_hit(POD_A_TALK), *back = find_hit(POD_A_BACK);
+ CHECK(talk && talk->x == 0 && talk->y == 88 && talk->w == 720 && talk->h == 632);
+ CHECK(back && back->x == 0 && back->y == 0 && back->w == 173 && back->h == 88);
+ CHECK(!find_hit(POD_A_TABS) && !find_hit(POD_A_PANES) && !find_hit(POD_A_PREV) && !find_hit(POD_A_NEXT) && !find_hit(POD_A_INBOX));
}
}
-// After the stop tap the voice screen stays up as "sending": the pet in the listen slot plays SEND from the tap and holds
-// its last step; a pet-less engine gets the three-dot sweep and the word Sending. The Agent screen never plays SEND.
+// After the stop tap the voice screen stays up as "sending": the pet plays SEND from the tap and holds its last step; a pet-less
+// engine gets the text alone. The Agent screen never plays SEND.
static void send_test_pet_in_listen_slot(void) {
static const char *const eng[] = {"c", "x", "m"};
static const char *const name[] = {"claude", "codex", "muse"};
- const int cy = (POD_STATUS_H + POD_TRANSPORT_Y) / 2;
for (int k = 0; k < 3; k++) {
build();
open_view(eng[k], POD_V_TALK);
@@ -681,15 +239,14 @@ static void send_test_pet_in_listen_slot(void) {
CHECK(sc != NULL);
uint32_t len = (uint32_t)sc->steps * sc->step_ms;
render(6000 + 50);
- CHECK(has_pet(230, cy - 130, 260, name[k], POD_SCENE_SEND, 6050, 6000));
- CHECK(!has_pet(230, cy - 130, 260, name[k], POD_SCENE_LISTEN, 6050, 1000));
- CHECK(find_text("Sending") == NULL && find_text("Listening") == NULL);
- CHECK(find_text("agent-") && find_text("agent-")->y < POD_STATUS_H);
+ CHECK(has_pet_on(255, 186, 209, name[k], POD_SCENE_SEND, 6050, 6000, 0xf6f6f0));
+ CHECK(!has_pet_on(219, 192, 281, name[k], POD_SCENE_LISTEN, 6050, 1000, 0xf6f6f0));
+ CHECK(find_in(&ci_bd_45, "Sending your words") && !find_in(&ci_rg_48, "Listening.") && find_in(&ci_rg_30, "agent-"));
int want = S.count;
render(6000 + len - 1);
- CHECK(has_pet(230, cy - 130, 260, name[k], POD_SCENE_SEND, 6000 + len - 1, 6000) && S.count == want);
+ CHECK(has_pet_on(255, 186, 209, name[k], POD_SCENE_SEND, 6000 + len - 1, 6000, 0xf6f6f0) && S.count == want);
render(6000 + len + 5000); // held on its last step
- CHECK(has_pet(230, cy - 130, 260, name[k], POD_SCENE_SEND, 6000 + len + 5000, 6000));
+ CHECK(has_pet_on(255, 186, 209, name[k], POD_SCENE_SEND, 6000 + len + 5000, 6000, 0xf6f6f0));
CHECK(pod_view_talk_next_ms(&N, &M, 6000 + len + 5000) > 0);
// the turn begins: the Agent screen shows the working gif, no SEND
pod_model_sent(&M, ID[k], 6100);
@@ -697,7 +254,7 @@ static void send_test_pet_in_listen_slot(void) {
pod_nav_sync(&N, &M);
CHECK(N.stack[N.depth - 1].view == POD_V_AGENT);
render(6300);
- CHECK(!has_pet(34, 92, 180, name[k], POD_SCENE_SEND, 6300, 6000));
+ CHECK(!has_pet_on(32, 104, 104, name[k], POD_SCENE_SEND, 6300, 6000, 0xf6f6f0));
}
// A tap on the voice screen while sending does nothing.
CHECK(pod_nav_act(&N, &M, POD_A_TALK, 0, 7000).fx != POD_FX_VOICE_END);
@@ -706,33 +263,21 @@ static void send_test_word_without_pet(void) {
build();
CHECK(!pod_pet_has("cursor", POD_SCENE_SEND));
open_view("u", POD_V_TALK);
- render(4000);
- const ht_run_t *L = find_text("L");
- CHECK(L);
- int lx = L->x, ly = L->y;
pod_nav_act(&N, &M, POD_A_TALK, 0, 6000);
render(6000);
- const ht_run_t *Sg = find_text("S");
- CHECK(Sg && find_text("g") && find_text("L") == NULL && find_text("Sending") == NULL);
- CHECK(Sg->y == ly && Sg->y > POD_STATUS_H && Sg->y + ht_pro_32.height < POD_TRANSPORT_Y);
- (void)lx;
- CHECK(count_kind_run(POD_ARC) == 0 && arcs_lit() == 0);
- int runs = S.count, moved = 0;
- uint16_t ink0 = Sg->fg;
+ CHECK(count_cells() == 0 && find_in(&ci_bd_45, "Sending your words") && !find_in(&ci_rg_48, "Listening.") && wave_bars() == 0);
+ int runs = S.count;
for (uint32_t t = 6000; t < 7600; t += 105) {
render(t);
CHECK(S.count == runs); // constant per frame
- moved += find_text("S")->fg != ink0;
CHECK(pod_view_talk_next_ms(&N, &M, t) == POD_PET_STEP_MS);
}
- CHECK(moved > 0); // the light passes
- send_button_ok();
}
static int chrome_arcs(void) { // arcs in the status bar and transport (the pets draw their own)
int n = 0;
for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == POD_ARC && S.runs[i].w > 0 && (S.runs[i].y < POD_STATUS_H || S.runs[i].y >= POD_TRANSPORT_Y)) n++;
+ if (S.runs[i].pro_kind == POD_ARC && S.runs[i].w > 0 && (S.runs[i].y < CI_BAR_H || S.runs[i].y >= POD_TRANSPORT_Y)) n++;
return n;
}
static int count_kind_run(int kind) {
@@ -746,11 +291,11 @@ static void icon_test_triangles(void) {
build();
open_view("m", POD_V_AGENT);
render(3000);
- // chevron 4 + prev and next 2; the middle button is the mic, whose one chrome arc is its cradle.
- CHECK(count_kind_run(POD_TRI) == 4 + 2 && chrome_arcs() == 1);
+ // the bar's chevron (4); two chrome arcs: the outline bell's dome and the Talk mic's cradle.
+ CHECK(count_kind_run(POD_TRI) == 4 && chrome_arcs() == 2);
open_view("d", POD_V_RECAP);
render(3000);
- CHECK(count_kind_run(POD_TRI) == 4 + 2 + 4 && chrome_arcs() == 1); // + the Done tick (4)
+ CHECK(count_kind_run(POD_TRI) == 4 + 4 && chrome_arcs() == 2); // + the band's tick (4)
}
// The chevron is one clean stroke: no gaps at the joint, nothing outside its outline.
static void icon_test_chevron_solid(void) {
@@ -781,102 +326,7 @@ static void icon_test_chevron_solid(void) {
CHECK(inked > 40);
CHECK(buf[(20 + 13) * W + 17] == blue || buf[(20 + 13) * W + 16] == blue || buf[(20 + 12) * W + 17] == blue); // the joint
}
-static void who_test_line_and_names(void) {
- build();
- open_view("c", POD_V_AGENT);
- render(3000);
- const ht_run_t *tab = NULL;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && !strcmp(S.runs[i].text, "Desktop") && S.runs[i].fg == ht_rgb(0x1f63d1)) tab = &S.runs[i];
- const ht_run_t *mach = find_text("Mac Studio");
- CHECK(tab && tab->fg == ht_rgb(0x1f63d1) && mach && mach->fg == ht_rgb(0x7b7d84));
- // Item 4: the tab alone on its line, the machine alone on the next (no dot), the chip under both.
- CHECK(!strcmp(tab->text, "Desktop") && !strcmp(mach->text, "Mac Studio") && !any_text_has("\xc2\xb7"));
- CHECK(tab->x == 248 && mach->x == 248 && mach->y >= tab->y + ht_pro_24.height - 2);
- const ht_run_t *chipw = find_working_chip();
- CHECK(chipw && find_pill() && find_pill()->y >= mach->y + ht_pro_24.height - 2 && find_pill()->y + 40 < 294);
- CHECK(!any_text_has("pane "));
- open_view("d", POD_V_RECAP);
- render(3000);
- CHECK(find_text("Desktop") && find_text("Mac Studio") && !any_text_has("pane ") && find_text("Claude") == NULL);
- { // the tab, the machine and the "Done" line stack above the body, which starts at 272
- const ht_run_t *t1 = find_text("Desktop"), *m1 = find_text("Mac Studio"), *d1 = find_text("Done");
- CHECK(t1->y + ht_pro_24.height <= m1->y + 2 && m1->y + ht_pro_24.height <= d1->y + 2 && d1->y + ht_pro_24.height <= 272);
- }
- // No machine: just the tab.
- pod_model_agent(&M, "m", "agent-m", "muse", "");
- open_view("m", POD_V_AGENT);
- render(3000);
- CHECK(find_text("Desktop") && !any_text_has("\xc2\xb7"));
- // A long name: one line in 32, cut with "...", on the Agent screen and the Recap.
- const char *longname = "hello from my home area network gateway device in the garage";
- pod_model_agent(&M, "m", longname, "muse", "Mac Studio");
- open_view("m", POD_V_AGENT);
- render(3000);
- const ht_run_t *n = find_text("hello from");
- CHECK(n && n->pro_font == &ht_pro_32);
- open_view("m", POD_V_RECAP);
- render(3000);
- int rows = 0;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y < 170 && S.runs[i].y > 60) rows++;
- CHECK(rows == 1);
- CHECK(find_text("hello from")->pro_font == &ht_pro_32 && strstr(find_text("hello from")->text, "..."));
- const ht_run_t *who = NULL, *last = NULL;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && !strcmp(S.runs[i].text, "Desktop") && S.runs[i].fg == ht_rgb(0x1f63d1)) who = &S.runs[i];
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_32 && S.runs[i].y < 170 && S.runs[i].y > 60) last = &S.runs[i];
- CHECK(who && last && who->y >= last->y + 36); // the info line sits under the name
- { // and the recap body starts under the three info lines
- const ht_run_t *dn = find_text("Mac Studio"); // idle: the machine is the head's last line
- CHECK(find_text("Idle") == NULL && dn && dn->y + ht_pro_24.height <= 302);
- }
- // A short name is one line in 32 on both screens.
- pod_model_agent(&M, "m", "short", "muse", "Mac Studio");
- open_view("m", POD_V_RECAP);
- render(3000);
- CHECK(find_text("short")->pro_font == &ht_pro_32);
- open_view("m", POD_V_AGENT);
- render(3000);
- CHECK(find_text("short")->pro_font == &ht_pro_32);
-}
-// S5 LCD: the status is a dark pill only while working; the engine is a line under the name; same 14 px rhythm.
-static void lcd_test_agent_and_recap(void) {
- build();
- open_view("c", POD_V_AGENT);
- render(3000);
- const ht_run_t *name = find_text("agent-c"), *tab = find_text("Desktop"), *mach = find_text("Mac Studio"), *pill = find_pill();
- CHECK(name && tab && mach && pill && find_text("Claude") == NULL);
- CHECK(tab->y - name->y == 9 + 23 + 14 - 6); // the first line sits 14 px under the name's baseline
- CHECK(mach->y - tab->y == 31);
- CHECK(pill->y == mach->y + 6 + 17 + 14); // and so does the pill under the machine line
- CHECK(pill->y + 40 <= 294);
- // The bars move between ticks; the run count stays put.
- int count1 = S.count;
- render(3150);
- CHECK(S.count == count1 && count_green_bars() == 3);
- { // bar heights differ between the two ticks
- ht_run_t a[3], b[3]; int na = 0, nb = 0;
- render(3000);
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x2a9a57) && na < 3) a[na++] = S.runs[i];
- render(3150);
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x2a9a57) && nb < 3) b[nb++] = S.runs[i];
- int diff = 0;
- for (int k = 0; k < 3; k++) diff += a[k].pro_height != b[k].pro_height;
- CHECK(na == 3 && nb == 3 && diff > 0);
- }
- // Recap while working: the same pill, the engine line, the body under it; Done keeps its line, no pill.
- open_view("c", POD_V_RECAP);
- render(3000);
- pill = find_pill();
- CHECK(pill && find_working_chip() && find_pill_time() && count_green_bars() == 3 && !any_text_has("\xe2\x96\xae"));
- CHECK(find_text("Claude") == NULL && find_text("Desktop") && find_text("Desktop")->x == 201);
- { int a0, b0, a1, b1; CHECK(pill_box(&a0, &b0, &a1, &b1) && a0 == 201 && b1 - b0 == 40); }
- CHECK(pill->y >= find_text("Mac Studio")->y + ht_pro_24.height);
- CHECK(find_text("The recap comes when this turn ends.")->y >= pill->y + 40);
- open_view("d", POD_V_RECAP);
- render(3000);
- CHECK(find_pill() == NULL && find_text("Done") && find_text("Claude") == NULL);
-}
// ---- the pill takes the glass's colour; the steps of a working turn ----------------------------------------
@@ -923,103 +373,431 @@ static void lcd_test_content_only(void) {
}
}
-static int body_texts(uint16_t ink, const ht_run_t *out[], int max) {
+
+
+
+// ---- Classic Index: Agent and Recap -------------------------------------------------------------------------------
+
+static bool has_pet104(const char *engine, pod_scene_t scene, uint32_t now) { return has_pet_on(32, 104, 104, engine, scene, now, 0, 0xf6f6f0); }
+static const ht_run_t *find_in(const ht_pro_font_t *font, const char *prefix) {
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == font && !strncmp(S.runs[i].text, prefix, strlen(prefix))) return &S.runs[i];
+ return NULL;
+}
+static int count_in(const ht_pro_font_t *font, int y0, int y1) {
int n = 0;
- for (int i = 0; i < S.count && n < max; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ht_pro_24 && S.runs[i].y >= 290 && S.runs[i].y < POD_TRANSPORT_Y &&
- S.runs[i].fg == ink) out[n++] = &S.runs[i];
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == font && S.runs[i].y >= y0 && S.runs[i].y < y1) n++;
return n;
}
-// A working agent shows the sentence in ink, then its previous steps in grey, newest first, one line each, above the transport.
-static void agent_test_steps(void) {
+static bool ends_with(const char *t, const char *tail) { size_t a = strlen(t), b = strlen(tail); return a >= b && !strcmp(t + a - b, tail); }
+static void push_steps(const char *id, int n, uint32_t t) {
+ for (int i = 0; i < n; i++) { char st[40]; snprintf(st, sizeof st, "Step %d \xc2\xb7 file%d.c", i + 1, i + 1); pod_model_turn(&M, id, "step", st, 134, t + (uint32_t)i); }
+}
+// A Vietnamese sentence, cut by the model at a codepoint.
+static void viet(char *out, size_t n) {
+ out[0] = 0;
+ while (strlen(out) < n - 160) strcat(out, "Đang kiểm tra những nguyên nhân khiến thiết bị không kết nối được ");
+}
+
+static void test_agent_working_body(void) {
build();
- pod_model_turn(&M, "c", "started", NULL, 0, 10);
- pod_model_turn(&M, "c", "activity", "Reading pod_view_agent.c to find the pill", 3, 20);
+ push_steps("c", 3, 20);
open_view("c", POD_V_AGENT);
render(3000);
- const ht_run_t *ink[8], *grey[8];
- CHECK(body_texts(ht_rgb(0x111111), ink, 8) == 1 && body_texts(ht_rgb(0x7b7d84), grey, 8) == 0);
- pod_model_turn(&M, "c", "activity", "Running npm test to see which specs fail", 9, 30);
- pod_model_turn(&M, "c", "activity", "Fixing the failing spec in the model feed", 12, 40);
+ CHECK(find_in(&ci_bd_30, "Task") && find_in(&ci_rg_26, "Desktop") && find_hit(POD_A_BACK)); // the back label is the origin tab
+ CHECK(find_in(&ci_rg_41, "agent-c") && find_in(&ci_rg_41, "agent-c")->x == 152);
+ CHECK(find_in(&ci_rg_23, "Desktop \xc2\xb7 Mac Studio"));
+ CHECK(has_pet104("claude", POD_SCENE_WORK, 3000));
+ CHECK(find_in(&ci_rg_25, "Working") && find_in(&ci_rg_22, "2:") && find_in(&ci_rg_26, "Claude")); // the band: elapsed 2:14, Engine (no tokens)
+ const ht_run_t *label = find_in(&ci_bd_20, "RIGHT NOW");
+ CHECK(label && label->fg == CI_MUTED && label->x == 32);
+ const ht_run_t *act = find_in(&ci_rg_32, "Editing touch");
+ CHECK(act && act->x == 32 && act->fg == CI_INK && act->y > label->y);
+ CHECK(count_in(&ci_rg_32, 300, CI_TRANS_Y) <= 3);
+ int steps = 0;
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ci_rg_22 && S.runs[i].fg == CI_MUTED && S.runs[i].y > act->y) { steps++; CHECK(S.runs[i].x == 32); }
+ CHECK(steps == 2 && find_in(&ci_rg_22, "Step 3") && find_in(&ci_rg_22, "Step 2") && !find_in(&ci_rg_22, "Step 1")); // the two newest
+ const ht_run_t *up = find_in(&ci_rg_20, "Updated just now");
+ CHECK(up && up->fg == ht_rgb(0x7b827c) && up->y > find_in(&ci_rg_22, "Step 2")->y);
+ const pod_hit_t *talk = find_hit(POD_A_TALK);
+ CHECK(talk && talk->x == 32 && talk->w == 656 && talk->h == 88);
+ CHECK(!find_hit(POD_A_PREV) && !find_hit(POD_A_NEXT) && !find_hit(POD_A_TABS) && !find_hit(POD_A_PANES)); // the old transport is gone
+ // A long activity: three lines, the last cut with the ellipsis (the model's own cut also ends with one).
+ char big[600] = "";
+ for (int i = 1; i <= 60; i++) { char w[24]; snprintf(w, sizeof w, "word%d ", i); strcat(big, w); }
+ pod_model_turn(&M, "c", "activity", big, 134, 30);
+ render(3000);
+ CHECK(count_in(&ci_rg_32, 300, CI_TRANS_Y) == 3);
+ const ht_run_t *last = NULL;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ci_rg_32 && S.runs[i].y > 300) last = &S.runs[i];
+ CHECK(last && ends_with(last->text, "\xe2\x80\xa6") && last->w <= 656);
+ // No activity text: the rotating gerund, not an empty body.
+ pod_model_turn(&M, "c", "started", NULL, 0, 40);
+ pod_model_turn(&M, "c", "activity", "", 0, 40);
render(3000);
- int ni = body_texts(ht_rgb(0x111111), ink, 8), ng = body_texts(ht_rgb(0x7b7d84), grey, 8);
- CHECK(ni == 1 && !strncmp(ink[0]->text, "Fixing the failing", 18) && ink[0]->y == 84 + 196 + 14);
- CHECK(ng == 2 && !strncmp(grey[0]->text, "Running npm test", 16) && !strncmp(grey[1]->text, "Reading pod_view_agent.c", 24));
- CHECK(grey[0]->y >= ink[0]->y + ht_pro_24.height && grey[1]->y > grey[0]->y && grey[1]->y + ht_pro_24.height <= POD_TRANSPORT_Y);
- CHECK(grey[0]->x == 28 && grey[0]->pro_font == &ht_pro_24);
- // an empty read never blanks a line
- pod_model_turn(&M, "c", "activity", "", 13, 50);
+ CHECK(find_in(&ci_rg_32, "Working\xe2\x80\xa6"));
+}
+
+static void test_agent_updated_minutes(void) {
+ build();
+ open_view("c", POD_V_AGENT);
+ render(59000); // event at 10 ms: 58.99 s
+ CHECK(find_in(&ci_rg_20, "Updated just now"));
+ render(60010);
+ CHECK(find_in(&ci_rg_20, "Updated 1m ago"));
+ render(180010);
+ CHECK(find_in(&ci_rg_20, "Updated 3m ago") && !find_in(&ci_rg_20, "Updated just"));
+ render(3600010 - 1);
+ CHECK(find_in(&ci_rg_20, "Updated 59m ago"));
+ render(3600010);
+ CHECK(find_in(&ci_rg_20, "Updated 1h ago"));
+ render(2u * 3600000u + 10 + 59 * 60000u);
+ CHECK(find_in(&ci_rg_20, "Updated 2h ago"));
+ render(1000); // the clock behind the event: still "just now"
+ CHECK(find_in(&ci_rg_20, "Updated just now"));
+ pod_agent_t *a = (pod_agent_t *)pod_model_find(&M, "c"); // no event time: no line, never "0"
+ a->has_event = false;
+ render(3000);
+ CHECK(!find_in(&ci_rg_20, "Updated"));
+ a->has_event = true; a->event_ms = 0;
+ render(3000);
+ CHECK(!find_in(&ci_rg_20, "Updated"));
+}
+
+static void test_agent_asking(void) {
+ build();
+ open_view("x", POD_V_AGENT);
render(3000);
- CHECK(body_texts(ht_rgb(0x111111), ink, 8) == 1 && body_texts(ht_rgb(0x7b7d84), grey, 8) == 2);
- // the run count is the same whatever the clock says; a long sentence leaves room for the steps and stays above the transport
- pod_model_turn(&M, "c", "activity", "Doing a long thing that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on", 14, 60);
+ CHECK(has_pet104("codex", POD_SCENE_ASK, 3000));
+ CHECK(find_in(&ci_rg_25, "Needs you")->fg == CI_AMBER && find_in(&ci_rg_22, "\xe2\x80\x94")); // elapsed unknown: a dash
+ bool box = false, bar = false;
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind == K_RECT && r->fg == CI_ASK_FILL && r->x == 32 && r->w == 656) box = true;
+ if (r->pro_kind == K_RECT && r->fg == CI_ASK_BAR && r->x == 32 && r->w == 4) bar = true;
+ }
+ CHECK(box && bar);
+ const ht_run_t *q = find_in(&ci_rg_32, "Run the migration");
+ CHECK(q && q->x == 32 + 23 && q->fg == CI_INK);
+ const ht_run_t *hint = find_in(&ci_rg_23, "Answer it in the Harness app.");
+ CHECK(hint && hint->fg == CI_MUTED && hint->y > q->y && hint->x == 32);
+ CHECK(!find_in(&ci_bd_20, "RIGHT NOW") && !find_hit(POD_A_TALK));
+ // The transport is drawn disabled (one run fewer than none: the button still exists, at 45%).
+ CHECK(find_in(&ci_rg_28, "Talk"));
+ // A three line question stays above the hint and the transport.
+ char big[600] = "";
+ for (int i = 1; i <= 40; i++) { char w[24]; snprintf(w, sizeof w, "question%d ", i); strcat(big, w); }
+ pod_model_question(&M, "x", big);
+ render(3000);
+ CHECK(count_in(&ci_rg_32, 300, CI_TRANS_Y) <= 3 && find_in(&ci_rg_23, "Answer it")->y + ci_rg_23.height <= CI_TRANS_Y);
+}
+
+static void offline_setup(void) {
+ build();
+ cable_swarm_t sw1[1];
+ memset(sw1, 0, sizeof sw1);
+ snprintf(sw1[0].id, SWARM_ID_MAX, "s0"); snprintf(sw1[0].name, CABLE_NAME_MAX, "Desktop");
+ sw1[0].panes = 6; sw1[0].agents = 6;
+ static const char *ids6[] = {"c", "x", "m", "u", "d", "off"};
+ const char *const *idl6[1] = {ids6};
+ uint8_t cnt6[1] = {6};
+ static pod_member_meta_t meta[1][POD_PANES_MAX];
+ memset(meta, 0, sizeof meta);
+ meta[0][5] = (pod_member_meta_t){"Stylist", "codex", "Diego's Mac", true, false};
+ pod_model_swarms_meta(&M, sw1, idl6, cnt6, 1, "s0", NULL, 0, meta);
+ CHECK(pod_model_find(&M, "off") && pod_model_find(&M, "off")->state == POD_OFFLINE);
+ pod_nav_init(&N);
+ pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
+ pod_out_t o = pod_nav_act(&N, &M, POD_A_OPEN_AGENT, 5, 0);
+ CHECK(o.fx == POD_FX_AGENT_OPEN && N.stack[N.depth - 1].view == POD_V_AGENT);
+}
+static void test_agent_offline(void) {
+ offline_setup();
render(3000);
- int last_y = 0;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y >= 290 && S.runs[i].y < POD_TRANSPORT_Y && S.runs[i].y > last_y) last_y = S.runs[i].y;
- CHECK(body_texts(ht_rgb(0x7b7d84), grey, 8) >= 1 && last_y + ht_pro_24.height <= POD_TRANSPORT_Y);
- int want = S.count;
- for (uint32_t t = 3000; t < 9000; t += 211) { render(t); CHECK(S.count == want); }
- // the pill's word changes neither the sentence nor the steps
- int rows_before = body_texts(ht_rgb(0x111111), ink, 8);
- pod_model_turn(&M, "c", "verb", "Infusing\xe2\x80\xa6", 15, 70);
+ CHECK(find_in(&ci_rg_41, "Stylist") && find_in(&ci_rg_25, "Offline")->fg == CI_MUTED);
+ CHECK(find_in(&ci_rg_32, "That machine is offline.") && find_in(&ci_rg_23, "Reconnect Diego's Mac in Harness to continue."));
+ CHECK(!find_in(&ci_bd_20, "RIGHT NOW") && !find_hit(POD_A_TALK) && find_in(&ci_rg_28, "Talk"));
+ // The pet cannot fade (cells and arcs): the head is the pale cover with the logo at 50%, and no pet run at all.
+ CHECK(!has_pet104("codex", POD_SCENE_REST, 3000) && count_cells() == 0);
+ int faded = 0;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_IMAGE && S.runs[i].radius == 128 && S.runs[i].x >= 32 && S.runs[i].x < 136 && S.runs[i].y >= 104 && S.runs[i].y < 208) faded++;
+ CHECK(faded == 1);
+ pod_out_t o = pod_nav_act(&N, &M, POD_A_TALK, 0, 1000); // and the nav ignores a Talk tap on it
+ CHECK(o.fx == POD_FX_NONE && N.stack[N.depth - 1].view == POD_V_AGENT);
+ // No machine name: the copy still reads.
+ snprintf(((pod_agent_t *)pod_model_find(&M, "off"))->machine, CABLE_NAME_MAX, "%s", "");
render(3000);
- CHECK(find_working_chip() && !strncmp(find_working_chip()->text, "Infusing...", 11));
- CHECK(body_texts(ht_rgb(0x111111), ink, 8) == rows_before && body_texts(ht_rgb(0x7b7d84), grey, 8) >= 1);
+ CHECK(find_in(&ci_rg_23, "Reconnect it in Harness to continue."));
}
-// The daemon's real cadence for one agent: every ~3 s a turn.activity arrives as the footer word, then (ms later) the
-// progress sentence, with empty reads of either in between. Neither source may blank or replace the other: every beat
-// renders the same body and pill (the clock is held still, so the frames must be byte-identical).
-static void agent_test_cadence_replay(void) {
+static void test_agent_idle_copy(void) {
build();
- pod_model_turn(&M, "c", "started", NULL, 0, 10);
+ open_view("m", POD_V_AGENT);
+ render(3000);
+ CHECK(has_pet104("muse", POD_SCENE_REST, 3000));
+ CHECK(find_in(&ci_rg_25, "Ready") && find_in(&ci_rg_22, "\xe2\x80\x94"));
+ const ht_run_t *a = find_in(&ci_rg_32, "Ready when you are."), *b = find_in(&ci_rg_23, "Send a new voice instruction to this agent.");
+ CHECK(a && a->fg == CI_INK && b && b->fg == CI_MUTED && b->y > a->y && a->x == 32);
+ CHECK(find_hit(POD_A_TALK) && !find_in(&ci_bd_20, "RIGHT NOW") && !find_in(&ci_rg_20, "Updated"));
+ open_view("u", POD_V_AGENT); // cursor: no pet, the engine's cover
+ render(3000);
+ CHECK(find_in(&ci_rg_32, "Ready when you are.") && find_hit(POD_A_TALK));
+}
+
+static void test_agent_vietnamese_activity_wraps(void) {
+ build();
+ char big[800];
+ viet(big, sizeof big);
+ pod_model_turn(&M, "c", "activity", big, 134, 10);
open_view("c", POD_V_AGENT);
- static ht_run_t ref[HT_RUNS];
- int ref_count = 0;
- const char *verbs[] = {"Infusing...", "", "Infusing\xe2\x80\xa6", "", "Infusing..."};
- for (int beat = 0; beat < 40; beat++) {
- uint32_t t = 100 + (uint32_t)beat * 3000;
- pod_model_turn(&M, "c", "verb", verbs[beat % 5], 5 + beat * 3, t);
- pod_model_turn(&M, "c", "activity", beat % 3 == 1 ? "" : "Editing pod_view_agent.c to show the steps", 5 + beat * 3, t + 20);
- pod_model_turn(&M, "c", "verb", "", 5 + beat * 3, t + 30);
- pod_model_turn(&M, "c", "activity", "", 5 + beat * 3, t + 40);
- if (beat == 0) { pod_model_turn(&M, "c", "activity", "Editing pod_view_agent.c to show the steps", 5, t + 50); }
- // a fixed instant: the rotating gerund and the clock move with the elapsed seconds, so fix those too
- pod_model_turn(&M, "c", "activity", "", 5, t + 60);
- render(7000);
- if (!ref_count) {
- ref_count = S.count;
- memcpy(ref, S.runs, sizeof(ht_run_t) * (size_t)S.count);
- CHECK(find_working_chip() && !strncmp(find_working_chip()->text, "Infusing...", 11) && find_text("Editing pod_view_agent.c"));
- continue;
+ render(3000);
+ int rows = 0;
+ const ht_run_t *last = NULL;
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind == K_TEXT && r->pro_font == &ci_rg_32 && r->y > 300 && r->y < CI_TRANS_Y) {
+ rows++; last = r;
+ CHECK(utf8_valid(r->text) && r->w <= 656 && r->x == 32 && r->x + r->w <= 688);
}
- CHECK(S.count == ref_count);
- // elapsed advances the time run only; every other run is identical, byte for byte
- for (int i = 0; i < S.count; i++) {
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].fg == ht_rgb(0x1f9d4c)) continue;
- CHECK(!memcmp(&S.runs[i], &ref[i], sizeof S.runs[0]));
+ }
+ CHECK(rows == 3 && last && ends_with(last->text, "\xe2\x80\xa6"));
+ // A long Vietnamese name, tab and back label end with the ellipsis inside their boxes: never over the time, the bell or each other.
+ char name[CABLE_NAME_MAX];
+ snprintf(name, sizeof name, "%s", "Đang kiểm tra những nguyên nhân khiến thiết bị không kết nối được nữa");
+ pod_model_agent(&M, "c", name, "claude", "Máy tính của Diệp ở văn phòng phía sau nhà");
+ snprintf(sw[0].name, CABLE_NAME_MAX, "%s", "Thư mục dự án chung của cả nhóm phát triển phần mềm");
+ pod_model_swarms(&M, sw, (const char *const **)idl, idn, 1, "s0", NULL, 0);
+ open_view("c", POD_V_AGENT);
+ render(3000);
+ const ht_run_t *nm = NULL, *who = NULL, *back = NULL;
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind != K_TEXT) continue;
+ if (r->pro_font == &ci_rg_41) nm = r;
+ if (r->pro_font == &ci_rg_23 && r->y < 200) who = r;
+ if (r->pro_font == &ci_rg_26 && r->y < 88) back = r;
+ }
+ CHECK(nm && nm->x == 152 && nm->x + nm->w <= 688 && ends_with(nm->text, "\xe2\x80\xa6") && utf8_valid(nm->text));
+ CHECK(who && who->x == 152 && who->x + who->w <= 688 && ends_with(who->text, "\xe2\x80\xa6") && utf8_valid(who->text));
+ CHECK(back && back->w <= 115 && ends_with(back->text, "\xe2\x80\xa6") && utf8_valid(back->text));
+ CHECK(!strstr(nm->text, "\n") && who->y > nm->y + 40);
+}
+
+static void test_agent_unknown_engine_mark(void) {
+ build();
+ pod_model_agent(&M, "c", "agent-c", "zzz", "Mac Studio"); // an engine with no logo and no pet
+ open_view("c", POD_V_AGENT);
+ render(3000);
+ int images = 0;
+ bool cover = false;
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind == K_IMAGE) images++;
+ if (r->pro_kind == K_RECT && r->x == 32 && r->y == 104 && r->w == 104 && r->pro_height == 104) cover = true;
+ }
+ CHECK(images == 0 && cover && count_cells() == 0); // the default mark box, no logo, no pet sprite
+ CHECK(find_in(&ci_rg_26, "Zzz") || find_in(&ci_rg_26, "\xe2\x80\x94")); // the band names the engine or shows a dash
+ for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_TEXT && S.runs[i].text[0] == 0));
+ // The same on Recap, and with no tokens and no elapsed time the band says so with dashes only.
+ open_view("d", POD_V_RECAP);
+ pod_model_agent(&M, "d", "agent-d", "zzz", "Mac Studio");
+ render(3000);
+ CHECK(find_in(&ci_rg_20, "Engine") && !find_in(&ci_rg_20, "Tokens"));
+ for (int i = 0; i < S.count; i++) {
+ if (S.runs[i].pro_kind != K_TEXT) continue;
+ CHECK(strcmp(S.runs[i].text, "0") != 0 && strcmp(S.runs[i].text, "\xc2\xb7") != 0 && strncmp(S.runs[i].text, "\xc2\xb7 ", 3) != 0);
+ CHECK(!ends_with(S.runs[i].text, " \xc2\xb7"));
+ }
+}
+
+static void test_recap_tokens_or_engine(void) {
+ build();
+ open_view("d", POD_V_RECAP);
+ render(3000);
+ CHECK(find_in(&ci_bd_30, "Recap") && find_in(&ci_rg_26, "Desktop") && find_hit(POD_A_BACK));
+ CHECK(find_in(&ci_rg_20, "Engine") && find_in(&ci_rg_26, "Claude") && !find_in(&ci_rg_20, "Tokens"));
+ CHECK(has_pet104("claude", POD_SCENE_REST, 3000));
+ CHECK(find_in(&ci_rg_25, "Finished") && find_in(&ci_bd_20, "SAVED RESULT"));
+ CHECK(find_in(&ci_rg_22, "\xe2\x80\x94")); // no elapsed time was sent
+ pod_model_turn_stats(&M, "d", -1, -1, -1, 10100, 2300);
+ pod_model_turn(&M, "d", "activity", "Wrapping up", 48, 25);
+ pod_model_turn(&M, "d", "done", NULL, 0, 30);
+ render(3000);
+ CHECK(find_in(&ci_rg_20, "Tokens") && find_in(&ci_rg_26, "10.1k in \xc2\xb7 2.3k out") && !find_in(&ci_rg_20, "Engine"));
+ CHECK(find_in(&ci_rg_22, "0:48"));
+ const ht_run_t *body = find_in(&ci_rg_32, "First line.");
+ CHECK(body && body->fg == CI_INK && body->x == 32 && strstr(body->text, "Second line.") && strstr(body->text, "Third line.")); // joined, one row
+ CHECK(find_hit(POD_A_TALK) && pod_recap_max_row(&N, &M) == 0);
+ // A recap with no text: the Talk button stays, the body says so.
+ open_view("m", POD_V_RECAP);
+ render(3000);
+ CHECK(find_in(&ci_rg_32, "No recap yet.") || N.stack[N.depth - 1].view == POD_V_AGENT);
+}
+
+static void test_recap_scrolls_by_line(void) {
+ build();
+ char big[900] = "";
+ for (int i = 1; i <= 30; i++) { char w[40]; snprintf(w, sizeof w, "Sentence-%02d-wide-token ", i); strcat(big, w); } // one per row
+ pod_model_recap(&M, "d", big, false);
+ open_view("d", POD_V_RECAP);
+ render(3000);
+ const int shown = count_in(&ci_rg_32, 300, CI_TRANS_Y), max = pod_recap_max_row(&N, &M);
+ CHECK(shown == 6 && max == 30 - 6 && pod_scroll_max(&N, &M) == max);
+ const ht_run_t *first = find_in(&ci_rg_32, "Sentence-01-"), *second = find_in(&ci_rg_32, "Sentence-02-");
+ CHECK(first && second && second->y - first->y == 42 && first->y > find_in(&ci_bd_20, "SAVED RESULT")->y);
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ci_rg_32 && S.runs[i].y > 300) CHECK(S.runs[i].y + ci_rg_32.height <= CI_TRANS_Y && S.runs[i].w <= 656);
+ const ht_run_t *lastrow = NULL; // more below: the last visible row ends with the ellipsis
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ci_rg_32 && S.runs[i].y > 300) lastrow = &S.runs[i];
+ CHECK(lastrow && ends_with(lastrow->text, "\xe2\x80\xa6") && strstr(lastrow->text, "Sentence-06"));
+ int y0 = first->y;
+ pod_nav_act(&N, &M, POD_A_SCROLL, 1, 0); // one line
+ render(3000);
+ const ht_run_t *now2 = find_in(&ci_rg_32, "Sentence-02-");
+ CHECK(!find_in(&ci_rg_32, "Sentence-01-") && now2 && now2->y == y0 && find_in(&ci_rg_32, "Sentence-07-"));
+ pod_nav_act(&N, &M, POD_A_SCROLL, 1000, 0); // past the end: the draw clamps; the whole text, no dots
+ render(3000);
+ CHECK(find_in(&ci_rg_32, "Sentence-30-") && !find_in(&ci_rg_32, "Sentence-24-") && find_in(&ci_rg_32, "Sentence-25-")->y == y0);
+ for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ci_rg_32 && ends_with(S.runs[i].text, "\xe2\x80\xa6")));
+ pod_nav_act(&N, &M, POD_A_SCROLL, -3000, 0);
+ render(3000);
+ CHECK(find_in(&ci_rg_32, "Sentence-01-")->y == y0);
+ // The 50 word cut still ends "...", the source's own cut ends with the ellipsis.
+ char fifty[1800] = "";
+ for (int i = 1; i <= 120; i++) { char w[40]; snprintf(w, sizeof w, "%sTiếng%d", i > 1 ? " " : "", i); strcat(fifty, w); }
+ pod_model_recap(&M, "d", fifty, false);
+ pod_nav_act(&N, &M, POD_A_SCROLL, -3000, 0);
+ pod_nav_act(&N, &M, POD_A_SCROLL, 1000, 0);
+ render(3000);
+ bool end50 = false;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && strstr(S.runs[i].text, "Tiếng50") && utf8_valid(S.runs[i].text)) end50 = true;
+ CHECK(end50 && !any_text_has("Tiếng51"));
+ pod_model_recap(&M, "d", "Fixed the parser and then +", false);
+ render(3000);
+ CHECK(find_in(&ci_rg_32, "Fixed the parser and then") && !any_text_has("+") && ends_with(find_in(&ci_rg_32, "Fixed")->text, "\xe2\x80\xa6"));
+ pod_model_recap(&M, "d", "First line. Second line.", false);
+ render(3000);
+ CHECK(!ends_with(find_in(&ci_rg_32, "First")->text, "\xe2\x80\xa6"));
+}
+
+static void budget_model(void) { // the worst bodies, and an unread entry of an agent we never open: the bell and its pill
+ build();
+ char big[800];
+ viet(big, sizeof big);
+ pod_model_turn(&M, "c", "activity", big, 134, 10);
+ push_steps("c", 3, 20);
+ char q[600] = "";
+ for (int i = 1; i <= 40; i++) { char w[24]; snprintf(w, sizeof w, "question%d ", i); strcat(q, w); }
+ pod_model_question(&M, "x", q);
+ pod_model_turn_stats(&M, "d", -1, -1, -1, 10100, 2300);
+ char rec[900] = "";
+ for (int i = 1; i <= 30; i++) { char w[40]; snprintf(w, sizeof w, "Sentence-%02d-wide-token ", i); strcat(rec, w); }
+ pod_model_recap(&M, "d", rec, false);
+ pod_model_unread_add(&M, "ghost", "ghost", "Done", 48, 100);
+}
+static void test_agent_budget(void) {
+ static const struct { const char *id; pod_view_t v; } cases[] = {
+ {"c", POD_V_AGENT}, {"x", POD_V_AGENT}, {"m", POD_V_AGENT}, {"u", POD_V_AGENT}, {"d", POD_V_RECAP}, {"c", POD_V_RECAP},
+ };
+ int worst = 0;
+ for (int banner = 0; banner < 2; banner++) {
+ with_banner = banner;
+ budget_model();
+ for (unsigned k = 0; k < sizeof cases / sizeof cases[0]; k++) {
+ open_view(cases[k].id, cases[k].v);
+ pod_nav_act(&N, &M, POD_A_SCROLL, 2, 0);
+ for (uint32_t t = 3000; t < 3300; t += 66) {
+ render(t);
+ CHECK(F.unread > 0 && S.count <= POD_CLASSIC_RUNS - pod_spare_runs(&F) - 4);
+ if (S.count > worst) worst = S.count;
+ }
}
+ offline_setup(); // an offline agent over the same bell
+ pod_model_unread_add(&M, "ghost", "ghost", "Done", 48, 100);
+ render(3000);
+ CHECK(F.unread > 0 && S.count <= POD_CLASSIC_RUNS - pod_spare_runs(&F) - 4);
+ if (S.count > worst) worst = S.count;
+ }
+ with_banner = false;
+ printf("test_pod_views_agent: classic Agent/Recap worst case %d runs of %d\n", worst, POD_CLASSIC_RUNS);
+}
+
+// Low1: the Agent band shows Engine whatever the agent's tokens; only Recap shows Tokens.
+static void test_agent_band_engine_not_tokens(void) {
+ build();
+ pod_model_turn_stats(&M, "c", -1, -1, -1, 10100, 2300); // working, with tokens
+ pod_model_turn_stats(&M, "u", -1, -1, -1, 980, 40); // idle, with tokens
+ for (int k = 0; k < 2; k++) {
+ open_view(k ? "u" : "c", POD_V_AGENT);
+ render(3000);
+ CHECK(find_in(&ci_rg_20, "Engine") && !find_in(&ci_rg_20, "Tokens") && !find_in(&ci_rg_26, "10.1k"));
}
+ pod_model_turn(&M, "d", "done", NULL, 0, 30);
+ pod_model_turn_stats(&M, "d", -1, -1, -1, 980, 40);
+ open_view("d", POD_V_RECAP);
+ render(3000);
+ CHECK(find_in(&ci_rg_20, "Tokens") && !find_in(&ci_rg_20, "Engine"));
+}
+
+// Low4: a word wider than the line (a URL) is hard-broken at a character boundary; the text goes on and the last row ends with U+2026.
+static bool valid_utf8(const char *t) {
+ for (const unsigned char *p = (const unsigned char *)t; *p;) {
+ int n = *p < 0x80 ? 1 : (*p & 0xe0) == 0xc0 ? 2 : (*p & 0xf0) == 0xe0 ? 3 : (*p & 0xf8) == 0xf0 ? 4 : 0;
+ if (!n) return false;
+ for (int i = 1; i < n; i++) if ((p[i] & 0xc0) != 0x80) return false;
+ p += n;
+ }
+ return true;
+}
+static void test_wrap_long_word(void) {
+ char url[400] = "https://example.com/";
+ while (strlen(url) < 200) strcat(url, "aa/bbbb?cc=dd&");
+ char text[512];
+ snprintf(text, sizeof text, "%s and then the sentence goes on for a while", url);
+ char rows[3][POD_ROW_MAX];
+ int n = pod_wrap_hard(text, &ci_rg_32, 656, 3, rows);
+ CHECK(n == 3 && !strncmp(rows[0], "https://", 8) && ht_pro_width(&ci_rg_32, rows[0]) <= 656 && strlen(rows[0]) > 20);
+ CHECK(!strncmp(url + strlen(rows[0]), rows[1], 5) || strlen(rows[0]) + strlen(rows[1]) >= strlen(url)); // the word continues on row 2
+ char cut[3][POD_ROW_MAX];
+ n = ci_wrap(text, &ci_rg_32, 656, 3, cut);
+ CHECK(n == 3);
+ for (int i = 0; i < n; i++) CHECK(valid_utf8(cut[i]) && ht_pro_width(&ci_rg_32, cut[i]) <= 656);
+ CHECK(!strcmp(cut[n - 1] + strlen(cut[n - 1]) - 3, "\xe2\x80\xa6")); // text remains: the last row ends with the ellipsis
+ // A word of two-byte letters longer than the row buffer: never cut inside a sequence.
+ char wide[400] = "";
+ while (strlen(wide) < 300) strcat(wide, "\xc3\xa9");
+ n = pod_wrap_hard(wide, &ci_rg_32, 656, 3, rows);
+ CHECK(n > 0);
+ for (int i = 0; i < n; i++) CHECK(valid_utf8(rows[i]) && rows[i][0]);
+ n = ci_wrap(wide, &ci_rg_32, 656, 1, cut);
+ CHECK(n == 1 && valid_utf8(cut[0]) && cut[0][0]);
+ // On Recap: the screen shows the URL's start, not nothing.
+ build();
+ pod_model_recap(&M, "d", text, false);
+ open_view("d", POD_V_RECAP);
+ render(3000);
+ CHECK(find_in(&ci_rg_32, "https://"));
}
int main(void) {
- agent_test_scene_by_state();
- agent_test_option_a_layout();
- agent_test_status_title();
- offline_test_views();
- agent_test_verb_and_empty_body();
+ test_agent_working_body();
+ test_agent_updated_minutes();
+ test_agent_asking();
+ test_agent_offline();
+ test_agent_idle_copy();
+ test_agent_vietnamese_activity_wraps();
+ test_agent_unknown_engine_mark();
+ test_agent_band_engine_not_tokens();
+ test_wrap_long_word();
+ test_recap_tokens_or_engine();
+ test_recap_scrolls_by_line();
+ test_agent_budget();
agent_test_spinner_verb();
agent_test_position();
- agent_test_activity_cap();
- agent_test_activity_vietnamese();
agent_test_one_pet();
agent_test_runs_constant();
- recap_test_rest_pet();
- recap_test_plain_text();
- recap_test_fifty_words();
- recap_test_scrolls_when_long();
- recap_test_ellipsis();
talk_test_word_without_pet();
talk_test_listen_with_pet();
transport_test_hit_sizes();
@@ -1027,11 +805,7 @@ int main(void) {
send_test_word_without_pet();
icon_test_triangles();
icon_test_chevron_solid();
- who_test_line_and_names();
- lcd_test_agent_and_recap();
lcd_test_content_only();
- agent_test_steps();
- agent_test_cadence_replay();
printf("test_pod_views_agent: %d checks passed\n", checks);
return 0;
}
diff --git a/devices/harness-pro/firmware/test/test_pod_views_inbox.c b/devices/harness-pro/firmware/test/test_pod_views_inbox.c
index fffe6265f..b4440f112 100644
--- a/devices/harness-pro/firmware/test/test_pod_views_inbox.c
+++ b/devices/harness-pro/firmware/test/test_pod_views_inbox.c
@@ -1,34 +1,42 @@
-// The notification screens: the bell in the status bar, the Inbox, and the banner (pod_view_inbox.c, pod_chrome.c).
+// The Classic notification screens (the bell in the bar, the Inbox, the banner: ci_chrome.c, pod_view_inbox.c) and the misc
+// screens of the Index look: Voice, Update and Connection lost (pod_view_talk.c, pod_view_ota.c, ci_connection.c).
#include <assert.h>
#include <stdio.h>
#include <string.h>
+#include "pod/classic/ci.h"
#include "pod/pod_view.h"
#include "pro_canvas.h"
static int checks;
#define CHECK(c) do { assert(c); checks++; } while (0)
-enum { K_TEXT = 1, K_RECT = 2, K_IMAGE = 3 };
+enum { K_TEXT = 1, K_RECT = 2, K_IMAGE = 3, K_RECT_AA = 4, K_STROKE = 5 };
static pod_model_t M;
static pod_nav_t N;
static pod_out_frame_t F;
static ht_scene_t S;
-static int max_runs;
+static int max_runs, banner_max; // banner_max: the most runs pod_banner added
-// banner: the glue's order: flag first, pod_render, then pod_banner for the entry.
-static void render_with(uint32_t now, const char *banner_agent) {
+// banner: the glue's order: flag first, pod_render, then pod_banner for the entry (shown at shown_ms).
+static void render_at(uint32_t now, const char *banner_agent, uint32_t shown_ms) {
memset(&F, 0, sizeof F);
- ht_scene_clear(&S, ht_rgb(0xffffff));
+ ht_scene_clear(&S, ht_rgb(0xf6f6f0));
F.scene = &S;
const pod_unread_t *u = banner_agent ? pod_model_unread_find(&M, banner_agent) : NULL;
F.banner = u != NULL;
pod_render(&F, &N, &M, now);
- if (u) pod_banner(&F, &M, u, now);
+ if (u) {
+ int before = S.count;
+ pod_banner(&F, &M, u, shown_ms, now);
+ if (S.count - before > banner_max) banner_max = S.count - before;
+ CHECK(S.count - before <= POD_BANNER_RUNS);
+ }
if (S.count > max_runs) max_runs = S.count;
CHECK(S.count <= HT_RUNS);
}
+static void render_with(uint32_t now, const char *banner_agent) { render_at(now, banner_agent, now); }
static void render(uint32_t now) { render_with(now, NULL); }
static const ht_run_t *find_text(const char *prefix) {
@@ -43,7 +51,7 @@ static const pod_hit_t *find_hit(pod_action_t a) {
static int count_rect(uint16_t ink, int minx, int miny) {
int n = 0;
for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ink && S.runs[i].x >= minx && S.runs[i].y >= miny) n++;
+ if ((S.runs[i].pro_kind == K_RECT || S.runs[i].pro_kind == K_RECT_AA) && S.runs[i].fg == ink && S.runs[i].x >= minx && S.runs[i].y >= miny) n++;
return n;
}
static bool overlap(ht_rect_t a, ht_rect_t b) { return a.x < b.x + b.w && b.x < a.x + a.w && a.y < b.y + b.h && b.y < a.y + a.h; }
@@ -73,161 +81,480 @@ static void build(void) {
pod_nav_init(&N);
}
+static const ht_run_t *find_text_eq(const char *text) {
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && !strcmp(S.runs[i].text, text)) return &S.runs[i];
+ return NULL;
+}
+static const ht_run_t *find_rect(int kind, int w) {
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == kind && S.runs[i].w == w) return &S.runs[i];
+ return NULL;
+}
+static int hits_of(pod_action_t a) {
+ int n = 0;
+ for (int i = 0; i < F.hit_count; i++) n += F.hits[i].action == a;
+ return n;
+}
+
static void test_bell(void) {
build();
render(1000);
- int base = S.count;
- CHECK(!find_hit(POD_A_INBOX) && count_rect(ht_rgb(0x1f63d1), 500, 0) == 0); // nothing unread: nothing drawn
+ const pod_hit_t *h = find_hit(POD_A_INBOX);
+ CHECK(h && h->x == 632 && h->y == 0 && h->w == 88 && h->h == 88); // the bell is always there on Tabs
+ CHECK(!find_text_eq("1") && F.unread == 0 && count_rect(CI_BLUE, 500, 0) == 0); // no pill at 0
pod_model_unread_add(&M, "k0", "firmware-pro", "Done.", 10, 1000);
render(1000);
- CHECK(S.count == base + POD_BELL_RUNS);
- const pod_hit_t *h = find_hit(POD_A_INBOX);
- CHECK(h && h->x > 500 && h->x + h->w == POD_W && h->y == 0 && h->h >= 54);
- // The pill: blue, at the right end of the bar, inside the bar, with the count in white beside the bell.
- const ht_run_t *pill = NULL;
+ const ht_run_t *cnt = find_text_eq("1");
+ CHECK(cnt && cnt->pro_font == &ci_bd_24 && cnt->fg == ht_rgb(0xffffff) && cnt->y < CI_BAR_H && F.unread == 1 && F.bell_x > 500);
+ ht_rect_t pill = {0, 0, 0, 0};
for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x1f63d1) && S.runs[i].x > 500 && S.runs[i].y < POD_STATUS_H) pill = &S.runs[i];
- CHECK(pill);
- ht_rect_t pb = ht_run_bounds(pill);
- CHECK(pb.y >= 0 && pb.y + pb.h <= POD_STATUS_H && pb.x + pb.w <= POD_W - 12 && pb.w >= 60 && pb.w <= 110);
- const ht_run_t *cnt = NULL;
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < POD_STATUS_H && !strcmp(S.runs[i].text, "1")) cnt = &S.runs[i];
- CHECK(cnt && cnt->fg == ht_rgb(0xffffff) && cnt->pro_font == &ht_pro_24);
- CHECK(count_rect(ht_rgb(0xffffff), pb.x, 0) >= 4); // knob, dome, rim and clapper
- // It does not touch the title (Tabs, or a long tab name) nor the back hit.
+ if (S.runs[i].pro_kind == K_RECT_AA && S.runs[i].fg == CI_BLUE && S.runs[i].x > 500 && S.runs[i].y < CI_BAR_H) pill = ht_run_bounds(&S.runs[i]);
+ CHECK(pill.w >= 34 && pill.y >= 0 && pill.y + pill.h <= CI_BAR_H && pill.x + pill.w <= POD_W - 16);
const ht_run_t *title = find_text("Tabs");
- CHECK(title && !overlap(ht_run_bounds(title), pb));
- pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
- snprintf(M.tabs[0].name, sizeof M.tabs[0].name, "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW");
- render(1000);
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < POD_STATUS_H && strncmp(S.runs[i].text, "1", 2)) CHECK(!overlap(ht_run_bounds(&S.runs[i]), pb));
- h = find_hit(POD_A_BACK);
- CHECK(h && h->x + h->w <= pb.x);
- // The count grows with the list, capped at what the list holds.
+ CHECK(title && !overlap(ht_run_bounds(title), pill));
for (int i = 1; i < 8; i++) pod_model_unread_add(&M, ids[i], NAMES[i], "Done.", 5, 1000 + (uint32_t)i);
render(1000);
- CHECK(find_text("8") && find_hit(POD_A_INBOX));
- // Tabs with working agents: "N working" moves left of the bell, clear of the title and the pill.
- pod_nav_init(&N);
- pod_model_turn(&M, "k1", "started", NULL, 0, 10);
- pod_model_turn(&M, "k2", "started", NULL, 0, 10);
- render(1000);
- const ht_run_t *wk = find_text("2 working");
- CHECK(wk);
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x1f63d1) && S.runs[i].x > 500 && S.runs[i].y < POD_STATUS_H)
- CHECK(!overlap(ht_run_bounds(wk), ht_run_bounds(&S.runs[i])));
- CHECK(!overlap(ht_run_bounds(wk), ht_run_bounds(find_text("Tabs"))) && wk->x + ht_pro_width(&ht_pro_24, "2 working") <= 620);
- pod_model_turn(&M, "k1", "done", NULL, 0, 20);
- pod_model_turn(&M, "k2", "done", NULL, 0, 20);
-
- // Not drawn: on the Inbox itself, while talking, or with no cable.
- pod_nav_init(&N);
- pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
- render(1000);
- CHECK(!find_hit(POD_A_INBOX));
- pod_nav_init(&N);
+ CHECK(find_text_eq("8") && find_hit(POD_A_INBOX));
+ // A long tab name's back label stays clear of the pill.
pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
pod_nav_act(&N, &M, POD_A_OPEN_AGENT, 0, 0);
+ snprintf(M.tabs[0].name, sizeof M.tabs[0].name, "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW");
render(1000);
- CHECK(find_hit(POD_A_INBOX) != NULL); // the Agent / Recap screens have the bar and the bell
+ h = find_hit(POD_A_BACK);
+ CHECK(h && h->w == CI_BACK_W && h->x + h->w <= F.bell_x);
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y < CI_BAR_H && S.runs[i].x < 173 && S.runs[i].x > 40) CHECK(S.runs[i].x + S.runs[i].w <= 62 + 115 + 2);
+ // Not over a recording.
pod_nav_act(&N, &M, POD_A_TALK, 0, 1000);
CHECK(N.stack[N.depth - 1].view == POD_V_TALK);
render(1000);
- CHECK(!find_hit(POD_A_INBOX));
- pod_nav_init(&N);
- pod_model_link(&M, false);
- render(1000);
- CHECK(!find_hit(POD_A_INBOX));
- pod_model_link(&M, true);
+ CHECK(!find_hit(POD_A_INBOX) && F.unread == 0);
}
-static void test_inbox(void) {
+// ---- Inbox ---------------------------------------------------------------------------------------------------
+
+static void test_inbox_empty(void) {
build();
pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
render(1000);
- CHECK(find_text("Inbox") && find_text("Inbox")->y < POD_STATUS_H && find_text("No notifications") && find_hit(POD_A_BACK));
- CHECK(pod_scroll_pitch(&N) == 84 && pod_scroll_max(&N, &M) == 0);
- pod_nav_init(&N);
- pod_model_unread_add(&M, "k0", "firmware-pro", "Fixed the cable resync. Tests pass on the host and the device, and the frame time is back under forty five milliseconds.", 134, 1000);
- pod_model_unread_add(&M, "k2", "backend", "Migration ran.", 20, 61000); // newer
- pod_model_unread_add(&M, "zz", "stranger", "From a machine this roster does not hold.", -1, 62000);
+ CHECK(find_text("Inbox") && find_text("Inbox")->y < CI_BAR_H && find_text_eq("0 unread.") && find_text_eq("0 unread") && find_hit(POD_A_BACK));
+ CHECK(hits_of(POD_A_OPEN_NOTIF) == 0 && hits_of(POD_A_FOLLOW) == 0);
+ CHECK(pod_scroll_pitch(&N) == 143 && pod_scroll_max(&N, &M) == 0);
+}
+
+static void test_inbox_heading_and_footer(void) {
+ build();
+ pod_model_unread_add(&M, "k0", "firmware-pro", "Fixed the cable resync.", 48, 1000);
+ pod_model_unread_add(&M, "k2", "backend", "Migration ran.", 20, 2000);
pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
- render(3600 * 1000 + 1000);
- const ht_run_t *a = find_text("stranger"), *b = find_text("backend"), *c = find_text("firmware-pro");
- CHECK(a && b && c && a->y == 54 + 8 && b->y == 54 + 84 + 8 && c->y == 54 + 2 * 84 + 8); // newest first, 84 px rows from the bar
- CHECK(a->pro_font == &ht_pro_32 && a->x == 118);
- const ht_run_t *line = find_text("Fixed the cable");
- CHECK(line && line->pro_font == &ht_pro_24 && line->y == c->y + 38 && line->x == 118);
- // Ages on the right in grey: now / 1h / ...
- CHECK(find_text("1h") && find_text("1h")->y == c->y + 22 && find_text("59m") != NULL);
- CHECK(find_text("1h")->x > 600);
- // A blue dot per row at the left, and the rows' hits name their agent.
- int dots = 0;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x1f63d1) && S.runs[i].x < 60 && S.runs[i].y > POD_STATUS_H) dots++;
- CHECK(dots == 3);
+ render(5000);
+ const ht_run_t *head = find_text_eq("2 unread."), *foot = find_text_eq("2 unread"), *sub = find_text("Open a result to mark that result read.");
+ CHECK(head && head->pro_font == &ci_rg_48 && head->y == 113 && head->fg == CI_INK);
+ CHECK(sub && sub->pro_font == &ci_rg_24 && sub->fg == CI_MUTED && sub->y == 180);
+ CHECK(foot && foot->pro_font == &ci_rg_23 && foot->y > CI_FOOT_Y && foot->fg == CI_MUTED);
+ CHECK(find_text("Back") && find_hit(POD_A_INBOX) && F.unread == 2); // the bell shows the count here too
+ // Newest first, 2 lines of recap at most; the rows' hits name their entry.
int rows = 0;
for (int i = 0; i < F.hit_count; i++)
if (F.hits[i].action == POD_A_OPEN_NOTIF) {
- CHECK(F.hits[i].arg == rows && F.hits[i].y == 54 + rows * 84 && F.hits[i].h == 84 && F.hits[i].id[0]);
+ CHECK(F.hits[i].arg == rows && F.hits[i].id[0] && F.hits[i].x == 0 && F.hits[i].w == POD_W);
rows++;
}
- CHECK(rows == 3 && find_hit(POD_A_OPEN_NOTIF) && !strcmp(find_hit(POD_A_OPEN_NOTIF)->id, "k0")); // the last row is the oldest
- // 16 entries: 7 rows, scrolled by rows; the last offset shows the last 7.
- for (int i = 0; i < 8; i++) pod_model_unread_add(&M, ids[i], NAMES[i], "More.", 3, 70000 + (uint32_t)i);
+ CHECK(rows == 2 && !strcmp(find_hit(POD_A_OPEN_NOTIF)->id, "k0")); // find_hit scans last to first
+ const ht_run_t *a = find_text("backend"), *b = find_text("firmware-pro");
+ CHECK(a && b && a->pro_font == &ci_rg_33 && a->y < b->y && a->x == 57);
+ CHECK(count_rect(CI_BLUE, 0, CI_BAR_H) == 2); // a blue dot per entry
+ CHECK(find_text_eq("New") && find_text_eq("New")->fg == CI_MUTED);
+}
+
+static void test_inbox_asking_first(void) {
+ build();
+ pod_model_question(&M, "k3", "Use the staging key?");
+ pod_model_unread_add(&M, "k0", "firmware-pro", "Fixed the cable resync.", 48, 1000);
+ pod_model_unread_add(&M, "k2", "backend", "Migration ran.", 20, 2000);
+ pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
+ render(5000);
+ // The first row is the asking agent's: FOLLOW with its roster index and id, the amber fill, the copy.
+ const pod_hit_t *first = NULL;
+ for (int i = 0; i < F.hit_count && !first; i++) if (F.hits[i].action == POD_A_FOLLOW || F.hits[i].action == POD_A_OPEN_NOTIF) first = &F.hits[i];
+ CHECK(first && first->action == POD_A_FOLLOW && first->y == 234 && first->h == 111 && first->arg == 3 && !strcmp(first->id, "k3"));
+ bool fill = false;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == CI_ROW_ASK && S.runs[i].y == 234 && S.runs[i].w == POD_W) fill = true;
+ CHECK(fill);
+ const ht_run_t *name = find_text("harness-cli"), *copy = find_text("Needs your answer \xc2\xb7 stays until resolved");
+ CHECK(name && name->pro_font == &ci_rg_33 && name->y < 234 + 30 && copy && copy->pro_font == &ci_rg_23 && copy->y > name->y);
+ bool dot = false;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT_AA && S.runs[i].w == 10 && S.runs[i].pro_height == 10 && S.runs[i].x == CI_MARGIN && S.runs[i].y == 234 + 51) dot = true;
+ CHECK(dot);
+ // The entries follow, newest first, the first just under the asking row.
+ const pod_hit_t *e = NULL;
+ for (int i = 0; i < F.hit_count && !e; i++) if (F.hits[i].action == POD_A_OPEN_NOTIF) e = &F.hits[i];
+ CHECK(e && e->y == 234 + 111 && e->arg == 0 && !strcmp(e->id, "k2"));
+ CHECK(find_text_eq("2 unread.") && find_text_eq("2 unread")); // the asking agent is not an unread entry
+ // Two asking agents, then none: the row goes away with the question.
+ pod_model_question(&M, "k4", "Overwrite it?");
+ render(5000);
+ CHECK(hits_of(POD_A_FOLLOW) == 2);
+ pod_model_question_close(&M, "k3");
+ pod_model_question_close(&M, "k4");
+ render(5000);
+ CHECK(hits_of(POD_A_FOLLOW) == 0 && find_hit(POD_A_OPEN_NOTIF) != NULL);
+ const pod_hit_t *e2 = NULL;
+ for (int i = 0; i < F.hit_count && !e2; i++) if (F.hits[i].action == POD_A_OPEN_NOTIF) e2 = &F.hits[i];
+ CHECK(e2 && e2->y == 234);
+}
+
+static void test_inbox_failed_entry(void) {
+ build();
+ pod_model_unread_add(&M, "k0", "firmware-pro", "Fixed the cable resync.", 48, 1000);
+ pod_model_unread_add(&M, "k2", "backend", "The migration stopped: a column is missing.", 20, 2000);
+ M.unread[0].kind = POD_UNREAD_FAILED;
+ CHECK(!strcmp(M.unread[0].agent, "k2"));
+ pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
+ render(5000);
+ const ht_run_t *failed = find_text_eq("Failed"), *fresh = find_text_eq("New");
+ CHECK(failed && failed->fg == CI_FAIL && failed->pro_font == &ci_rg_22 && failed->x + failed->w <= POD_W - CI_MARGIN + 1);
+ CHECK(fresh && fresh->fg == CI_MUTED && failed->y < fresh->y);
+}
+
+static void test_inbox_scroll(void) {
+ build();
+ pod_model_unread_add(&M, "k0", "firmware-pro", "Fixed the cable resync. Tests pass on the host and the device, and the frame time is back under forty five milliseconds.", 134, 1000);
+ pod_model_unread_add(&M, "k2", "backend", "Migration ran. All tables are in place and the seed data loaded without a single warning in the log.", 20, 61000);
+ pod_model_unread_add(&M, "zz", "stranger", "From a machine this roster does not hold.", -1, 62000); // newest, one line
+ pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
+ render(80000);
+ int y = 234, rows = 0;
+ for (int i = 0; i < F.hit_count; i++)
+ if (F.hits[i].action == POD_A_OPEN_NOTIF) {
+ CHECK(F.hits[i].y == y && F.hits[i].arg == rows);
+ y += F.hits[i].h;
+ rows++;
+ }
+ CHECK(rows == 3 && find_text("stranger") && find_text("backend") && find_text("firmware-pro"));
+ CHECK(pod_scroll_max(&N, &M) == 0);
+ // Three asking agents and many entries: it scrolls by rows; the last offset shows the last row.
+ for (int i = 0; i < 8; i++) pod_model_unread_add(&M, ids[i], NAMES[i], "More words follow here, enough to take two lines of the row.", 3, 70000 + (uint32_t)i);
for (int i = 0; i < 8; i++) { char id[8]; snprintf(id, sizeof id, "x%d", i); pod_model_unread_add(&M, id, id, "Filler.", 3, 71000 + (uint32_t)i); }
- CHECK(M.unread_count == 16 && pod_scroll_max(&N, &M) == 9);
+ pod_model_question(&M, "k3", "One?");
+ pod_model_question(&M, "k4", "Two?");
+ CHECK(M.unread_count == 16);
+ const int max = pod_scroll_max(&N, &M);
+ CHECK(max > 3 && max <= 17);
render(80000);
- rows = 0;
- for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == POD_A_OPEN_NOTIF) rows++;
- CHECK(rows == 7 && find_text("x7") && !find_text("x0"));
- pod_nav_act(&N, &M, POD_A_SCROLL, 9, 0);
+ CHECK(find_text("x7") && !find_text("x0") && hits_of(POD_A_FOLLOW) == 2);
+ pod_nav_act(&N, &M, POD_A_SCROLL, max, 0);
render(80000);
- CHECK(find_text("x0") == NULL && find_text("Filler.") == NULL && find_text("More.") != NULL);
- // Constant run counts across frames (the age text changes, the structure does not).
+ const pod_hit_t *last = NULL;
+ for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == POD_A_OPEN_NOTIF) last = &F.hits[i];
+ CHECK(last && last->arg == 15 && last->y + last->h - 4 <= CI_FOOT_Y && hits_of(POD_A_FOLLOW) == 0);
+ pod_nav_act(&N, &M, POD_A_SCROLL, max + 5, 0); // past the end clamps
+ render(80000);
+ CHECK(find_hit(POD_A_OPEN_NOTIF) != NULL);
+ // Constant run counts across frames (nothing here animates).
int n0 = 0;
for (uint32_t t = 80000; t < 80000 + 7000; t += 733) { render(t); if (!n0) n0 = S.count; CHECK(S.count == n0); }
}
+// M1: pod_inbox_max_row is the first scroll from which the last row is on the glass (checked against the drawn list), and its value
+// holds for a full 16-entry inbox of two-line and of one-line recaps.
+static void test_inbox_max_row_matches_drawing(void) {
+ for (int pass = 0; pass < 2; pass++) {
+ build();
+ for (int i = 0; i < 16; i++) {
+ char id[8]; snprintf(id, sizeof id, "q%d", i);
+ pod_model_unread_add(&M, id, id, pass ? "A short result." : "A longer result that wraps onto a second line of the row so it is taller.", 3, 1000 + (uint32_t)i);
+ }
+ CHECK(M.unread_count == 16);
+ pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
+ const int max = pod_inbox_max_row(&M);
+ CHECK(max == (pass ? 13 : 14)); // 143 px rows: two fit above the footer; 112 px rows: three
+ int first_visible = -1;
+ for (int s = 0; s <= 16 && first_visible < 0; s++) {
+ render(5000); // the scroll is relative: one row down per pass
+ const pod_hit_t *last = NULL;
+ for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == POD_A_OPEN_NOTIF) last = &F.hits[i];
+ if (last && last->arg == 15) first_visible = s;
+ pod_nav_act(&N, &M, POD_A_SCROLL, 1, 0);
+ }
+ CHECK(first_visible == max);
+ CHECK(pod_scroll_max(&N, &M) == max);
+ }
+}
+
+// ---- the banner ----------------------------------------------------------------------------------------------
+
+static const char *LONG = "Fixed the cable resync. Tests pass on the host and the device, frame time back under 45 ms, and the long summary goes on well past two lines of the card.";
+
static void test_banner(void) {
build();
- pod_model_unread_add(&M, "k0", "firmware-pro", "Fixed the cable resync. Tests pass on the host and the device, frame time back under 45 ms, and the long summary goes on well past two lines of the card.", 134, 5000);
+ pod_model_unread_add(&M, "k0", "firmware-pro", LONG, 134, 5000);
render_with(5000, "k0");
const pod_hit_t *h = find_hit(POD_A_BANNER);
- CHECK(h && h->x == 16 && h->y == POD_STATUS_H + 12 && h->w == 688 && !strcmp(h->id, "k0"));
- CHECK(h->y + h->h < 300 && F.hits[F.hit_count - 1].action == POD_A_BANNER); // last = on top
- // Everything of the card sits inside its 16 px margins and under the status bar.
+ CHECK(h && h->x == 16 && h->y == 98 && h->w == 688 && h->h == 217 && !strcmp(h->id, "k0"));
+ CHECK(F.hits[F.hit_count - 1].action == POD_A_BANNER_CLOSE && F.hits[F.hit_count - 2].action == POD_A_BANNER); // the x is on top
+ const pod_hit_t *x = find_hit(POD_A_BANNER_CLOSE);
+ CHECK(x->w == 65 && x->h == 65 && x->x + x->w == 704 && x->y == 98 && !strcmp(x->id, "k0"));
+ // Everything of the card sits inside its margins and above its bottom edge.
int card = -1;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0xffffff) && ht_run_bounds(&S.runs[i]).w == 686) card = i;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_STROKE && S.runs[i].w == 688 && S.runs[i].y == 98) card = i;
CHECK(card > 0);
- for (int i = card - 1; i < S.count; i++) {
+ CHECK(S.runs[card].fg == ht_rgb(0xa6b9a9) && S.runs[card].radius == 10);
+ for (int i = card; i < S.count; i++) {
ht_rect_t b = ht_run_bounds(&S.runs[i]);
- CHECK(b.x >= 16 && b.x + b.w <= 704 && b.y >= POD_STATUS_H + 12 && b.y + b.h <= h->y + h->h);
+ CHECK(b.x >= 16 && b.x + b.w <= 704 && b.y >= 98 && b.y + b.h <= h->y + h->h);
}
- const ht_run_t *name = find_text("firmware-pro"), *age = find_text("now"), *done = find_text("Done");
- CHECK(name && name->pro_font == &ht_pro_32 && name->fg == ht_rgb(0x111111));
- CHECK(age && age->pro_font == &ht_pro_24 && age->fg == ht_rgb(0x7b7d84) && age->x > 500);
- CHECK(done && done->fg == ht_rgb(0x34c759) && !strcmp(done->text, "Done \xc2\xb7 2m 14s"));
+ const ht_run_t *name = find_text("firmware-pro"), *done = find_text("Done"), *cross = find_text("\xc3\x97");
+ CHECK(name && name->pro_font == &ci_rg_33 && name->fg == CI_INK && name->x == 110);
+ CHECK(cross && cross->pro_font == &ci_rg_41 && cross->x > 630 && cross->y < 98 + 65);
+ CHECK(done && done->fg == CI_GREEN && done->pro_font == &ci_rg_23 && !strcmp(done->text, "Done \xc2\xb7 2m 14s"));
const ht_run_t *r1 = find_text("Fixed the cable"), *r2 = NULL;
- for (int i = 0; i < S.count; i++) if (&S.runs[i] != r1 && S.runs[i].pro_kind == K_TEXT && S.runs[i].fg == ht_rgb(0x333333)) r2 = &S.runs[i];
- CHECK(r1 && r2 && r1->fg == ht_rgb(0x333333) && r2->y == r1->y + ht_pro_24.height && strstr(r2->text, "...")); // two lines, the second cut
+ for (int i = 0; i < S.count; i++) if (&S.runs[i] != r1 && S.runs[i].pro_kind == K_TEXT && S.runs[i].fg == ht_rgb(0x3d4a4e)) r2 = &S.runs[i];
+ CHECK(r1 && r2 && r1->pro_font == &ci_rg_24 && r1->fg == ht_rgb(0x3d4a4e) && r2->y == r1->y + 33 && strstr(r2->text, "\xe2\x80\xa6")); // two lines, the second cut
CHECK(name->y < r1->y && r2->y < done->y);
const int tall = h->h;
- // Short recap: one line, no elapsed time -> a bare "Done"; the card shrinks.
+ // A short recap with no elapsed time: one line, a bare "Done", a shorter card.
pod_model_unread_add(&M, "k1", "dial-ota", "Fast fix.", -1, 5000);
render_with(5000, "k1");
- CHECK(find_text("Done") && !strcmp(find_text("Done")->text, "Done") && find_hit(POD_A_BANNER)->h < tall);
- // It covers whatever is under it: a Tab list's first rows, and its hits come last.
+ CHECK(find_text_eq("Done") && find_hit(POD_A_BANNER)->h == tall - 33);
+ // Every engine's mark (a pale one rides on a dark chip, an unknown one is the default mark) and a stranger stay within POD_BANNER_RUNS.
+ for (int i = 0; i < 8; i++) { pod_model_unread_add(&M, ids[i], NAMES[i], LONG, 134, 5000); render_with(5000, ids[i]); }
+ pod_model_unread_add(&M, "zz", "stranger", LONG, 134, 5000);
+ render_with(5000, "zz");
+ CHECK(find_text_eq("stranger"));
+ // It covers whatever is under it: a Tab list's first rows; its hits come last.
pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
render_with(5000, "k0");
- CHECK(F.hits[F.hit_count - 1].action == POD_A_BANNER && find_hit(POD_A_OPEN_AGENT) != NULL);
- // Not drawn when the hit list is full: the banner still gets its hit.
- F.hit_count = 32;
+ CHECK(F.hits[F.hit_count - 1].action == POD_A_BANNER_CLOSE && find_hit(POD_A_OPEN_AGENT) != NULL);
+}
+
+static void test_banner_timer_width(void) {
+ build();
+ pod_model_unread_add(&M, "k0", "firmware-pro", LONG, 134, 5000);
+ const uint32_t shown = 5000;
+ const int want[3] = {688, 344, 11};
+ const uint32_t at[3] = {0, 3000, 5900};
+ for (int k = 0; k < 3; k++) {
+ render_at(shown + at[k], "k0", shown);
+ const ht_run_t *line = NULL;
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == CI_BLUE && S.runs[i].pro_height == 6 && S.runs[i].y == 98 + 217 - 7) line = &S.runs[i];
+ CHECK(line && line->x == 16 && line->w == want[k]);
+ }
+ // At the end the line is gone (the glue closes the banner); the card still draws. Before the start it clamps to full.
+ render_at(shown + 6000, "k0", shown);
+ for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind == K_RECT && S.runs[i].fg == CI_BLUE && S.runs[i].pro_height == 6 && S.runs[i].y > 300));
+ CHECK(find_hit(POD_A_BANNER) != NULL);
+ render_at(shown - 50, "k0", shown);
+ const ht_run_t *line = NULL;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == CI_BLUE && S.runs[i].pro_height == 6 && S.runs[i].y == 98 + 217 - 7) line = &S.runs[i];
+ CHECK(line && line->w == 688);
+}
+
+static void test_banner_done_and_failed_lines(void) {
+ build();
+ pod_model_unread_add(&M, "k0", "firmware-pro", "All good.", 48, 5000);
+ render_with(5000, "k0");
+ const ht_run_t *done = find_text("Done");
+ CHECK(done && !strcmp(done->text, "Done \xc2\xb7 0m 48s") && done->fg == CI_GREEN);
+ int ticks = 0; // the tick is green strokes left of the text
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind != K_TEXT && S.runs[i].fg == CI_GREEN && S.runs[i].x < done->x) ticks++;
+ CHECK(ticks > 0);
+ M.unread[0].kind = POD_UNREAD_FAILED;
render_with(5000, "k0");
- CHECK(F.hits[F.hit_count - 1].action == POD_A_BANNER);
+ const ht_run_t *failed = find_text("Failed");
+ CHECK(failed && !strcmp(failed->text, "Failed \xc2\xb7 0m 48s") && failed->fg == CI_FAIL && !find_text("Done"));
+ for (int i = 0; i < S.count; i++) CHECK(!(S.runs[i].pro_kind != K_TEXT && S.runs[i].fg == CI_GREEN)); // no tick on a failure
+ M.unread[0].elapsed_s = -1;
+ render_with(5000, "k0");
+ CHECK(find_text_eq("Failed"));
+ M.unread[0].kind = POD_UNREAD_FINISHED;
+ render_with(5000, "k0");
+ CHECK(find_text_eq("Done"));
+ M.unread[0].elapsed_s = 3725;
+ render_with(5000, "k0");
+ CHECK(find_text_eq("Done \xc2\xb7 1h 02m"));
+}
+
+static void test_banner_close_first_frame(void) {
+ build();
+ pod_model_unread_add(&M, "k0", "firmware-pro", LONG, 134, 5000);
+ // The very first frame (shown == now), over Tabs and over a Tab list: the x is already there, on top of the card.
+ for (int k = 0; k < 2; k++) {
+ if (k) pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
+ render_at(7000, "k0", 7000);
+ const pod_hit_t *x = find_hit(POD_A_BANNER_CLOSE);
+ CHECK(x && x == &F.hits[F.hit_count - 1] && x->x == 639 && x->y == 98 && x->w == 65 && x->h == 65);
+ CHECK(F.hits[F.hit_count - 2].action == POD_A_BANNER);
+ }
+ // While the grid is dragged, too.
+ pod_nav_init(&N);
+ memset(&F, 0, sizeof F);
+ ht_scene_clear(&S, CI_GROUND);
+ F.scene = &S;
+ F.tabs_moving = true;
+ F.tabs_off = 200;
+ F.banner = true;
+ pod_render(&F, &N, &M, 7000);
+ pod_banner(&F, &M, pod_model_unread_find(&M, "k0"), 7000, 7000);
+ CHECK(F.hits[F.hit_count - 1].action == POD_A_BANNER_CLOSE);
+}
+
+// ---- misc: Voice, Update, Connection lost ------------------------------------------------------------------
+
+static void to_talk(void) {
+ pod_nav_init(&N);
+ pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
+ pod_nav_act(&N, &M, POD_A_OPEN_AGENT, 0, 0);
+ pod_nav_act(&N, &M, POD_A_TALK, 0, 1000);
+ CHECK(N.stack[N.depth - 1].view == POD_V_TALK);
+}
+
+static void test_talk_listen_fullscreen_hit(void) {
+ build();
+ to_talk();
+ render(1500);
+ CHECK(hits_of(POD_A_TALK) == 1);
+ const pod_hit_t *t = find_hit(POD_A_TALK);
+ CHECK(t->x == 0 && t->y == 88 && t->w == 720 && t->h == 632);
+ const pod_hit_t *b = find_hit(POD_A_BACK);
+ CHECK(b && b->x == 0 && b->y == 0 && b->w == CI_BACK_W && b->h == CI_BAR_H && !overlap((ht_rect_t){b->x, b->y, b->w, b->h}, (ht_rect_t){t->x, t->y, t->w, t->h}));
+ CHECK(find_text_eq("Voice") && find_text_eq("Listening.") && find_text("Listening.")->pro_font == &ci_rg_48);
+ CHECK(find_text_eq("Tap to send.") && find_text("Tap to send.")->pro_font == &ci_rg_24 && find_text("Tap to send.")->fg == CI_MUTED);
+ const ht_run_t *to = find_text_eq("To "), *who = find_text("firmware-pro");
+ CHECK(to && to->pro_font == &ci_rg_23 && who && who->pro_font == &ci_bd_23 && who->x == to->x + ht_pro_width(&ci_rg_23, "To "));
+ // 13 wave bars, 5 px wide, in #2c6e64; louder means taller.
+ for (int level = 0; level <= 4; level += 4) {
+ memset(&F, 0, sizeof F);
+ ht_scene_clear(&S, CI_GROUND);
+ F.scene = &S;
+ F.mic_level = level;
+ pod_render(&F, &N, &M, 1500);
+ int bars = 0, tallest = 0;
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x2c6e64) && S.runs[i].w == 5) { bars++; if (S.runs[i].pro_height > tallest) tallest = S.runs[i].pro_height; }
+ CHECK(bars == 13);
+ CHECK(level == 0 ? tallest == 7 : tallest >= 20);
+ }
+ // The listening pet sits on the ground, not on white.
+ CHECK(S.count <= POD_CLASSIC_RUNS);
+}
+
+static void test_talk_no_bell_no_buttons(void) {
+ build();
+ for (int i = 0; i < 3; i++) pod_model_unread_add(&M, ids[i], NAMES[i], "Done.", 5, 1000 + (uint32_t)i);
+ to_talk();
+ render(1500);
+ CHECK(F.unread == 0 && F.bell_x == 0 && !find_hit(POD_A_INBOX) && !find_text_eq("3"));
+ CHECK(F.hit_count == 2 && find_hit(POD_A_BACK) && find_hit(POD_A_TALK)); // nothing else: no transport
+ CHECK(!find_hit(POD_A_PREV) && !find_hit(POD_A_NEXT) && !find_hit(POD_A_TABS) && !find_hit(POD_A_PANES));
+ CHECK(!find_text_eq("Talk"));
+ for (int i = 0; i < S.count; i++) CHECK(S.runs[i].pro_kind != K_RECT_AA || S.runs[i].y < CI_TRANS_Y); // no button below
+ // Sending: still no bell, only Back.
+ pod_nav_act(&N, &M, POD_A_TALK, 0, 2000);
+ CHECK(N.sending);
+ render(2500);
+ CHECK(F.unread == 0 && !find_hit(POD_A_INBOX) && !find_hit(POD_A_TALK) && F.hit_count == 1 && find_hit(POD_A_BACK));
+}
+
+static void test_talk_sending_copy(void) {
+ build();
+ to_talk();
+ pod_nav_act(&N, &M, POD_A_TALK, 0, 2000);
+ render(2600);
+ CHECK(find_text_eq("Message"));
+ const ht_run_t *head = find_text_eq("Sending your words\xe2\x80\xa6"), *who = find_text_eq("firmware-pro"), *note = find_text("One request is pending.");
+ CHECK(head && head->pro_font == &ci_bd_45 && head->fg == CI_INK);
+ CHECK(who && who->pro_font == &ci_rg_30 && who->fg == CI_MUTED && who->y > head->y);
+ CHECK(note && note->pro_font == &ci_rg_26 && note->fg == CI_MUTED && note->y > who->y);
+ int lines = 0;
+ char joined[160] = "";
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && S.runs[i].pro_font == &ci_rg_26 && S.runs[i].y > CI_BAR_H) { // the bar's Back label is 26 too
+ CHECK(S.runs[i].w <= 583 && S.runs[i].x >= (POD_W - 583) / 2 - 1);
+ if (lines++) strncat(joined, " ", sizeof joined - strlen(joined) - 1);
+ strncat(joined, S.runs[i].text, sizeof joined - strlen(joined) - 1);
+ }
+ // where it breaks depends on the face (two lines in Helvetica, three in Liberation); the whole note shows, uncut
+ CHECK(lines >= 2 && lines <= 3 && !strcmp(joined, "One request is pending. Going back will not send it again."));
+ CHECK(!find_text_eq("Listening.") && !find_text_eq("Tap to send."));
+}
+
+static void render_ota(int pct, bool restarting) {
+ memset(&F, 0, sizeof F);
+ ht_scene_clear(&S, CI_GROUND);
+ F.scene = &S;
+ pod_view_ota(&F, "0.1.2", "0.1.3", pct, restarting);
+ CHECK(S.count <= POD_CLASSIC_RUNS);
+}
+// The CSS line box's top of a text cell at r->y: the baseline is where a 1.117 em content area centred in the box puts it.
+static int css_top(const ht_run_t *r, int box_h, int size) { return r->y - ((box_h * 1000 - 1117 * size) / 2000 + (905 * size + 500) / 1000 - size); }
+
+static void test_ota_even_gaps(void) {
+ for (int pct = 0; pct <= 100; pct += 62) {
+ render_ota(pct, false);
+ const ht_run_t *circle = find_rect(K_STROKE, 86), *bar = find_rect(K_STROKE, 446);
+ const ht_run_t *eyebrow = find_text_eq("HARNESS PRO"), *title = find_text("Updating to"), *n1 = find_text("Keep the cable"), *n2 = find_text("when it is done.");
+ CHECK(circle && bar && eyebrow && title && n1 && n2 && F.hit_count == 0);
+ CHECK(!strcmp(title->text, "Updating to 0.1.3") && title->pro_font == &ci_bd_45 && eyebrow->pro_font == &ci_rg_20);
+ const int top[5] = {circle->y, css_top(eyebrow, 26, 20), css_top(title, 50, 45), bar->y, css_top(n1, 36, 26)};
+ const int bot[5] = {circle->y + 86, css_top(eyebrow, 26, 20) + 26, css_top(title, 50, 45) + 50, bar->y + 10, css_top(n2, 36, 26) + 36};
+ for (int i = 1; i < 5; i++) CHECK(top[i] - bot[i - 1] >= 21 && top[i] - bot[i - 1] <= 23);
+ CHECK(top[0] - CI_BAR_H >= CI_FOOT_Y - bot[4] - 1 && top[0] - CI_BAR_H <= CI_FOOT_Y - bot[4] + 1); // centred between the bar and the footer
+ CHECK(bar->x == 137 && bar->pro_height == 10 && n1->pro_font == &ci_rg_26);
+ CHECK(find_text_eq("Update") && find_text_eq("Downloading"));
+ char p[8];
+ snprintf(p, sizeof p, "%d%%", pct);
+ CHECK(find_text_eq(p) && find_text_eq(p)->y > CI_FOOT_Y);
+ }
+}
+
+static void test_ota_restarting(void) {
+ render_ota(100, true);
+ CHECK(find_text_eq("Restarting\xe2\x80\xa6") && find_text_eq("Restarting\xe2\x80\xa6")->pro_font == &ci_bd_45);
+ CHECK(!find_text("Updating to") && find_text_eq("RESTARTING") && !find_text_eq("100%") && F.hit_count == 0);
+ CHECK(find_text("Keep the cable") && find_text_eq("Downloading"));
+ // Same layout as the download screen: the circle, the bar (full) and the note keep their places.
+ const ht_run_t *circle = find_rect(K_STROKE, 86), *bar = find_rect(K_STROKE, 446);
+ CHECK(circle && bar);
+ const int cy = circle->y, by = bar->y;
+ render_ota(40, false);
+ CHECK(find_rect(K_STROKE, 86)->y == cy && find_rect(K_STROKE, 446)->y == by);
+ // The title with no version: "Updating to " alone does not break.
+ memset(&F, 0, sizeof F);
+ ht_scene_clear(&S, CI_GROUND);
+ F.scene = &S;
+ pod_view_ota(&F, NULL, NULL, -5, false);
+ CHECK(find_text("Updating to") && find_text_eq("0%"));
+}
+
+static void test_link_down_shows_connection_lost(void) {
+ build();
+ pod_model_unread_add(&M, "k0", "firmware-pro", "Done.", 5, 1000);
+ pod_model_unread_add(&M, "k2", "backend", "Done.", 5, 1000);
+ to_talk();
+ pod_model_link(&M, false);
+ const pod_out_t o = pod_nav_sync(&N, &M); // the model keeps its roster: the stack stays and the screen comes back with the link
+ CHECK(o.fx == POD_FX_NONE && N.stack[N.depth - 1].view == POD_V_TALK);
+ render(3000);
+ CHECK(find_text_eq("Connection lost.") && find_text("Connection lost.")->pro_font == &ci_rg_43);
+ CHECK(find_text_eq("Live status is unavailable.") && find_text_eq("Your saved results and unread marks remain."));
+ CHECK(find_text_eq("Disconnected") && find_text_eq("Disconnected")->y > CI_FOOT_Y && find_text_eq("Connection") && find_text_eq("Harness"));
+ char cnt[8];
+ snprintf(cnt, sizeof cnt, "%d", M.unread_count);
+ CHECK(M.unread_count > 0 && find_text_eq(cnt) && F.hit_count == 0 && !find_hit(POD_A_TALK)); // the bell shows the count, nothing is live
+ CHECK(!find_text_eq("Listening."));
+ // Not on Voice only: over Tabs and the Inbox as well, and the Tabs return with the link.
+ pod_nav_init(&N);
+ render(3000);
+ CHECK(find_text_eq("Connection lost.") && F.hit_count == 0);
+ pod_nav_act(&N, &M, POD_A_INBOX, 0, 0);
+ render(3000);
+ CHECK(find_text_eq("Connection lost.") && !find_text("0 unread") && !find_text("1 unread"));
+ pod_model_link(&M, true);
+ pod_nav_init(&N);
+ render(3000);
+ CHECK(!find_text_eq("Connection lost.") && find_text_eq("Tabs") && find_hit(POD_A_INBOX));
}
// The busiest screens with the bell and the banner on top: within HT_RUNS, and the same count at every animation frame.
@@ -300,10 +627,24 @@ static void test_budget_tabs(void) {
int main(void) {
test_bell();
- test_inbox();
+ test_inbox_empty();
+ test_inbox_heading_and_footer();
+ test_inbox_asking_first();
+ test_inbox_failed_entry();
+ test_inbox_scroll();
+ test_inbox_max_row_matches_drawing();
test_banner();
+ test_banner_timer_width();
+ test_banner_done_and_failed_lines();
+ test_banner_close_first_frame();
+ test_talk_listen_fullscreen_hit();
+ test_talk_no_bell_no_buttons();
+ test_talk_sending_copy();
+ test_ota_even_gaps();
+ test_ota_restarting();
+ test_link_down_shows_connection_lost();
test_budget();
test_budget_tabs();
- printf("test_pod_views_inbox: %d checks ok (most runs with the bell and a banner: %d of %d)\n", checks, max_runs, HT_RUNS);
+ printf("test_pod_views_inbox: %d checks ok (most runs with the bell and a banner: %d of %d; the banner adds at most %d of %d)\n", checks, max_runs, POD_CLASSIC_RUNS, banner_max, POD_BANNER_RUNS);
return 0;
}
diff --git a/devices/harness-pro/firmware/test/test_pod_views_tabs.c b/devices/harness-pro/firmware/test/test_pod_views_tabs.c
index bec8ea308..979f88978 100644
--- a/devices/harness-pro/firmware/test/test_pod_views_tabs.c
+++ b/devices/harness-pro/firmware/test/test_pod_views_tabs.c
@@ -1,27 +1,31 @@
-// Task 7: the Tabs and Tab screens (and the "Connecting..." state of pod_render).
+// The Classic Tabs grid and the Recent / Tab lists (and the Connection lost state of pod_render).
#include <assert.h>
#include <stdio.h>
#include <string.h>
+#include "pod/classic/ci.h"
#include "pod/pod_view.h"
#include "pro_canvas.h"
static int checks;
#define CHECK(c) do { assert(c); checks++; } while (0)
-enum { K_TEXT = 1, K_RECT = 2, K_IMAGE = 3 }; // pro_canvas.c's run kinds
+enum { K_TEXT = 1, K_RECT = 2, K_IMAGE = 3, K_RECT_AA = 4 }; // pro_canvas.c's run kinds
static pod_model_t M;
static pod_nav_t N;
static pod_out_frame_t F;
static ht_scene_t S;
+static bool banner; // the glue's banner is up: the views leave its runs spare
static void render(uint32_t now) {
memset(&F, 0, sizeof F);
ht_scene_clear(&S, ht_rgb(0xffffff));
F.scene = &S;
+ F.banner = banner;
pod_render(&F, &N, &M, now);
}
+static int budget(void) { return POD_CLASSIC_RUNS - pod_spare_runs(&F) - 4; } // the 4: the notice pill
static int count_kind(int kind) {
int n = 0;
for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == kind) n++;
@@ -37,6 +41,11 @@ static const ht_run_t *find_text(const char *prefix) {
if (S.runs[i].pro_kind == K_TEXT && !strncmp(S.runs[i].text, prefix, strlen(prefix))) return &S.runs[i];
return NULL;
}
+static const ht_run_t *find_exact(const char *text) {
+ for (int i = 0; i < S.count; i++)
+ if (S.runs[i].pro_kind == K_TEXT && !strcmp(S.runs[i].text, text)) return &S.runs[i];
+ return NULL;
+}
static const pod_hit_t *find_hit(pod_action_t a, int arg) {
for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == a && F.hits[i].arg == arg) return &F.hits[i];
return NULL;
@@ -71,17 +80,82 @@ static void build(int tabs, int per, bool with_ids) {
pod_nav_init(&N);
}
+
static int count_in(int kind, int x, int y, int side);
-static int default_marks_in(int x, int y, int side) { // the default mark's outline rects inside a square
+static void build_shared(int tabs, int per);
+
+// ---- geometry helpers ---------------------------------------------------------------------------------------
+
+enum { COVER = 164, ROW_Y0 = 113, ROW_PITCH = 255, ROW_H = 112, LIST_Y0 = 88, FOOT_Y = 628 };
+static const int COL_X[3] = {52, 278, 505}; // the art's left edges
+#define CI_BLUE_RGB ht_rgb(0x155ccc)
+#define CI_GROUND_RGB CI_GROUND
+#define CI_INK_RGB ht_rgb(0x20292c)
+#define CI_MUTED_RGB ht_rgb(0x657175)
+
+static void cover_xy(int i, int *x, int *y) { *x = COL_X[i % 3]; *y = ROW_Y0 + i / 3 * ROW_PITCH; }
+static int tab_hits(void) {
+ int n = 0;
+ for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == POD_A_OPEN_TAB) n++;
+ return n;
+}
+static int dots_in(int x, int y, int side) { // the state dots (green, amber) inside a box
+ int n = 0;
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind != K_RECT_AA || (r->fg != ht_rgb(0x35734f) && r->fg != ht_rgb(0xbf861e))) continue;
+ ht_rect_t b = ht_run_bounds(r);
+ if (b.x >= x && b.y >= y && b.x + b.w <= x + side && b.y + b.h <= y + side) n++;
+ }
+ return n;
+}
+// Runs of a kind (-1: any but text) whose bounds lie inside the square at (x, y).
+static int count_in(int kind, int x, int y, int side) {
int n = 0;
for (int i = 0; i < S.count; i++) {
+ if (S.runs[i].pro_kind == K_TEXT) continue;
+ if (kind >= 0 && S.runs[i].pro_kind != kind) continue;
ht_rect_t b = ht_run_bounds(&S.runs[i]);
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x9aa09a) && b.x >= x && b.y >= y && b.x + b.w <= x + side && b.y + b.h <= y + side) n++;
+ if (b.x >= x && b.y >= y && b.x + b.w <= x + side && b.y + b.h <= y + side) n++;
}
return n;
}
-static void build_shared(int tabs, int per);
-static void tab_test_rows(void) {
+// The cover gradients (164 x 164), in draw order.
+static int cover_arts(ht_rect_t out[16]) {
+ int n = 0;
+ for (int i = 0; i < S.count && n < 16; i++) {
+ ht_rect_t b = ht_run_bounds(&S.runs[i]);
+ if (S.runs[i].pro_kind == POD_GRAD && b.w == COVER && b.h == COVER) out[n++] = b;
+ }
+ return n;
+}
+static int near_(int a, int b) { return a >= b - 1 && a <= b + 1; }
+
+// Every tab lists the same first `per` agents (the roster holds 32): a real mark in every pane of every cover.
+static void build_shared(int tabs, int per) {
+ pod_model_reset(&M);
+ for (int k = 0; k < per; k++) {
+ snprintf(ids[0][k], 8, "m%d", k);
+ pod_model_agent(&M, ids[0][k], "member", k % 3 == 2 ? "cursor" : "claude", "mac");
+ }
+ pod_model_agents_end(&M);
+ for (int k = 0; k < per; k++) idp[0][k] = ids[0][k];
+ for (int i = 0; i < tabs; i++) {
+ idl[i] = idp[0]; idn[i] = (uint8_t)per;
+ memset(&sw[i], 0, sizeof sw[i]);
+ snprintf(sw[i].id, SWARM_ID_MAX, "s%d", i);
+ snprintf(sw[i].name, CABLE_NAME_MAX, "Tab%d", i);
+ sw[i].panes = (uint8_t)per; sw[i].agents = (uint8_t)per;
+ }
+ pod_model_swarms(&M, sw, (const char *const **)idl, idn, tabs, "s0", NULL, 0);
+ pod_model_link(&M, true);
+ pod_nav_init(&N);
+}
+
+// ---- the Recent and Tab lists --------------------------------------------------------------------------------
+
+// No heading: the first row sits right under the bar (its title names the tab), and Back says where it came from.
+static void test_list_no_heading(void) {
build(1, 3, true);
pod_model_turn(&M, "t0k0", "started", NULL, 0, 10);
(pod_model_turn(&M, "t0k2", "started", NULL, 0, 0), pod_model_turn(&M, "t0k2", "done", NULL, 0, 20));
@@ -89,310 +163,462 @@ static void tab_test_rows(void) {
render(5000);
const ht_run_t *a = find_text("agent00"), *b = find_text("agent01"), *c = find_text("agent02");
CHECK(a && b && c && a->y < b->y && b->y < c->y);
- CHECK(find_text("1") == NULL); // the working row shows the equaliser, not its number
- CHECK(find_text("2") != NULL && find_text("3") != NULL);
- CHECK(find_text("Idle") == NULL); // agent01 is idle: its row says nothing on the right
- CHECK(find_text("Tab0") != NULL && find_text("Tab0")->y < 54 && find_text("3 panes") == NULL && find_text("TAB") == NULL); // no head: the status bar names the tab
- CHECK(find_hit(POD_A_BACK, 0) != NULL);
- CHECK(a->y < 54 + 84); // the first row starts right under the status bar
- for (int k = 0; k < 3; k++) CHECK(find_hit(POD_A_OPEN_AGENT, k) != NULL);
- // The working row's name is blue.
- CHECK(a->fg == ht_rgb(0x1f63d1) && b->fg == ht_rgb(0x111111));
- // Three equaliser bars in blue sit left of the first row's name.
- int bars = 0;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x1f63d1) && S.runs[i].w < 10 && S.runs[i].y > 54) bars++;
- CHECK(bars == 3);
- // The Recent list prefixes the tab name and heads itself RECENT / Recent / N agents.
+ CHECK(find_hit(POD_A_OPEN_AGENT, 0) && find_hit(POD_A_OPEN_AGENT, 0)->y == LIST_Y0); // the first row's top is the bar's foot
+ CHECK(find_text("Tab0") && find_text("Tab0")->y < LIST_Y0 && find_text("Tab0")->pro_font == &ci_bd_30); // the title, once
+ CHECK(find_text("3 panes") == NULL && find_text("TAB") == NULL);
+ CHECK(find_text("Tabs") && find_text("Tabs")->y < LIST_Y0 && find_hit(POD_A_BACK, 0)); // Back reads Tabs from the grid
+ CHECK(a->pro_font == &ci_rg_33 && a->fg == CI_INK_RGB && a->x == 106); // the working row's name is ink too
+ CHECK(find_text("Claude \xc2\xb7 mac") && find_text("Claude \xc2\xb7 mac")->pro_font == &ci_rg_23 && find_text("Claude \xc2\xb7 mac")->fg == CI_MUTED_RGB);
+ CHECK(count_kind(K_IMAGE) >= 3 && S.count <= budget());
+ CHECK(S.background == CI_GROUND_RGB);
+ // The footer: Scroll to browse, and the pane count.
+ CHECK(find_text("Scroll to browse") && find_text("3 PANES"));
+ // Recent: the agents that had a task, Back (no origin), "N AGENTS".
pod_nav_init(&N);
pod_nav_act(&N, &M, POD_A_OPEN_TAB, POD_TAB_RECENT, 0);
render(5000);
- CHECK(find_text("Tab0 ") != NULL && find_text("RECENT") == NULL && find_text("EVERY TAB") == NULL);
- CHECK(find_text("Recent") != NULL && find_text("Recent")->y < 54 && find_text("3 agents") == NULL); // only the status bar title; the head is gone
- CHECK(count_kind(K_IMAGE) >= 2); // t0k0 and t0k2 had tasks; t0k1 did not
- // With a recap, Recent's second line is the last turn's recap, its sentences on one line, cut with "..."; the
- // tab's own list keeps engine and machine.
- pod_model_recap(&M, "t0k2", "Fixed the cable resync. Tests pass on the host and the device, and the frame time is back under forty five milliseconds.", false);
- render(5000);
- const ht_run_t *rc = find_text("Fixed the cable resync. Tests");
- CHECK(rc && rc->pro_font == &ht_pro_24 && strstr(rc->text, "...") && !strstr(rc->text, "Claude"));
- CHECK(find_text("Tab0 ") != NULL); // t0k0 has no recap yet: tab, engine and machine
- pod_nav_init(&N);
- pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
- render(5000);
- CHECK(!find_text("Fixed the cable resync. Tests"));
+ CHECK(find_text("Recent") && find_text("Recent")->y < LIST_Y0 && find_text("Back") && find_hit(POD_A_BACK, 0));
+ CHECK(find_text("agent00") && find_text("agent02") && !find_text("agent01") && find_text("2 AGENTS")); // t0k1 had no task
+ CHECK(find_text("Claude \xc2\xb7 mac") != NULL); // no recap line any more: Engine and Machine
}
-// With the head gone a tab lists up to seven rows, the first right under the status bar, and scrolls past them.
-static void tab_test_many_rows(void) {
- build_shared(1, 9);
- for (int k = 0; k < 9; k++) pod_model_turn(&M, ids[0][k], "started", NULL, 0, 5);
+// Seven agents: four rows show whole and a fifth peeks above the footer (its hit stops at it); each row is 112 px with its rule.
+// A drag scrolls by rows to the last four.
+static void test_list_five_rows(void) {
+ build_shared(1, 7);
+ for (int k = 0; k < 7; k++) pod_model_turn(&M, ids[0][k], "started", NULL, 0, 5);
pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
render(100);
int rows = 0;
- for (int k = 0; k < 9; k++) if (find_hit(POD_A_OPEN_AGENT, k)) rows++;
- CHECK(rows == 7 && S.count <= HT_RUNS && find_hit(POD_A_OPEN_AGENT, 0)->y == 54);
- CHECK(find_hit(POD_A_OPEN_AGENT, 6)->y + 84 <= 720);
- CHECK(pod_tab_max_row(&N, &M) == 2);
+ for (int k = 0; k < 7; k++) {
+ const pod_hit_t *h = find_hit(POD_A_OPEN_AGENT, k);
+ if (!h) continue;
+ rows++;
+ CHECK(h->h == (k < 4 ? ROW_H : FOOT_Y - h->y) && h->y == LIST_Y0 + k * ROW_H && h->x == 0 && h->w == 720 && !strcmp(h->id, ids[0][k]));
+ }
+ CHECK(rows == 5 && S.count <= budget());
+ CHECK(pod_tab_max_row(&N, &M) == 3 && pod_tab_pitch() == ROW_H && pod_scroll_pitch(&N) == ROW_H && pod_scroll_max(&N, &M) == 3);
+ int rules = 0;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].w == 720 && S.runs[i].pro_height == 1 && S.runs[i].y > LIST_Y0 && S.runs[i].y < FOOT_Y) rules++;
+ CHECK(rules == 4); // the fifth row's rule is under the footer
pod_nav_act(&N, &M, POD_A_SCROLL, 9, 0);
render(100);
- CHECK(find_hit(POD_A_OPEN_AGENT, 8) != NULL && find_hit(POD_A_OPEN_AGENT, 1) == NULL && S.count <= HT_RUNS);
+ CHECK(find_hit(POD_A_OPEN_AGENT, 6) && find_hit(POD_A_OPEN_AGENT, 3) && !find_hit(POD_A_OPEN_AGENT, 2) && S.count <= budget());
+ CHECK(find_hit(POD_A_OPEN_AGENT, 3)->y == LIST_Y0 && find_hit(POD_A_OPEN_AGENT, 6)->y + ROW_H <= FOOT_Y);
+}
+
+// Working, Finished, Needs you, Ready and Offline: the word in its colour, the time above it (only working and done have one).
+static void test_list_meta_words(void) {
+ build(1, 5, true);
+ pod_model_turn(&M, "t0k0", "started", NULL, 0, 10);
+ pod_model_turn(&M, "t0k1", "started", NULL, 0, 0);
+ pod_model_turn(&M, "t0k1", "activity", NULL, 48, 10);
+ pod_model_turn(&M, "t0k1", "done", NULL, 0, 20);
+ pod_model_question(&M, "t0k2", "ok?");
+ M.agents[pod_agent_index(&M, pod_model_find(&M, "t0k4"))].state = POD_OFFLINE;
+ pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
+ render(4000);
+ const ht_run_t *w = find_text("Working"), *d = find_text("Finished"), *q = find_text("Needs you"), *r = find_text("Ready"), *o = find_text("Offline");
+ CHECK(w && d && q && r && o);
+ CHECK(w->fg == ht_rgb(0x377052) && q->fg == ht_rgb(0x956616));
+ CHECK(d->fg == CI_MUTED_RGB && r->fg == CI_MUTED_RGB && o->fg == CI_MUTED_RGB);
+ CHECK(w->pro_font == &ci_bd_20 && o->pro_font == &ci_bd_20);
+ CHECK(w->x + w->w == 720 - 32 && o->x + o->w == 720 - 32); // right-aligned at the margin
+ CHECK(find_text("0:48") && find_text("0:48")->pro_font == &ci_rg_22 && find_text("0:48")->y < d->y); // the time over the word
+ CHECK(find_text("0:03") != NULL); // the working row counts on from its start (4 s - 1 s)
+ const ht_run_t *dash = find_text("\xe2\x80\x94");
+ CHECK(dash && dash->y < q->y); // asking, ready and offline: no time
+ CHECK(S.count <= budget());
+}
+
+// A 60-character name ends in "…" and stops before the meta column; so does a long machine name.
+static void test_list_long_name_ellipsis(void) {
+ build(1, 1, true);
+ char longname[80];
+ for (int i = 0; i < 60; i++) longname[i] = (char)('a' + i % 26);
+ longname[60] = 0;
+ pod_model_agent(&M, ids[0][0], longname, "claude", "a-very-long-machine-name-that-keeps-going-and-going-on");
+ pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
+ render(0);
+ const ht_run_t *n = NULL, *sub = NULL, *word = find_text("Ready");
+ for (int i = 0; i < S.count; i++) {
+ if (S.runs[i].pro_kind != K_TEXT) continue;
+ if (!strncmp(S.runs[i].text, "abcdef", 6)) n = &S.runs[i];
+ if (!strncmp(S.runs[i].text, "Claude", 6)) sub = &S.runs[i];
+ }
+ CHECK(n && sub && word);
+ size_t len = strlen(n->text), sl = strlen(sub->text);
+ CHECK(len > 3 && !strcmp(n->text + len - 3, "\xe2\x80\xa6") && sl > 3 && !strcmp(sub->text + sl - 3, "\xe2\x80\xa6"));
+ CHECK(n->x + n->w <= word->x - 8 && sub->x + sub->w <= word->x - 8); // clear of the state word and the time
+ CHECK(n->x >= 106 && n->pro_font == &ci_rg_33);
+ // A Vietnamese name is cut on a character, never inside one.
+ pod_model_agent(&M, ids[0][0], "\xc4\x90\xe1\xba\xb7" "t l\xe1\xbb\x8b" "ch MMMMMMMMMMMMMMMMMMMMMMMMMM", "claude", "mac");
+ render(0);
+ const ht_run_t *vi = find_text("\xc4\x90\xe1\xba\xb7t");
+ CHECK(vi && vi->x + vi->w <= word->x - 8);
+ for (const unsigned char *p = (const unsigned char *)vi->text; *p; p++) if (*p >= 0x80 && *p < 0xc0) CHECK(p > (const unsigned char *)vi->text && (p[-1] >= 0x80)); // continuation bytes follow a lead
+ CHECK(!strcmp(vi->text + strlen(vi->text) - 3, "\xe2\x80\xa6"));
}
-static void tab_test_empty(void) {
+// A tab with no panes: "No panes yet." and its line, no rows, "No panes" in the footer. An empty Recent says so too.
+static void test_list_empty_tab(void) {
build(0, 0, true);
pod_model_swarms(&M, sw, NULL, NULL, 0, "", NULL, 0);
cable_swarm_t one = {"e", "Empty", 0, 0};
pod_model_swarms(&M, &one, NULL, NULL, 1, "e", NULL, 0);
pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
render(0);
- CHECK(find_text("No panes in this tab") != NULL);
+ const ht_run_t *h = find_text("No panes yet.");
+ CHECK(h && h->pro_font == &ci_rg_43 && h->fg == CI_INK_RGB && near_(h->x + h->w / 2, 360));
+ CHECK(find_text("This tab is managed in Harness.") && find_text("This tab is managed in Harness.")->pro_font == &ci_rg_25);
+ CHECK(find_exact("No panes") != NULL && find_exact("No panes")->y >= FOOT_Y && find_text("Scroll to browse") == NULL);
+ for (int i = 0; i < F.hit_count; i++) CHECK(F.hits[i].action != POD_A_OPEN_AGENT);
+ CHECK(find_hit(POD_A_BACK, 0) != NULL && find_text("Empty") && find_text("Empty")->y < LIST_Y0);
pod_nav_init(&N);
pod_nav_act(&N, &M, POD_A_OPEN_TAB, POD_TAB_RECENT, 0);
render(0);
- CHECK(find_text("No recent agents") != NULL); // an empty Recent list says so
- CHECK(find_text("No panes in this tab") == NULL);
- CHECK(find_text("No recent agents")->y > 54 + 200 && find_text("No recent agents")->y < 720 - 200); // centred under the status bar
- pod_nav_init(&N);
- render(0); // the Tabs grid: Recent reads "0 agents" and stays tappable
- CHECK(find_text("Recent") != NULL && find_text("0 agents") != NULL);
- CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) != NULL);
+ CHECK(find_text("No recent agents.") != NULL && find_text("No panes yet.") == NULL && find_exact("No agents") != NULL);
+ for (int i = 0; i < F.hit_count; i++) CHECK(F.hits[i].action != POD_A_OPEN_AGENT);
}
-static void tabs_test_no_ids(void) {
- build(2, 3, false); // an older daemon: counts only
- render(0);
- CHECK(count_in(K_IMAGE, 262, 86, 196) == 0 && count_in(K_IMAGE, 490, 86, 196) == 0); // the tabs' panes are blank, Recent's agents have marks
- CHECK(find_text("3 panes") != NULL);
- CHECK(count_rect(ht_rgb(0x9aa09a)) == 6); // both tabs' three blank panes, each with the default mark's outline
- CHECK(find_hit(POD_A_OPEN_TAB, 0) != NULL && find_hit(POD_A_OPEN_TAB, 1) != NULL);
+// Nine agents, every mark a light one, a banner and a bell: still within the budget.
+static void test_list_budget(void) {
+ build_shared(1, 9);
+ for (int k = 0; k < 9; k++) { pod_model_agent(&M, ids[0][k], "x", "cursor", "mac"); pod_model_turn(&M, ids[0][k], "started", NULL, 0, 5 + (uint32_t)k); }
+ pod_model_unread_add(&M, "m0", "x", "done", 5, 100);
+ for (int b = 0; b < 2; b++) {
+ banner = b;
+ for (int recent = 0; recent < 2; recent++)
+ for (int scroll = 0; scroll <= 4; scroll++) {
+ pod_nav_init(&N);
+ pod_nav_act(&N, &M, POD_A_OPEN_TAB, recent ? POD_TAB_RECENT : 0, 0);
+ pod_nav_act(&N, &M, POD_A_SCROLL, scroll, 0);
+ render(100);
+ CHECK(S.count <= budget() && F.hit_count <= 32);
+ }
+ }
+ banner = false;
}
-// A pane whose agent or engine has no mark, and a tab with no panes, show the default mark, never an empty pane.
-static void tabs_test_default_mark(void) {
- // Members listed but the roster does not know them (a tab of another window), and an agent with no engine.
- build(1, 2, true);
- pod_model_agent(&M, ids[0][1], "blank", "", "mac");
- pod_model_agent(&M, ids[0][0], "odd", "zzz-unknown", "mac");
- for (int k = 0; k < 2; k++) (pod_model_turn(&M, ids[0][k], "started", NULL, 0, 0), pod_model_turn(&M, ids[0][k], "done", NULL, 0, 1 + (uint32_t)k)); // tasks: Recent lists them
- render(0);
- CHECK(default_marks_in(262, 86, 196) == 2 && count_rect(ht_rgb(0x9aa09a)) == 4); // the tab's two panes; Recent holds the same two agents
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x9aa09a)) CHECK(S.runs[i].w == POD_DEFAULT_MARK_SIDE && S.runs[i].pro_height == POD_DEFAULT_MARK_SIDE);
- CHECK(find_text(">_") != NULL && find_text(">_")->fg == ht_rgb(0x6f746f) && find_text(">_")->pro_font == &ht_pro_24);
- // A tab with zero panes is an Empty cover (no pane, no mark).
- pod_model_reset(&M);
- cable_swarm_t none = {"e", "Empty", 0, 0};
- pod_model_swarms(&M, &none, NULL, NULL, 1, "e", NULL, 0);
- pod_model_link(&M, true);
- pod_nav_init(&N);
- render(0);
- CHECK(count_rect(ht_rgb(0x9aa09a)) == 0 && find_text(">_") == NULL && find_text("Empty") != NULL); // a "+" cover, no mark
- // Members unknown (older daemon) with 2 panes: two default marks.
- cable_swarm_t two = {"e", "Two", 2, 2};
- pod_model_swarms(&M, &two, NULL, NULL, 1, "e", NULL, 0);
- render(0);
- CHECK(default_marks_in(262, 86, 196) == 2);
- // The Tab screen has no pane diagram now, and members unknown list no rows.
- pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
+// ---- the album grid ---------------------------------------------------------------------------------------
+
+// Six covers: the art boxes (164 x 164) at x {52, 278, 505} and y {113, 368}, each card's hit the 213 px column.
+static void test_tabs_grid_geometry(void) {
+ build(5, 2, true);
render(0);
- CHECK(count_rect(ht_rgb(0x9aa09a)) == 0 && find_text("No panes in this tab") != NULL);
- CHECK(pod_mark_runs("zzz") == POD_DEFAULT_MARK_RUNS && pod_mark_runs(NULL) == POD_DEFAULT_MARK_RUNS);
+ ht_rect_t art[16];
+ CHECK(cover_arts(art) == 6);
+ for (int i = 0; i < 6; i++) {
+ CHECK(near_(art[i].x, COL_X[i % 3]) && near_(art[i].y, i < 3 ? 113 : 368));
+ const pod_hit_t *h = find_hit(POD_A_OPEN_TAB, i ? i - 1 : POD_TAB_RECENT);
+ CHECK(h && h->w == 213 && h->h >= 230 && h->x + (h->w - COVER) / 2 + 0 >= art[i].x - 26 && h->x <= art[i].x && h->x + h->w >= art[i].x + COVER);
+ CHECK(h->y == art[i].y && h->y + h->h <= FOOT_Y && h->x >= 0 && h->x + h->w <= 720);
+ }
+ CHECK(tab_hits() == 6 && S.count <= budget());
+ // The names and counts sit under the art, left-aligned with it: 30 / 23.
+ const ht_run_t *rn = find_text("Recent"), *tn = find_text("Tab3");
+ CHECK(rn && rn->pro_font == &ci_rg_30 && near_(rn->x, COL_X[0]) && rn->y > 113 + COVER && rn->y < 113 + COVER + 40);
+ CHECK(tn && tn->pro_font == &ci_rg_30 && near_(tn->x, COL_X[1]) && tn->y > 368 + COVER);
+ const ht_run_t *cn = find_text("2 panes");
+ CHECK(cn && cn->pro_font == &ci_rg_23 && cn->fg == CI_MUTED_RGB && cn->y > 113 + COVER);
+ CHECK(S.background == CI_GROUND_RGB && find_text("Tabs") && find_text("Harness") && find_hit(POD_A_INBOX, 0));
}
-
-// ---- the album grid ---------------------------------------------------------------------------------------
-
-enum { COVER = 196, COL_X0 = 34, COL_PITCH = 228, ROW_Y0 = 104, ROW_PITCH = 280 };
-#define RING_BLUE ht_rgb(0x0a84ff)
-static int dots_in(int x, int y, int side) { // the 12 px (cards) and 9 px (captions) state dots inside a box
- int n = 0;
+// The chosen cover: a 5 px blue ring with a 5 px gap (the ground between), its name blue; no other cover has one.
+static void test_tabs_selected_ring(void) {
+ build(3, 2, true);
+ pod_model_swarms(&M, sw, (const char *const **)idl, idn, 3, "s1", NULL, 0); // Tab1 is the window's selected tab
+ render(0);
+ CHECK(find_text("Tab1") && find_text("Tab1")->fg == CI_BLUE_RGB);
+ CHECK(find_text("Tab0")->fg == CI_INK_RGB && find_text("Tab2")->fg == CI_INK_RGB && find_text("Recent")->fg == CI_INK_RGB);
+ int x, y, rings = 0, gaps = 0;
+ cover_xy(2, &x, &y); // cover 2 is Tab1
for (int i = 0; i < S.count; i++) {
const ht_run_t *r = &S.runs[i];
- if (r->pro_kind != K_RECT || r->w != 12 || (r->fg != ht_rgb(0x34c759) && r->fg != ht_rgb(0xff9f0a))) continue;
ht_rect_t b = ht_run_bounds(r);
- if (b.x >= x && b.y >= y && b.x + b.w <= x + side && b.y + b.h <= y + side) n++;
+ if (r->pro_kind != K_RECT_AA) continue;
+ if (r->fg == CI_BLUE_RGB && b.w == COVER + 20) { rings++; CHECK(b.x == x - 10 && b.y == y - 10 && b.h == COVER + 20); CHECK(i + 1 < S.count); }
+ if (r->fg == CI_GROUND_RGB && b.w == COVER + 10) { gaps++; CHECK(b.x == x - 5 && b.y == y - 5 && b.h == COVER + 10 && i > 0); }
}
- return n;
-}
-// Runs of a kind (-1: any but text) whose bounds lie inside the square at (x, y).
-static int count_in(int kind, int x, int y, int side) {
- int n = 0;
+ CHECK(rings == 1 && gaps == 1); // ring 10 px out, ground 5 px out: a 5 px band, a 5 px gap
+ // The ring is drawn before the cover, the ground in between.
+ int ri = -1, gi = -1, ci = -1;
for (int i = 0; i < S.count; i++) {
- if (S.runs[i].pro_kind == K_TEXT) continue;
- if (kind >= 0 && S.runs[i].pro_kind != kind) continue;
ht_rect_t b = ht_run_bounds(&S.runs[i]);
- if (b.x >= x && b.y >= y && b.x + b.w <= x + side && b.y + b.h <= y + side) n++;
+ if (S.runs[i].pro_kind == K_RECT_AA && S.runs[i].fg == CI_BLUE_RGB && b.w == COVER + 20) ri = i;
+ if (S.runs[i].pro_kind == K_RECT_AA && S.runs[i].fg == CI_GROUND_RGB && b.w == COVER + 10) gi = i;
+ if (S.runs[i].pro_kind == POD_GRAD && b.w == COVER && b.x == x && b.y == y) ci = i;
}
- return n;
+ CHECK(ri >= 0 && ri < gi && gi < ci);
}
-static void cover_xy(int i, int *x, int *y) { *x = COL_X0 + i % 3 * COL_PITCH; *y = ROW_Y0 + i / 3 * ROW_PITCH; }
-// Every tab lists the same first `per` agents (the roster holds 32): a real mark in every pane of every cover.
-static void build_shared(int tabs, int per) {
- pod_model_reset(&M);
- for (int k = 0; k < per; k++) {
- snprintf(ids[0][k], 8, "m%d", k);
- pod_model_agent(&M, ids[0][k], "member", k % 3 == 2 ? "cursor" : "claude", "mac");
+
+// The ribbon shows only on a cover whose agents are working: eq, "Working" and the count; Recent counts its working agents.
+static void ribbon_setup(void) { // Tab0 has one agent working (two panes), Tab1 only an asking one, Tab2 none
+ build(3, 2, true);
+ pod_model_turn(&M, "t0k0", "started", NULL, 0, 10);
+ pod_model_turn(&M, "t1k0", "started", NULL, 0, 10);
+ (pod_model_turn(&M, "t1k0", "started", NULL, 0, 0), pod_model_turn(&M, "t1k0", "done", NULL, 0, 11));
+ pod_model_question(&M, "t1k1", "ok?");
+}
+static const ht_run_t *foot_text(int c, const char *text) { // a text run inside cover c's foot band (31 px)
+ int x, y; cover_xy(c, &x, &y);
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind == K_TEXT && !strcmp(r->text, text) && r->x >= x && r->x < x + COVER && r->y >= y + COVER - 31 && r->y < y + COVER) return r;
}
- pod_model_agents_end(&M);
- for (int k = 0; k < per; k++) idp[0][k] = ids[0][k];
- for (int i = 0; i < tabs; i++) {
- idl[i] = idp[0]; idn[i] = (uint8_t)per;
- memset(&sw[i], 0, sizeof sw[i]);
- snprintf(sw[i].id, SWARM_ID_MAX, "s%d", i);
- snprintf(sw[i].name, CABLE_NAME_MAX, "Tab%d", i);
- sw[i].panes = (uint8_t)per; sw[i].agents = (uint8_t)per;
+ return NULL;
+}
+static int foot_eq_bars(int c) { // the eq's three bars: 5 px wide, light green, inside the band
+ int x, y, n = 0; cover_xy(c, &x, &y);
+ for (int i = 0; i < S.count; i++) {
+ const ht_run_t *r = &S.runs[i];
+ if (r->pro_kind == K_RECT && r->w == 5 && r->fg == ht_rgb(0xa6e0b5) && r->x >= x && r->x < x + COVER && r->y >= y + COVER - 31 && r->y < y + COVER) n++;
}
- pod_model_swarms(&M, sw, (const char *const **)idl, idn, tabs, "s0", NULL, 0);
+ return n;
+}
+static void test_tabs_ribbon_only_when_working(void) {
+ ribbon_setup();
+ render(20);
+ const ht_run_t *p = foot_text(1, "Working"), *cnt = foot_text(1, "1");
+ CHECK(p && p->fg == ht_rgb(0xffffff) && p->pro_font == &ci_rg_20 && cnt && cnt->fg == ht_rgb(0xffffff) && cnt->x > p->x + 40);
+ int x, y; cover_xy(1, &x, &y);
+ CHECK(p->x > x + 30 && cnt->x + cnt->w <= x + COVER - 8 && foot_eq_bars(1) == 3);
+ CHECK(foot_text(0, "Working") && foot_text(0, "1") && foot_eq_bars(0) == 3); // Recent counts t0k0
+ CHECK(!foot_text(2, "Working") && foot_eq_bars(2) == 0); // asking only: no ribbon
+ CHECK(!foot_text(3, "Working") && foot_eq_bars(3) == 0); // idle
+ CHECK(pod_tabs_ribbon(&M, 0) && !pod_tabs_ribbon(&M, 1));
+ pod_model_turn(&M, "t0k1", "started", NULL, 0, 12); // two working in a tab: the count says 2
+ render(30);
+ CHECK(foot_text(1, "2") != NULL && foot_text(0, "2") != NULL);
+ // Nobody working: no ribbon anywhere, nothing for the glue to wake for.
+ build(3, 2, true);
+ render(0);
+ CHECK(find_text("Working") == NULL && !pod_tabs_ribbon(&M, 0));
+ // The eq moves with the clock; the run count does not.
+ ribbon_setup();
+ render(1000);
+ int count = S.count;
+ static ht_scene_t prev;
+ memcpy(&prev, &S, sizeof S);
+ render(1000 + POD_TABS_BAR_MS);
+ CHECK(S.count == count);
+ int diff = 0;
+ for (int i = 0; i < count; i++) if (memcmp(&S.runs[i], &prev.runs[i], sizeof S.runs[i])) { diff++; CHECK(S.runs[i].pro_kind == K_RECT && S.runs[i].w == 5); }
+ CHECK(diff > 0);
+}
+
+// 9 tabs: "PAGE 1 / 2" (and "PAGE 2 / 2" on the next page); 5 tabs and 7 agents: "5 TABS · 7 AGENTS"; "N working" at the left.
+static void test_tabs_footer_pages(void) {
+ build(9, 1, true);
+ CHECK(pod_tabs_pages(&M) == 2);
+ render(0);
+ const ht_run_t *pg = find_text("PAGE 1 / 2");
+ CHECK(pg && pg->pro_font == &ci_rg_20 && pg->y >= FOOT_Y && pg->x + pg->w == 720 - 32 && !find_text("TABS"));
+ CHECK(find_text("0 working") && find_text("0 working")->x == 32 && find_text("0 working")->pro_font == &ci_rg_23);
+ pod_nav_act(&N, &M, POD_A_SCROLL, 2, 0);
+ render(0);
+ CHECK(find_text("PAGE 2 / 2") != NULL && find_text("PAGE 1 / 2") == NULL);
+ F.tabs_moving = true; F.tabs_off = pod_tabs_pitch() / 2 - 20; // mid-drag: the page nearer the offset
+ ht_scene_clear(&S, ht_rgb(0xffffff)); F.hit_count = 0; pod_render(&F, &N, &M, 0);
+ CHECK(find_text("PAGE 1 / 2") != NULL);
+ build_shared(5, 7);
+ pod_model_turn(&M, "m0", "started", NULL, 0, 10);
+ render(0);
+ CHECK(pod_tabs_pages(&M) == 1);
+ CHECK(find_text("5 TABS \xc2\xb7 7 AGENTS") != NULL && find_text("1 working") != NULL && !find_text("PAGE 1 / 1"));
+ build(1, 1, true);
+ render(0);
+ CHECK(find_text("1 TAB \xc2\xb7 1 AGENT") != NULL);
+}
+
+// A tab with no panes: a grey cover with a grid icon (four outlined squares), captioned Empty, no ribbon and no mark.
+static void test_tabs_empty_cover_grid_icon(void) {
+ pod_model_reset(&M);
+ cable_swarm_t two[2] = {{"a", "Alpha", 0, 0}, {"b", "Beta", 0, 0}};
+ pod_model_swarms(&M, two, NULL, NULL, 2, "a", NULL, 0);
pod_model_link(&M, true);
pod_nav_init(&N);
+ render(0);
+ CHECK(find_text("Empty") != NULL && find_text("Empty")->pro_font == &ci_rg_23 && find_text("0 panes") == NULL);
+ int x, y;
+ cover_xy(1, &x, &y);
+ int squares = 0, arcs = 0;
+ for (int i = 0; i < S.count; i++) {
+ ht_rect_t b = ht_run_bounds(&S.runs[i]);
+ if (b.x < x || b.y < y || b.x + b.w > x + COVER || b.y + b.h > y + COVER) continue;
+ if (S.runs[i].pro_kind == K_RECT_AA && b.w == 21 && b.h == 21) squares++;
+ if (S.runs[i].pro_kind == POD_ARC) arcs++;
+ }
+ CHECK(squares == 4 && arcs == 0); // the icon, no "+" ring
+ int cx = x + COVER / 2, cy = y + COVER / 2; // centred in its 72 px box
+ int lo = 9999, hi = 0;
+ for (int i = 0; i < S.count; i++) {
+ ht_rect_t b = ht_run_bounds(&S.runs[i]);
+ if (S.runs[i].pro_kind == K_RECT_AA && b.w == 21 && b.x >= x && b.x < x + COVER && b.y >= y && b.y < y + COVER) { if (b.x < lo) lo = b.x; if (b.x + b.w > hi) hi = b.x + b.w; }
+ }
+ CHECK(hi - lo == 54 && lo + 27 == cx && cy > y); // 54 px of squares in the 72 px box
+ CHECK(count_in(K_IMAGE, x, y, COVER) == 0 && foot_eq_bars(1) == 0 && find_hit(POD_A_OPEN_TAB, 0) != NULL);
}
-// 1 to 24 tabs, 0 to 9 panes a tab, every scroll position, members known or counts only: always within the run and hit
-// budgets, and the same count whatever the clock says (the screen is static).
+// The worst frame: six covers of 2 to 9 panes, every agent working, a light mark in every third pane, a bell and a banner.
+// Always within the budget, the same count at every clock, and the ribbon of every shown cover kept at rest.
static int max_runs;
-static void grid_test_budget(void) {
+static void test_tabs_budget(void) {
static const int tabs_for[] = {1, 2, 5, 7, 12, 24};
- for (int j = 0; j < 6; j++)
- for (int per = 0; per <= 9; per++)
- for (int known = 0; known < 2; known++) {
- if (known) build_shared(tabs_for[j], per); else build(tabs_for[j], per, false);
- if (per) {
- pod_model_turn(&M, known ? "m0" : "t0k0", "started", NULL, 0, 10);
- if (known && per > 1) pod_model_question(&M, "m1", "ok?");
- }
- for (int k = 0; k < per && known; k++) // a task each, so Recent holds them
- if (strcmp(ids[0][k], "m0") && strcmp(ids[0][k], "m1")) (pod_model_turn(&M, ids[0][k], "started", NULL, 0, 0), pod_model_turn(&M, ids[0][k], "done", NULL, 0, 20 + (uint32_t)k));
- for (int row = 0; row <= pod_tabs_max_row(&M); row += 2) {
- pod_nav_init(&N);
- pod_nav_act(&N, &M, POD_A_SCROLL, row, 0);
- render(1000);
- int want = S.count;
- if (want > max_runs) max_runs = want;
- CHECK(want > 0 && want <= HT_RUNS && F.hit_count <= 32);
- for (uint32_t t = 1000; t < 3000; t += 331) { render(t); CHECK(S.count == want); }
+ for (int b = 0; b < 2; b++) {
+ banner = b;
+ for (int j = 0; j < 6; j++)
+ for (int per = 0; per <= 9; per++)
+ for (int known = 0; known < 2; known++) {
+ if (known) build_shared(tabs_for[j], per); else build(tabs_for[j], per, false);
+ if (per) {
+ pod_model_turn(&M, known ? "m0" : "t0k0", "started", NULL, 0, 10);
+ if (known && per > 1) pod_model_question(&M, "m1", "ok?");
+ pod_model_unread_add(&M, known ? "m0" : "t0k0", "x", "done", 5, 100);
+ }
+ for (int k = 0; k < per && known; k++) // a task each, so Recent holds them
+ if (strcmp(ids[0][k], "m0") && strcmp(ids[0][k], "m1")) (pod_model_turn(&M, ids[0][k], "started", NULL, 0, 0), pod_model_turn(&M, ids[0][k], "done", NULL, 0, 20 + (uint32_t)k));
+ for (int row = 0; row <= pod_tabs_max_row(&M); row += 2) {
+ pod_nav_init(&N);
+ pod_nav_act(&N, &M, POD_A_SCROLL, row, 0);
+ render(1000);
+ int want = S.count;
+ if (want > max_runs) max_runs = want;
+ CHECK(want > 0 && want <= budget() && F.hit_count <= 32);
+ for (uint32_t t = 1000; t < 3000; t += 331) { render(t); CHECK(S.count == want); }
+ }
}
+ // Every agent working in every cover: nine light marks, a ribbon on each, eight recent agents.
+ for (int per = 2; per <= 9; per += 7) {
+ build_shared(12, per);
+ for (int k = 0; k < per; k++) { pod_model_agent(&M, ids[0][k], "x", "cursor", "mac"); pod_model_turn(&M, ids[0][k], "started", NULL, 0, 5 + (uint32_t)k); }
+ pod_model_unread_add(&M, "m0", "x", "done", 5, 100);
+ for (int row = 0; row <= pod_tabs_max_row(&M); row += 2) {
+ pod_nav_init(&N); pod_nav_act(&N, &M, POD_A_SCROLL, row, 0);
+ render(100);
+ CHECK(S.count <= budget() && F.hit_count <= 32);
+ int pl = 0; for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && !strcmp(S.runs[i].text, "Working")) pl++;
+ int covers = 1 + 12, first = row * 3, shown = covers - first < 6 ? covers - first : 6;
+ CHECK(pl == shown); // the ribbons are never dropped at rest
}
- // The worst: nine panes, every mark a light (Cursor) chip, a mover on every card, eight recent agents.
- build_shared(12, 9);
- for (int k = 0; k < 9; k++) { pod_model_agent(&M, ids[0][k], "x", "cursor", "mac"); pod_model_turn(&M, ids[0][k], "started", NULL, 0, 5 + (uint32_t)k); }
- for (int row = 0; row <= pod_tabs_max_row(&M); row += 2) {
- pod_nav_init(&N); pod_nav_act(&N, &M, POD_A_SCROLL, row, 0);
- render(100);
- CHECK(S.count <= HT_RUNS && F.hit_count <= 32);
+ }
}
+ banner = false;
}
-// Six covers (Recent and five tabs of six panes): every pane draws its mark, and the busy ones their dots.
+// Six covers (Recent and five tabs of six panes): every pane draws its mark, the busy ones their dots, until the frame runs short.
static void grid_test_six_covers(void) {
build_shared(5, 6);
pod_model_turn(&M, "m0", "started", NULL, 0, 10);
pod_model_question(&M, "m1", "ok?");
render(500);
- CHECK(F.hit_count == 6 && S.count <= HT_RUNS);
- for (int i = 1; i < 6; i++) {
- int x, y;
- cover_xy(i, &x, &y);
- // Every cover wears a ribbon (eight runs), so the last covers lose their marks first; the selected one keeps all six
- // (a mark in each pane; Cursor's light mark is an image on a chip).
- CHECK(i == 1 ? count_in(K_IMAGE, x, y, COVER) == 6 : count_in(K_IMAGE, x, y, COVER) <= 6);
- CHECK(count_in(K_RECT, x, y, COVER) >= 6 + 2 || i > 1); // cards and the light marks' chips
- }
- // Six covers of six busy panes cost more than a frame holds: the dots go first, the last covers' first, the selected one's last.
+ CHECK(tab_hits() == 6 && S.count <= budget());
int x1, y1, x5, y5;
cover_xy(1, &x1, &y1); cover_xy(5, &x5, &y5);
- CHECK(dots_in(x1, y1, COVER) <= 2 && dots_in(x5, y5, COVER) <= dots_in(x1, y1, COVER)); // the eight-run ribbons crowd the dots out first
- // With four panes a cover and a ribbon on each, the dots still all fit: every busy pane has its dot, on every cover.
- build_shared(5, 4);
+ CHECK(count_in(K_IMAGE, x1, y1, COVER) == 6); // the selected cover keeps all six marks
+ CHECK(count_in(K_IMAGE, x5, y5, COVER) <= 6);
+ CHECK(dots_in(x1, y1, COVER) == 2 && dots_in(x5, y5, COVER) <= dots_in(x1, y1, COVER)); // the last covers lose their dots first
+ // With two panes a cover everything fits: every busy pane has its dot, on every cover.
+ build_shared(5, 2);
pod_model_turn(&M, "m0", "started", NULL, 0, 10);
pod_model_question(&M, "m1", "ok?");
render(500);
for (int i = 1; i < 6; i++) {
int x, y;
cover_xy(i, &x, &y);
- CHECK(dots_in(x, y, COVER) <= 2 && count_in(K_IMAGE, x, y, COVER) <= 4); // m0 working (green), m1 asking (amber)
- CHECK(i != 1 || count_in(K_IMAGE, x, y, COVER) == 4); // the selected cover keeps its marks
+ CHECK(dots_in(x, y, COVER) == 2 && count_in(K_IMAGE, x, y, COVER) == 2); // m0 working (green), m1 asking (amber)
}
- CHECK(count_in(POD_TRI, 0, 54, 720) == 0); // no triangles on the grid (the status bar's play triangle is above it)
- CHECK(count_kind(POD_CELL) == 0);
+ CHECK(count_in(POD_TRI, 0, 88, 720) == 0 && count_kind(POD_CELL) == 0); // no triangles, no pets
}
-// The chosen tab is ringed in blue and its name is blue; no other is.
-static void grid_test_chosen_ring(void) {
- build(3, 2, true);
- pod_model_swarms(&M, sw, (const char *const **)idl, idn, 3, "s1", NULL, 0); // Tab1 is the window's selected tab
+// Counts only (an older daemon): the tabs' minis are blank with the default mark; Recent has its agents' marks.
+static void tabs_test_no_ids(void) {
+ build(2, 3, false);
render(0);
- CHECK(find_text("Tab1") && find_text("Tab1")->fg == RING_BLUE);
- CHECK(find_text("Tab0")->fg == ht_rgb(0x111111) && find_text("Tab2")->fg == ht_rgb(0x111111) && find_text("Recent")->fg == ht_rgb(0x111111));
- int rings = 0, x, y;
- cover_xy(2, &x, &y); // cover 2 is Tab1
- for (int i = 0; i < S.count; i++) {
- const ht_run_t *r = &S.runs[i];
- if (r->pro_kind != K_RECT || r->fg != RING_BLUE) continue;
- rings++;
- ht_rect_t b = ht_run_bounds(r);
- CHECK(b.x < x && b.x + b.w > x + COVER && b.y < y && b.y + b.h > y + COVER && b.x >= x - 12 && b.w <= COVER + 24);
- }
- CHECK(rings == 1);
+ int x1, y1, x2, y2;
+ cover_xy(1, &x1, &y1); cover_xy(2, &x2, &y2);
+ CHECK(count_in(K_IMAGE, x1, y1, COVER) == 0 && count_in(K_IMAGE, x2, y2, COVER) == 0); // the tabs' panes are blank
+ CHECK(find_text("3 panes") != NULL);
+ CHECK(count_rect(ht_rgb(0x9aa09a)) == 6); // both tabs' three panes, each with the default mark's outline
+ CHECK(find_hit(POD_A_OPEN_TAB, 0) != NULL && find_hit(POD_A_OPEN_TAB, 1) != NULL);
}
-// A tab with no panes: a grey cover with a "+" ring, captioned Empty.
-static void grid_test_empty_tab(void) {
+// A pane whose agent or engine has no mark shows the default mark, never an empty pane; a tab with no panes is the grid icon.
+static void tabs_test_default_mark(void) {
+ build(1, 2, true);
+ pod_model_agent(&M, ids[0][1], "blank", "", "mac");
+ pod_model_agent(&M, ids[0][0], "odd", "zzz-unknown", "mac");
+ for (int k = 0; k < 2; k++) (pod_model_turn(&M, ids[0][k], "started", NULL, 0, 0), pod_model_turn(&M, ids[0][k], "done", NULL, 0, 1 + (uint32_t)k)); // tasks: Recent lists them
+ render(0);
+ int x, y;
+ cover_xy(1, &x, &y);
+ CHECK(count_rect(ht_rgb(0x9aa09a)) == 4); // the tab's two panes, and Recent's two agents
+ int in_tab = 0;
+ for (int i = 0; i < S.count; i++) {
+ ht_rect_t b = ht_run_bounds(&S.runs[i]);
+ if (S.runs[i].pro_kind == K_RECT && S.runs[i].fg == ht_rgb(0x9aa09a)) {
+ CHECK(b.w == b.h && (b.w == 44 || b.w == 28));
+ if (b.x >= x && b.x < x + COVER) in_tab++;
+ }
+ }
+ CHECK(in_tab == 2 && find_text(">_") != NULL);
pod_model_reset(&M);
- cable_swarm_t two[2] = {{"a", "Alpha", 0, 0}, {"b", "Beta", 0, 0}};
- pod_model_swarms(&M, two, NULL, NULL, 2, "a", NULL, 0);
+ cable_swarm_t none = {"e", "Empty", 0, 0};
+ pod_model_swarms(&M, &none, NULL, NULL, 1, "e", NULL, 0);
pod_model_link(&M, true);
pod_nav_init(&N);
render(0);
- CHECK(find_text("Empty") != NULL && find_text("Empty")->pro_font == &ht_pro_24 && find_text("0 panes") == NULL);
+ CHECK(count_rect(ht_rgb(0x9aa09a)) == 0 && find_text(">_") == NULL && find_text("Empty") != NULL);
+ cable_swarm_t two = {"e", "Two", 2, 2}; // members unknown (older daemon) with 2 panes: two default marks
+ pod_model_swarms(&M, &two, NULL, NULL, 1, "e", NULL, 0);
+ render(0);
+ CHECK(count_rect(ht_rgb(0x9aa09a)) == 2);
+ pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0); // the list holds no rows for unknown members
+ render(0);
+ CHECK(count_rect(ht_rgb(0x9aa09a)) == 0 && find_text("No panes yet.") != NULL);
+}
+
+// One pane fills the cover; two or more are two columns; an offline agent's mini is faded; a tab of many panes ends in "+N".
+static void tabs_test_minis(void) {
+ build_shared(3, 1);
+ render(0);
int x, y;
cover_xy(1, &x, &y);
- int arcs = 0;
+ int one = 0, w1 = 0;
for (int i = 0; i < S.count; i++) {
ht_rect_t b = ht_run_bounds(&S.runs[i]);
- if (S.runs[i].pro_kind == POD_ARC && b.x > x && b.x + b.w < x + COVER && b.y > y && b.y + b.h < y + COVER) arcs++;
+ if (S.runs[i].pro_kind == K_RECT_AA && b.x >= x && b.y >= y && b.x + b.w <= x + COVER && b.y + b.h <= y + COVER && b.w > 100) { one++; w1 = b.w; }
}
- CHECK(arcs == 1); // the ring
- CHECK(count_in(K_RECT, x, y, COVER) == 2); // the plus: two bars (the cover itself is a gradient)
- CHECK(count_in(K_IMAGE, x, y, COVER) == 0 && find_hit(POD_A_OPEN_TAB, 0) != NULL);
-}
-
-// Recent: up to 8 agents' marks in a 4 x 2 grid of white squares, a dot on the working ones; "N agents" and what is working.
-static void grid_test_recent_face(void) {
- build_shared(1, 9);
- for (int k = 0; k < 9; k++) (pod_model_turn(&M, ids[0][k], "started", NULL, 0, 0), pod_model_turn(&M, ids[0][k], "done", NULL, 0, 20 + (uint32_t)k));
- pod_model_turn(&M, "m3", "started", NULL, 0, 30);
- pod_model_turn(&M, "m4", "started", NULL, 0, 30);
- render(40);
- CHECK(count_in(K_IMAGE, COL_X0, ROW_Y0, COVER) == 8); // the newest 8 of 9
- CHECK(dots_in(COL_X0, ROW_Y0, COVER) == 2);
- CHECK(find_text("8 agents") != NULL);
- CHECK(find_text("Working") != NULL); // the ribbon says what the caption no longer does (the status bar still says "2 working")
- pod_model_reset(&M); // nobody recent: the clock face, "0 agents"
- cable_swarm_t one = {"a", "Alpha", 1, 1};
- pod_model_swarms(&M, &one, NULL, NULL, 1, "a", NULL, 0);
- pod_model_link(&M, true);
+ CHECK(one == 1 && w1 == COVER - 26); // 13 px padding all round
+ build_shared(3, 2);
+ render(0);
+ int two = 0;
+ for (int i = 0; i < S.count; i++) {
+ ht_rect_t b = ht_run_bounds(&S.runs[i]);
+ if (S.runs[i].pro_kind == K_RECT_AA && b.x >= x && b.y >= y && b.x + b.w <= x + COVER && b.y + b.h <= y + COVER && b.h > 100) { two++; CHECK(b.w == 66); }
+ }
+ CHECK(two == 2);
+ M.agents[1].state = POD_OFFLINE;
+ render(0);
+ CHECK(count_in(K_IMAGE, x, y, COVER) == 2);
+ int faded = 0;
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_IMAGE && S.runs[i].radius > 0 && S.runs[i].radius < 255) faded++;
+ CHECK(faded >= 1);
+ build_shared(3, 12);
render(0);
- CHECK(find_text("0 agents") != NULL && count_in(K_IMAGE, COL_X0, ROW_Y0, COVER) == 0);
+ CHECK(find_text("+5") != NULL && count_in(K_IMAGE, x, y, COVER) <= 7);
}
-// The runs that are not text, the glass or the status bar: covers, rings, cards, marks, dots (y >= the glass top).
+// The runs that are not text, the bar or the footer.
static int lowest_cover_edge(void) {
int low = 0;
for (int i = 0; i < S.count; i++) {
ht_rect_t b = ht_run_bounds(&S.runs[i]);
- if (b.w >= 720 || b.y < 54 || (S.runs[i].pro_kind == K_RECT && b.w == 6 && b.h == 6)) continue; // the glass, the status bar, the page dots
+ if (b.w >= 720 || b.y < LIST_Y0 || b.y >= FOOT_Y) continue; // the glass, the bar, the footer
if (b.y + b.h > low) low = b.y + b.h;
}
return low;
}
-static int page_dots(int *dark) { // the page dots: 6 px circles; how many, and the position of the dark one
- int n = 0;
- *dark = -1;
- for (int i = 0; i < S.count; i++)
- if (S.runs[i].pro_kind == K_RECT && S.runs[i].w == 6 && S.runs[i].pro_height == 6) { if (S.runs[i].fg == ht_rgb(0x4a4e5a)) *dark = n; n++; }
- return n;
-}
// Two rows of covers a page, whole pages: nothing of the next row shows at rest, the frame's scroll is the page's first row.
static void grid_test_scroll(void) {
@@ -400,107 +626,103 @@ static void grid_test_scroll(void) {
CHECK(pod_tabs_pitch() == 2 * ROW_PITCH && pod_tabs_pages(&M) == 2 && pod_tabs_max_row(&M) == 2);
render(0);
CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) && find_hit(POD_A_OPEN_TAB, 4) && !find_hit(POD_A_OPEN_TAB, 5)); // covers 0..5 only
- CHECK(F.hit_count == 6);
+ CHECK(tab_hits() == 6);
CHECK(find_text("Tab4") != NULL && find_text("Tab5") == NULL);
- CHECK(lowest_cover_edge() <= ROW_Y0 + ROW_PITCH + COVER + 90); // nothing below the second row's captions
- CHECK(F.hits[5].y + F.hits[5].h <= 720 && F.hits[5].y + F.hits[5].h <= ROW_Y0 + ROW_PITCH + 300);
- int dark;
- CHECK(page_dots(&dark) == 2 && dark == 0);
+ CHECK(lowest_cover_edge() <= FOOT_Y); // nothing below the footer's rule
+ for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == POD_A_OPEN_TAB) CHECK(F.hits[i].y + F.hits[i].h <= FOOT_Y);
pod_nav_act(&N, &M, POD_A_SCROLL, 2, 0); // the second page: covers 6..10
render(0);
- CHECK(!find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) && find_hit(POD_A_OPEN_TAB, 5) && find_hit(POD_A_OPEN_TAB, 9) && F.hit_count == 5);
+ CHECK(!find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) && find_hit(POD_A_OPEN_TAB, 5) && find_hit(POD_A_OPEN_TAB, 9) && tab_hits() == 5);
CHECK(find_hit(POD_A_OPEN_TAB, 5)->y == ROW_Y0 && find_hit(POD_A_OPEN_TAB, 9)->y == ROW_Y0 + ROW_PITCH);
- CHECK(page_dots(&dark) == 2 && dark == 1);
+ CHECK(find_text("PAGE 2 / 2"));
pod_nav_act(&N, &M, POD_A_SCROLL, 50, 0); // past the end: the draw clamps
render(0);
CHECK(find_hit(POD_A_OPEN_TAB, 9) && !find_hit(POD_A_OPEN_TAB, 4));
const pod_hit_t *last = find_hit(POD_A_OPEN_TAB, 9);
- CHECK(last->y + last->h <= 720 && last->x >= 0 && last->x + last->w <= 720);
- pod_nav_act(&N, &M, POD_A_SCROLL, 3, 0); // an odd row: its page
- pod_nav_init(&N); pod_nav_act(&N, &M, POD_A_SCROLL, 1, 0);
+ CHECK(last->y + last->h <= FOOT_Y && last->x >= 0 && last->x + last->w <= 720);
+ pod_nav_init(&N); pod_nav_act(&N, &M, POD_A_SCROLL, 1, 0); // an odd row: its page
render(0);
CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) != NULL);
pod_nav_act(&N, &M, POD_A_SCROLL, -100, 0);
render(0);
CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) != NULL);
- build(4, 1, true); // five covers: nothing to scroll, no dots
+ build(4, 1, true); // five covers: nothing to scroll
CHECK(pod_tabs_max_row(&M) == 0 && pod_tabs_pages(&M) == 1);
render(0);
- CHECK(page_dots(&dark) == 0);
- F.tabs_moving = true; F.tabs_off = 200; ht_scene_clear(&S, ht_rgb(0xffffff)); pod_render(&F, &N, &M, 0); // one page does not move
+ CHECK(find_text("PAGE 1 / 1") == NULL);
+ F.tabs_moving = true; F.tabs_off = 200; ht_scene_clear(&S, ht_rgb(0xffffff)); F.hit_count = 0; pod_render(&F, &N, &M, 0); // one page does not move
CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT)->y == ROW_Y0);
build(0, 0, true);
render(0);
- CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) != NULL && F.hit_count == 1);
+ CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) != NULL && tab_hits() == 1);
}
static void render_at(int off, uint32_t now) {
memset(&F, 0, sizeof F);
ht_scene_clear(&S, ht_rgb(0xffffff));
F.scene = &S;
+ F.banner = banner;
F.tabs_moving = true;
F.tabs_off = off;
pod_render(&F, &N, &M, now);
}
-// While the grid is dragged it is drawn at the pixel offset: both pages, the rows that meet the glass, the status bar over
-// whatever has scrolled under it, the hits clipped to the glass; on a page boundary it is the resting screen.
+// While the grid is dragged it is drawn at the pixel offset: both pages, the rows that meet the glass, the bar and the footer
+// over whatever has scrolled under them, the hits clipped to the glass; on a page boundary it is the resting screen.
static void grid_test_motion(void) {
build(10, 2, true); // 11 covers, 2 pages
int rest0;
render(0);
rest0 = S.count;
render_at(0, 0);
- CHECK(S.count == rest0 && F.hit_count == 6 && find_hit(POD_A_OPEN_TAB, 0)->y == ROW_Y0); // offset 0: the resting page 0
+ CHECK(S.count == rest0 && tab_hits() == 6 && find_hit(POD_A_OPEN_TAB, 0)->y == ROW_Y0); // offset 0: the resting page 0
render_at(2 * ROW_PITCH, 0);
- CHECK(F.hit_count == 5 && find_hit(POD_A_OPEN_TAB, 5)->y == ROW_Y0 && !find_hit(POD_A_OPEN_TAB, 4)); // a boundary: the resting page 1
- render_at(300, 0); // 300 px into the first page
+ CHECK(tab_hits() == 5 && find_hit(POD_A_OPEN_TAB, 5)->y == ROW_Y0 && !find_hit(POD_A_OPEN_TAB, 4)); // a boundary: the resting page 1
+ render_at(100, 0); // 100 px into the first page
const pod_hit_t *h = find_hit(POD_A_OPEN_TAB, 2); // cover 3 (tab 2), the second row: it moved up by the offset
- CHECK(h && h->x == COL_X0 && h->y == ROW_Y0 + ROW_PITCH - 300);
- CHECK(find_hit(POD_A_OPEN_TAB, 5) && find_hit(POD_A_OPEN_TAB, 5)->y == ROW_Y0 + 2 * ROW_PITCH - 300); // the next page's first row
- CHECK(find_text("Tab5") != NULL && find_text("Tab8") == NULL); // row 3 (covers 9, 10) peeks in at 644: its cover shows, its name (850) does not
- CHECK(find_hit(POD_A_OPEN_TAB, 8) && find_hit(POD_A_OPEN_TAB, 8)->y == ROW_Y0 + 3 * ROW_PITCH - 300 && find_hit(POD_A_OPEN_TAB, 8)->y + find_hit(POD_A_OPEN_TAB, 8)->h == 720);
- for (int i = 0; i < F.hit_count; i++) CHECK(F.hits[i].y >= 54 && F.hits[i].y + F.hits[i].h <= 720);
- // The status bar is drawn last: every run after its gradient lies in the bar, and nothing before it is in the way.
- int bar = -1;
- for (int i = 0; i < S.count; i++) { ht_rect_t b = ht_run_bounds(&S.runs[i]); if (b.y == 0 && b.h == 54 && b.w == 720) bar = i; }
- CHECK(bar >= 0);
- for (int i = bar; i < S.count; i++) CHECK(ht_run_bounds(&S.runs[i]).y < 54 && ht_run_bounds(&S.runs[i]).y + ht_run_bounds(&S.runs[i]).h <= 56);
- int dark;
- CHECK(page_dots(&dark) == 2 && dark == 1); // 300 of 560: nearer the second page
- render_at(200, 0);
- CHECK(page_dots(&dark) == 2 && dark == 0);
+ CHECK(h && h->x == COL_X[0] - 24 && h->y == ROW_Y0 + ROW_PITCH - 100);
+ CHECK(find_hit(POD_A_OPEN_TAB, 5) && find_hit(POD_A_OPEN_TAB, 5)->y == ROW_Y0 + 2 * ROW_PITCH - 100 && find_hit(POD_A_OPEN_TAB, 5)->y + find_hit(POD_A_OPEN_TAB, 5)->h == FOOT_Y);
+ CHECK(find_hit(POD_A_OPEN_TAB, 0) && find_hit(POD_A_OPEN_TAB, 0)->y == LIST_Y0 + 1); // the first row's card, clipped under the bar
+ CHECK(find_text("Tab2") != NULL && find_text("Tab5") == NULL && find_text("Tab8") == NULL); // row 2: its cover shows, its name is below the glass; row 3 is gone
+ for (int i = 0; i < F.hit_count; i++) if (F.hits[i].action == POD_A_OPEN_TAB) CHECK(F.hits[i].y >= LIST_Y0 && F.hits[i].y + F.hits[i].h <= FOOT_Y);
+ // The footer and the bar are drawn last: every run after the footer's gradient lies in the footer or the bar.
+ int foot = -1;
+ for (int i = 0; i < S.count; i++) { ht_rect_t b = ht_run_bounds(&S.runs[i]); if (b.y == FOOT_Y && b.h == 720 - FOOT_Y && b.w == 720) foot = i; }
+ CHECK(foot >= 0);
+ for (int i = foot; i < S.count; i++) { ht_rect_t b = ht_run_bounds(&S.runs[i]); CHECK(b.y >= FOOT_Y || b.y + b.h <= LIST_Y0 + 2); }
+ CHECK(find_text("PAGE 1 / 2") != NULL); // 100 of 510: nearer the first page
+ render_at(300, 0);
+ CHECK(find_text("PAGE 2 / 2") != NULL);
// A mid-motion row that has scrolled wholly under the bar is not drawn; a row below the glass neither.
render_at(400, 0);
- CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) == NULL); // row 0 at 104 - 400: wholly under the bar, gone
+ CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT) == NULL); // row 0 at 113 - 400: wholly under the bar, gone
render_at(-100, 0); // the end pulled down: the first page lower, nothing before it
CHECK(find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT)->y == ROW_Y0 + 100 && find_hit(POD_A_OPEN_TAB, 5) == NULL);
}
-// Run budget in motion: 24 tabs, nine marked panes a cover, the worst two partial pages (12 covers), every offset.
+// Run budget in motion: 24 tabs, nine marked panes a cover, the worst two partial pages, every offset.
static void grid_test_motion_budget(void) {
for (int per = 0; per <= 9; per += (per < 6 ? 2 : 1)) {
build_shared(24, per);
for (int k = 0; k < per; k++) { pod_model_agent(&M, ids[0][k], "x", k % 2 ? "cursor" : "claude", "mac"); pod_model_turn(&M, ids[0][k], "started", NULL, 0, 5 + (uint32_t)k); }
if (per > 1) pod_model_question(&M, "m1", "ok?");
- int pages = pod_tabs_pages(&M), most = 0, worst_total = 0;
+ pod_model_unread_add(&M, "m0", "x", "done", 5, 100);
+ int pages = pod_tabs_pages(&M), most = 0;
CHECK(pages == 5); // 25 covers: 9 rows
- for (int off = -170; off <= 4 * 560 + 170; off += 11) {
+ for (int off = -255; off <= 4 * 510 + 255; off += 11) {
render_at(off, 100);
- int dark;
- CHECK(S.count > 0 && S.count <= HT_RUNS && F.hit_count <= 32 && page_dots(&dark) == pages);
+ CHECK(S.count > 0 && S.count <= budget() && F.hit_count <= 32);
if (S.count > most) most = S.count;
- worst_total += F.hit_count;
}
- CHECK(most > 40 && worst_total > 0);
+ CHECK(most > 30);
}
- // Resting is constant: the same count at every clock, and no more than the worst of the motion.
+ // Resting is constant: the same count at every clock, and the same as the page-aligned motion.
build_shared(24, 9);
for (int row = 0; row <= pod_tabs_max_row(&M); row += 2) {
pod_nav_init(&N); pod_nav_act(&N, &M, POD_A_SCROLL, row, 0);
render(0);
int want = S.count;
- for (uint32_t t = 0; t < 3000; t += 331) { render(t); CHECK(S.count == want); render_at(row / 2 * 560, t); CHECK(S.count == want); }
+ for (uint32_t t = 0; t < 3000; t += 331) { render(t); CHECK(S.count == want); render_at(row / 2 * 510, t); CHECK(S.count == want); }
}
}
@@ -509,23 +731,25 @@ static void grid_test_taps(void) {
build(4, 2, true);
render(0);
const pod_hit_t *h = find_hit(POD_A_OPEN_TAB, POD_TAB_RECENT);
- CHECK(h && h->id[0] == 0 && h->x == COL_X0 && h->y == ROW_Y0);
+ CHECK(h && h->id[0] == 0 && h->x == COL_X[0] - 24 && h->y == ROW_Y0);
pod_nav_act(&N, &M, (pod_action_t)h->action, h->arg, 0);
CHECK(N.depth == 2 && N.stack[1].view == POD_V_TAB && N.stack[1].tab == POD_TAB_RECENT);
pod_nav_init(&N);
render(0);
h = find_hit(POD_A_OPEN_TAB, 2);
CHECK(h && !strcmp(h->id, "s2"));
- CHECK(h->x == COL_X0 && h->y == ROW_Y0 + ROW_PITCH); // cover 3 is row 1, column 0
+ CHECK(h->x == COL_X[0] - 24 && h->y == ROW_Y0 + ROW_PITCH); // cover 3 is row 1, column 0
pod_nav_act(&N, &M, POD_A_OPEN_TAB, h->arg, 0);
CHECK(N.depth == 2 && N.stack[1].tab == 2 && !strcmp(N.stack[1].tab_id, "s2"));
- for (int i = 0; i < F.hit_count; i++) { // every hit is on the glass and big enough to tap
- CHECK(F.hits[i].w >= 150 && F.hits[i].x >= 0 && F.hits[i].x + F.hits[i].w <= 720 && F.hits[i].y >= 54 && F.hits[i].y + F.hits[i].h <= 720);
- CHECK(F.hits[i].action == POD_A_OPEN_TAB);
+ pod_nav_init(&N);
+ render(0);
+ for (int i = 0; i < F.hit_count; i++) { // every card hit is on the glass and big enough to tap
+ if (F.hits[i].action != POD_A_OPEN_TAB) continue;
+ CHECK(F.hits[i].w == 213 && F.hits[i].x >= 0 && F.hits[i].x + F.hits[i].w <= 720 && F.hits[i].y >= LIST_Y0 && F.hits[i].y + F.hits[i].h <= FOOT_Y);
}
}
-// The captions: name in 32, count line in 24 grey; working in green, asking in amber, each after a dot; the status bar.
+// The captions: name in Regular 30, the count line in 23 muted; "N working" in the footer only.
static void grid_test_captions(void) {
build(3, 2, true);
pod_model_turn(&M, "t0k0", "started", NULL, 0, 10);
@@ -533,16 +757,16 @@ static void grid_test_captions(void) {
pod_model_question(&M, "t2k1", "ok?");
render(20);
const ht_run_t *name = find_text("Tab0"), *sub = find_text("2 panes");
- CHECK(name && sub && name->pro_font == &ht_pro_32 && sub->pro_font == &ht_pro_24 && sub->fg == ht_rgb(0x7b7d84));
- CHECK(name->fg == RING_BLUE); // Tab0 is the selected one
- CHECK(!find_text("1 asking")); // the captions are the name and the count alone (the status bar keeps "3 working")
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y > 54 && strstr(S.runs[i].text, "working")) CHECK(0);
- CHECK(find_text("Tabs") != NULL && find_text("3 working") != NULL && find_text("3 working")->fg == ht_rgb(0x2fa84f)); // the status bar: working and asking
+ CHECK(name && sub && name->pro_font == &ci_rg_30 && sub->pro_font == &ci_rg_23 && sub->fg == CI_MUTED_RGB);
+ CHECK(name->fg == CI_BLUE_RGB); // Tab0 is the selected one
+ CHECK(!find_text("1 asking"));
+ for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && S.runs[i].y > LIST_Y0 && S.runs[i].y < FOOT_Y && strstr(S.runs[i].text, "working")) CHECK(0);
+ CHECK(find_text("Tabs") != NULL && find_text("Tabs")->pro_font == &ci_bd_30 && find_text("3 working") != NULL && find_text("3 working")->y >= FOOT_Y); // working and asking
CHECK(find_text("Tab1") != NULL && find_text("Tab2") != NULL && find_text("Recent") != NULL && find_text("3 agents") != NULL); // Recent: the three with tasks
- for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_RECT && S.runs[i].w == 9 && S.runs[i].pro_height == 9) CHECK(0); // no caption dots
}
-static void render_test_connecting(void) {
+// Connection lost (the cable is down): the stack stays where it is, nothing on it is live, and it comes back with the link.
+static void render_test_connection_lost(void) {
build(2, 2, true);
pod_nav_act(&N, &M, POD_A_OPEN_TAB, 0, 0);
pod_nav_act(&N, &M, POD_A_OPEN_AGENT, 0, 0);
@@ -550,37 +774,14 @@ static void render_test_connecting(void) {
char who[ID_MAX]; strcpy(who, N.stack[N.depth - 1].agent);
pod_model_link(&M, false);
render(0);
- CHECK(find_text("Connecting") != NULL);
+ CHECK(find_text("Connection lost.") != NULL && find_text("Connecting") == NULL);
CHECK(count_kind(K_IMAGE) == 0);
for (int i = 0; i < S.count; i++) CHECK(S.runs[i].pro_kind != POD_CELL);
- CHECK(F.hit_count == 1 && F.hits[0].action == POD_A_BACK);
+ CHECK(F.hit_count == 0);
CHECK(N.depth == depth && !strcmp(N.stack[N.depth - 1].agent, who));
- const ht_run_t *c = find_text("Connecting");
- CHECK(c->fg == ht_rgb(0x7b7d84) && c->pro_font == &ht_pro_32);
pod_model_link(&M, true);
render(0);
- CHECK(find_text("Connecting") == NULL);
-}
-
-static void transport_test_shape(void) {
- build(1, 1, true);
- int runs[2];
- for (int talking = 0; talking < 2; talking++) {
- memset(&F, 0, sizeof F);
- ht_scene_clear(&S, ht_rgb(0xffffff));
- F.scene = &S;
- pod_transport(&F, talking);
- runs[talking] = S.count;
- CHECK(F.hit_count == 5);
- for (int i = 0; i < F.hit_count; i++) {
- CHECK(F.hits[i].w >= 80 && F.hits[i].h >= 80);
- CHECK(F.hits[i].y >= POD_TRANSPORT_Y && F.hits[i].y + F.hits[i].h <= 720);
- }
- CHECK(find_hit(POD_A_TABS, 0) && find_hit(POD_A_PANES, 0) && find_hit(POD_A_PREV, 0) && find_hit(POD_A_TALK, 0) &&
- find_hit(POD_A_NEXT, 0) && !find_hit(POD_A_RECAP, 0));
- CHECK(!find_text("SEND") && !find_text("TALK") && find_text("TABS") && find_text("PANES"));
- }
- CHECK(runs[0] == runs[1] && runs[0] == POD_TRANSPORT_RUNS);
+ CHECK(find_text("Connection lost.") == NULL);
}
// M12: a send whose turn never came: after POD_SENT_WAIT_MS the agent is no longer counted as working anywhere. (A real
@@ -602,126 +803,30 @@ static void tabs_test_stale_working(void) {
CHECK(find_text("3 panes") == NULL && find_text("1 working") == NULL); // the Tab screen has no head
}
-// ---- the Playing ribbon ---------------------------------------------------------------------------------------------
-static int ribbon_runs_in(int c, int *bars_out /* [3] heights */, int *discs) { // runs in the cover's foot band; bar heights
- int x, y, n = 0, nb = 0;
- cover_xy(c, &x, &y);
- if (discs) *discs = 0;
- for (int i = 0; i < S.count; i++) {
- const ht_run_t *r = &S.runs[i];
- ht_rect_t b = ht_run_bounds(r);
- if (b.x < x || b.x + b.w > x + COVER || b.y < y + COVER - 38 || b.y + b.h > y + COVER) continue;
- n++;
- if (r->pro_kind == K_RECT && r->fg == ht_rgb(0x34c759) && r->w == 5 && nb < 3 && bars_out) bars_out[nb++] = r->pro_height;
- if (r->pro_kind == K_RECT && r->w == 24 && discs) (*discs)++;
- }
- return n;
-}
-static void ribbon_setup(void) { // Tab0 has one agent working (two panes), Tab1 only an asking one, Tab2 none
- build(3, 2, true);
- pod_model_turn(&M, "t0k0", "started", NULL, 0, 10);
- pod_model_turn(&M, "t1k0", "started", NULL, 0, 10);
- (pod_model_turn(&M, "t1k0", "started", NULL, 0, 0), pod_model_turn(&M, "t1k0", "done", NULL, 0, 11));
- pod_model_question(&M, "t1k1", "ok?");
-}
-static const ht_run_t *foot_text(int c, const char *text) { // a text run inside cover c's foot band
- int x, y; cover_xy(c, &x, &y);
- for (int i = 0; i < S.count; i++) {
- const ht_run_t *r = &S.runs[i];
- if (r->pro_kind == K_TEXT && !strcmp(r->text, text) && r->x >= x && r->x < x + COVER && r->y >= y + COVER - 38 && r->y < y + COVER) return r;
- }
- return NULL;
-}
-static void ribbon_test_draws(void) {
- ribbon_setup();
- render(20);
- int disc;
- CHECK(ribbon_runs_in(1, NULL, &disc) == 8 && disc == 1); // Tab0: band (2), bars (3), PLAYING, disc, count
- const ht_run_t *p = foot_text(1, "Working"), *cnt = foot_text(1, "1");
- CHECK(p && p->fg == ht_rgb(0xffffff) && p->pro_font == &ht_pro_24 && cnt && cnt->x > p->x + 60);
- int x, y; cover_xy(1, &x, &y);
- CHECK(p->x > x && p->x < x + COVER / 2);
- CHECK(foot_text(0, "Working") && foot_text(0, "1")); // Recent counts its working agents (t0k0)
- CHECK(!foot_text(2, "Working") && ribbon_runs_in(2, NULL, &disc) == 0); // asking only: no ribbon
- CHECK(!foot_text(3, "Working") && ribbon_runs_in(3, NULL, &disc) == 0); // idle
- CHECK(!find_text("1 asking")); // (the status bar keeps its "N working")
- // Two working agents in a tab: the disc says 2.
- pod_model_turn(&M, "t0k1", "started", NULL, 0, 12);
- render(30);
- CHECK(foot_text(1, "2") != NULL && foot_text(0, "2") != NULL);
-}
-static void ribbon_test_bars(void) {
- ribbon_setup();
- int seen[3] = {0, 0, 0}, last[3] = {0, 0, 0};
- int hs[3];
- static ht_scene_t prev;
- for (int k = 0; k < 6; k++) {
- uint32_t now = 900 + (uint32_t)k * 300;
- render(now);
- int cnt = S.count;
- ribbon_runs_in(1, hs, NULL);
- for (int b = 0; b < 3; b++) { CHECK(hs[b] == 8 || hs[b] == 14 || hs[b] == 20); seen[hs[b] == 8 ? 0 : hs[b] == 14 ? 1 : 2]++; }
- CHECK(hs[0] != hs[1] && hs[1] != hs[2] && hs[0] != hs[2]); // three different heights at once
- if (k) {
- CHECK(cnt == prev.count);
- int diff = 0;
- for (int i = 0; i < cnt; i++) if (memcmp(&S.runs[i], &prev.runs[i], sizeof S.runs[i])) {
- diff++;
- CHECK(S.runs[i].pro_kind == K_RECT && S.runs[i].w == 5 && S.runs[i].fg == ht_rgb(0x34c759)); // only bar runs differ
- }
- CHECK(diff == 6); // all three bars moved on both ribbons (Recent and Tab0)
- CHECK(hs[0] != last[0]);
- }
- memcpy(&prev, &S, sizeof S);
- memcpy(last, hs, sizeof hs);
- render(now + 299); // within the same step: identical
- CHECK(!memcmp(&S.runs[0], &prev.runs[0], sizeof S.runs[0]) && S.count == prev.count);
- { int h2[3]; ribbon_runs_in(1, h2, NULL); CHECK(!memcmp(h2, hs, sizeof hs)); }
- }
- CHECK(seen[0] == 6 && seen[1] == 6 && seen[2] == 6); // each state in each bar's turn
-}
-// 1..24 tabs, every page, working agents everywhere: the same run count in every step, within the budget.
-static void ribbon_test_budget(void) {
- static const int tabs_for[] = {1, 2, 5, 7, 12, 24};
- for (int j = 0; j < 6; j++)
- for (int per = 1; per <= 9; per += 4) {
- build_shared(tabs_for[j], per);
- for (int k = 0; k < per; k++) pod_model_turn(&M, ids[0][k], "started", NULL, 0, 10);
- for (int row = 0; row <= pod_tabs_max_row(&M); row += 2) {
- pod_nav_init(&N); pod_nav_act(&N, &M, POD_A_SCROLL, row, 0);
- render(1000);
- int want = S.count;
- CHECK(want <= HT_RUNS && F.hit_count <= 32);
- for (uint32_t t = 1000; t < 3000; t += 100) { render(t); CHECK(S.count == want); }
- int pl = 0; for (int i = 0; i < S.count; i++) if (S.runs[i].pro_kind == K_TEXT && !strcmp(S.runs[i].text, "Working")) pl++;
- int covers = 1 + tabs_for[j], first = row * 3, shown = covers - first < 6 ? covers - first : 6;
- CHECK(pl == shown); // never dropped at rest
- }
- }
-}
-
int main(void) {
- grid_test_budget();
+ test_tabs_grid_geometry();
+ test_tabs_selected_ring();
+ test_tabs_ribbon_only_when_working();
+ test_tabs_footer_pages();
+ test_tabs_empty_cover_grid_icon();
+ test_tabs_budget();
+ tabs_test_minis();
grid_test_six_covers();
- grid_test_chosen_ring();
- grid_test_empty_tab();
- grid_test_recent_face();
grid_test_scroll();
grid_test_motion();
grid_test_motion_budget();
grid_test_taps();
grid_test_captions();
- tab_test_rows();
- tab_test_empty();
tabs_test_no_ids();
tabs_test_default_mark();
tabs_test_stale_working();
- ribbon_test_draws();
- ribbon_test_bars();
- ribbon_test_budget();
- render_test_connecting();
- transport_test_shape();
- tab_test_many_rows();
+ test_list_no_heading();
+ test_list_five_rows();
+ test_list_meta_words();
+ test_list_long_name_ellipsis();
+ test_list_empty_tab();
+ test_list_budget();
+ render_test_connection_lost();
printf("test_pod_views_tabs: %d checks ok (most runs in a Tabs frame: %d of %d)\n", checks, max_runs, HT_RUNS);
return 0;
}
diff --git a/devices/harness-pro/firmware/test/test_pro_app.py b/devices/harness-pro/firmware/test/test_pro_app.py
index 0b095b362..24ce23916 100644
--- a/devices/harness-pro/firmware/test/test_pro_app.py
+++ b/devices/harness-pro/firmware/test/test_pro_app.py
@@ -44,6 +44,7 @@ code = r'''
#include "sys/ram_telemetry.h"
#include "pro_display.h"
#include "pro_frame.h"
+#include "pod/classic/ci.h"
#include "esp_heap_caps.h"
#include "esp_task_wdt.h"
@@ -184,6 +185,7 @@ static pod_out_t ucontact(bool down, int x, int y, bool *changed) {
return contact(down, pod_turn_coord(x), pod_turn_coord(y), changed);
}
// A tap on the rendered hit: DOWN and UP at its centre, as the GT911 reports it, then the redraw a change causes.
+enum { RECAP_LINE = 42, PAGE_PX = 510 }; // PAGE_PX: the Tabs grid's page pitch (two 255 px rows) // the Classic Recap body line pitch (pod_scroll_pitch)
static pod_out_t tap_at(int x, int y) {
bool c1 = false, c2 = false;
pod_out_t d = ucontact(true, x, y, &c1);
@@ -198,6 +200,31 @@ static pod_out_t tap(pod_action_t a, int arg) {
CHECK(h->w >= 1 && h->h >= 1);
return tap_at(h->x + h->w / 2, h->y + h->h / 2);
}
+// The nav actions with no drawn hit in Classic (TABS, PANES, PREV, NEXT): the side button's path, or a stale hit or host effect.
+static pod_out_t nav_act(pod_action_t a) {
+ pod_out_t o = pod_nav_act(&U.nav, &U.model, a, 0, now);
+ render();
+ return o;
+}
+// A drag from (x0,y0) to (x1,y1) in n MOVEs of 16 ms each, then the lift. Returns the effect of the lift.
+static pod_out_t drag(int x0, int y0, int x1, int y1, int n) {
+ bool c = false;
+ ucontact(true, x0, y0, &c);
+ for (int i = 1; i <= n; i++) ucontact(true, x0 + (x1 - x0) * i / n, y0 + (y1 - y0) * i / n, &c);
+ pod_out_t o = ucontact(false, x1, y1, &c);
+ render();
+ return o;
+}
+// PREV and NEXT are drawn nowhere in Classic any more: the horizontal swipe (finger left = next) is the touch way.
+static pod_out_t swipe_next(void) { return drag(500, 300, 300, 305, 8); }
+static pod_out_t swipe_prev(void) { return drag(200, 300, 520, 295, 8); }
+// Classic dims Talk (no hit) when the agent cannot be talked to; a stale TALK hit, drawn before that, still reaches the glue and
+// the app's gates, which is what these replays check.
+static pod_out_t tap_stale_talk(void) {
+ CHECK(U.frame.hit_count < 32);
+ U.frame.hits[U.frame.hit_count++] = (pod_hit_t){CI_TALK_X, CI_TALK_Y, CI_TALK_W, CI_TALK_H, POD_A_TALK, 0, {0}};
+ return tap(POD_A_TALK, 0);
+}
static void expect(pod_out_t o, pod_effect_t fx, const char *agent) {
CHECK(o.fx == fx);
if (agent) CHECK(!strcmp(o.agent, agent));
@@ -255,7 +282,7 @@ static void journey(void) {
pod_nav_sync(&U.nav, &U.model);
CHECK(top() == POD_V_AGENT && !pod_ui_talking(&U));
// NEXT steps to a2, which is done and opens on its Recap.
- expect(tap(POD_A_NEXT, 0), POD_FX_AGENT_OPEN, "a2");
+ expect(swipe_next(), POD_FX_AGENT_OPEN, "a2");
CHECK(top() == POD_V_RECAP);
// Back out: Tab, then Tabs.
expect(tap(POD_A_BACK, 0), POD_FX_NONE, NULL);
@@ -289,20 +316,20 @@ static void orphan_recording_is_discarded(void) {
static void tabs_button_from_everywhere(void) {
to_talk();
- expect(tap(POD_A_TABS, 0), POD_FX_VOICE_ABORT, "a1"); // from Talking: abort, then the root
+ expect(nav_act(POD_A_TABS), POD_FX_VOICE_ABORT, "a1"); // from Talking (the side button's path; Voice draws no TABS button): abort, then the root
CHECK(top() == POD_V_TABS && U.nav.depth == 1 && !pod_ui_talking(&U));
tap(POD_A_OPEN_TAB, 0);
tap(POD_A_OPEN_AGENT, 1); // a2: done, opens on its Recap
CHECK(top() == POD_V_RECAP);
- expect(tap(POD_A_PANES, 0), POD_FX_NONE, NULL); // PANES: the tab's list
+ expect(nav_act(POD_A_PANES), POD_FX_NONE, NULL); // PANES: the tab's list (no button: the side button's path)
CHECK(top() == POD_V_TAB && U.nav.depth == 2);
tap(POD_A_OPEN_AGENT, 0);
- expect(tap(POD_A_TABS, 0), POD_FX_NONE, NULL); // TABS from an Agent screen
+ expect(nav_act(POD_A_TABS), POD_FX_NONE, NULL); // TABS from an Agent screen (no button: the side button)
CHECK(top() == POD_V_TABS && U.nav.depth == 1);
CHECK(hit(POD_A_RECAP, 0) == NULL);
// PANES from Talking aborts and lands on the tab's list
tap(POD_A_OPEN_TAB, 0); tap(POD_A_OPEN_AGENT, 0); tap(POD_A_TALK, 0);
- expect(tap(POD_A_PANES, 0), POD_FX_VOICE_ABORT, "a1");
+ expect(nav_act(POD_A_PANES), POD_FX_VOICE_ABORT, "a1");
CHECK(top() == POD_V_TAB && U.nav.depth == 2);
}
@@ -315,29 +342,20 @@ static void recap_drag_scrolls(void) {
tap(POD_A_OPEN_TAB, 0);
tap(POD_A_OPEN_AGENT, 1);
CHECK(top() == POD_V_RECAP);
- CHECK(pod_scroll_max(&U.nav, &U.model) > 0 && pod_scroll_pitch(&U.nav) == ht_pro_32.height);
+ CHECK(pod_scroll_max(&U.nav, &U.model) > 0 && pod_scroll_pitch(&U.nav) == RECAP_LINE);
CHECK(U.nav.stack[U.nav.depth - 1].scroll == 0);
bool c = false;
ucontact(true, 360, 450, &c);
- ucontact(true, 360, 450 - 2 * ht_pro_32.height, &c);
+ ucontact(true, 360, 450 - 2 * RECAP_LINE, &c);
CHECK(c && U.nav.stack[U.nav.depth - 1].scroll == 2);
- ucontact(false, 360, 450 - 2 * ht_pro_32.height, &c);
+ ucontact(false, 360, 450 - 2 * RECAP_LINE, &c);
CHECK(U.nav.stack[U.nav.depth - 1].scroll == 2 && top() == POD_V_RECAP); // a drag is not a tap
- ucontact(true, 360, 100, &c); ucontact(true, 360, 100 + 10 * ht_pro_32.height, &c); ucontact(false, 360, 100, &c);
+ ucontact(true, 360, 100, &c); ucontact(true, 360, 100 + 10 * RECAP_LINE, &c); ucontact(false, 360, 100, &c);
CHECK(U.nav.stack[U.nav.depth - 1].scroll == 0);
}
// ---- the horizontal swipe steps panes (swipe left = next, right = previous, as the round dial) -------------------------
-// A drag from (x0,y0) to (x1,y1) in n MOVEs of 16 ms each, then the lift. Returns the effect of the lift.
-static pod_out_t drag(int x0, int y0, int x1, int y1, int n) {
- bool c = false;
- ucontact(true, x0, y0, &c);
- for (int i = 1; i <= n; i++) ucontact(true, x0 + (x1 - x0) * i / n, y0 + (y1 - y0) * i / n, &c);
- pod_out_t o = ucontact(false, x1, y1, &c);
- render();
- return o;
-}
static const char *cur(void) { return U.nav.stack[U.nav.depth - 1].agent; }
static void to_agent(int row) {
setup();
@@ -352,7 +370,7 @@ static void swipe_steps_panes(void) {
expect(drag(200, 300, 520, 290, 8), POD_FX_AGENT_OPEN, "a1"); // left-to-right: previous
CHECK(!strcmp(cur(), "a1") && top() == POD_V_AGENT);
// a Recap steps too, and a quick flick shorter in time counts
- tap(POD_A_NEXT, 0);
+ swipe_next();
CHECK(top() == POD_V_RECAP);
expect(drag(520, 400, 300, 400, 3), POD_FX_AGENT_OPEN, "a1");
}
@@ -360,8 +378,8 @@ static void swipe_slow_does_nothing(void) {
to_agent(0);
expect(drag(520, 300, 300, 300, 60), POD_FX_NONE, NULL); // ~1 s and slow all along
CHECK(!strcmp(cur(), "a1"));
- // a tap still works
- expect(tap(POD_A_NEXT, 0), POD_FX_AGENT_OPEN, "a2");
+ // a quick swipe still works
+ expect(swipe_next(), POD_FX_AGENT_OPEN, "a2");
}
static void swipe_short_and_diagonal(void) {
to_agent(0);
@@ -379,9 +397,13 @@ static void swipe_in_talking_aborts_first(void) {
}
static void swipe_from_the_transport_is_ignored(void) {
to_agent(0);
- int y = POD_TRANSPORT_Y + 60;
+ int y = CI_TRANS_Y + 60;
expect(drag(560, y, 160, y, 8), POD_FX_NONE, NULL);
CHECK(!strcmp(cur(), "a1"));
+ expect(drag(560, CI_TRANS_Y, 160, CI_TRANS_Y, 8), POD_FX_NONE, NULL); // the line itself is the transport
+ CHECK(!strcmp(cur(), "a1"));
+ expect(drag(560, CI_TRANS_Y - 1, 160, CI_TRANS_Y - 1, 8), POD_FX_AGENT_OPEN, "a2"); // one px above it still swipes
+ to_agent(0);
to_talk();
expect(drag(560, y, 160, y, 8), POD_FX_NONE, NULL);
CHECK(pod_ui_talking(&U));
@@ -405,20 +427,20 @@ static void swipe_does_not_scroll_the_recap(void) {
// a wide swipe with some vertical wobble: no rows scrolled, a swipe not a scroll
expect(drag(520, 300, 300, 340, 8), POD_FX_AGENT_OPEN, "a1");
CHECK(U.nav.stack[U.nav.depth - 1].scroll == 0);
- tap(POD_A_NEXT, 0);
+ swipe_next();
CHECK(U.nav.stack[U.nav.depth - 1].scroll == 0);
// the vertical drag still scrolls
bool c = false;
ucontact(true, 360, 450, &c);
- ucontact(true, 360, 450 - 2 * ht_pro_32.height, &c);
+ ucontact(true, 360, 450 - 2 * RECAP_LINE, &c);
CHECK(c && U.nav.stack[U.nav.depth - 1].scroll == 2);
- pod_out_t o = ucontact(false, 360, 450 - 2 * ht_pro_32.height, &c);
+ pod_out_t o = ucontact(false, 360, 450 - 2 * RECAP_LINE, &c);
CHECK(o.fx == POD_FX_NONE && U.nav.stack[U.nav.depth - 1].scroll == 2 && top() == POD_V_RECAP);
}
static void next_from_talking_aborts(void) {
to_talk();
- pod_out_t o = tap(POD_A_NEXT, 0);
+ pod_out_t o = nav_act(POD_A_NEXT);
expect(o, POD_FX_VOICE_ABORT, "a1"); // never VOICE_END, and not AGENT_OPEN
CHECK(top() == POD_V_AGENT || top() == POD_V_RECAP);
CHECK(!strcmp(U.nav.stack[U.nav.depth - 1].agent, "a2"));
@@ -429,7 +451,7 @@ static void next_from_talking_aborts(void) {
static void prev_and_back_from_talking_abort(void) {
to_talk();
- expect(tap(POD_A_PREV, 0), POD_FX_VOICE_ABORT, "a1");
+ expect(nav_act(POD_A_PREV), POD_FX_VOICE_ABORT, "a1");
CHECK(!pod_ui_talking(&U));
to_talk();
expect(tap(POD_A_BACK, 0), POD_FX_VOICE_ABORT, "a1");
@@ -605,15 +627,15 @@ static void drag_scrolls_tab_and_is_not_a_tap(void) {
pod_ui_swarms(&U, one, 1, &mem, "t0", NULL, 0);
render();
tap(POD_A_OPEN_TAB, 0);
- CHECK(top() == POD_V_TAB && pod_scroll_pitch(&U.nav) == 84 && pod_scroll_max(&U.nav, &U.model) == 1); // seven rows fit under the status bar
+ CHECK(top() == POD_V_TAB && pod_scroll_pitch(&U.nav) == 112 && pod_scroll_max(&U.nav, &U.model) == 4); // four whole rows fit (a fifth peeks)
ucontact(true, 360, 600, &c);
ucontact(true, 360, 500, &c); // 100 px: one row
CHECK(c && U.nav.stack[U.nav.depth - 1].scroll == 1);
- ucontact(true, 360, 0, &c); // clamped at 8 - 7
- CHECK(U.nav.stack[U.nav.depth - 1].scroll == 1);
+ ucontact(true, 360, 0, &c); // clamped at 8 - 4
+ CHECK(U.nav.stack[U.nav.depth - 1].scroll == 4);
ucontact(false, 360, 0, &c);
render();
- CHECK(hit(POD_A_OPEN_AGENT, 1) != NULL && hit(POD_A_OPEN_AGENT, 7) != NULL && hit(POD_A_OPEN_AGENT, 0) == NULL);
+ CHECK(hit(POD_A_OPEN_AGENT, 4) != NULL && hit(POD_A_OPEN_AGENT, 7) != NULL && hit(POD_A_OPEN_AGENT, 3) == NULL);
}
}
@@ -648,8 +670,8 @@ static void grid_drag(int dy, int holds) { // DOWN at y 600, the move in four
static void drag_follows_and_snaps(void) {
many_tabs(); // nine covers: two pages
- CHECK(pod_scroll_pitch(&U.nav) == 560 && pod_scroll_max(&U.nav, &U.model) == 2);
- CHECK(U.frame.hit_count == 6 && hit(POD_A_OPEN_TAB, 4) != NULL && hit(POD_A_OPEN_TAB, 5) == NULL && !U.frame.tabs_moving);
+ CHECK(pod_scroll_pitch(&U.nav) == PAGE_PX && pod_scroll_max(&U.nav, &U.model) == 2);
+ CHECK(U.frame.hit_count == 6 + 1 && hit(POD_A_OPEN_TAB, 4) != NULL && hit(POD_A_OPEN_TAB, 5) == NULL && !U.frame.tabs_moving);
bool c;
ucontact(true, 360, 600, &c);
ucontact(true, 360, 590, &c); // 10 px: still a tap
@@ -660,23 +682,24 @@ static void drag_follows_and_snaps(void) {
render(); CHECK(U.frame.tabs_off == 300);
CHECK(U.nav.stack[0].scroll == 0); // the resting page changes at the release
CHECK(hit(POD_A_OPEN_TAB, 5) != NULL && hit(POD_A_OPEN_TAB, 2) != NULL && U.frame.hit_count <= 32); // both pages, tappable
- for (int i = 0; i < U.frame.hit_count; i++) CHECK(U.frame.hits[i].y >= 54 && U.frame.hits[i].y + U.frame.hits[i].h <= 720);
+ for (int i = 0; i < U.frame.hit_count; i++) // the covers stay between the bar (88) and the footer (628); the bell is the bar's
+ if (U.frame.hits[i].action != POD_A_INBOX) CHECK(U.frame.hits[i].y >= 88 && U.frame.hits[i].y + U.frame.hits[i].h <= 628);
CHECK(S.count <= HT_RUNS);
ucontact(true, 360, 280, &c); render(); CHECK(U.frame.tabs_off == 320); // follows on, dy = -320
for (int k = 0; k < 8; k++) ucontact(true, 360, 280, &c); // the finger rests: no flick
ucontact(false, 360, 280, &c);
CHECK(c && U.nav.stack[0].scroll == 2 && top() == POD_V_TABS && U.nav.depth == 1); // past the middle: page 1, a drag is not a tap
render();
- int steps = settle(+1, 560);
+ int steps = settle(+1, PAGE_PX);
CHECK(steps >= 5);
render();
- CHECK(hit(POD_A_OPEN_TAB, 0) == NULL && hit(POD_A_OPEN_TAB, 5) != NULL && hit(POD_A_OPEN_TAB, 5)->y == 104 && hit(POD_A_OPEN_TAB, 7) != NULL);
+ CHECK(hit(POD_A_OPEN_TAB, 0) == NULL && hit(POD_A_OPEN_TAB, 5) != NULL && hit(POD_A_OPEN_TAB, 5)->y == 113 && hit(POD_A_OPEN_TAB, 7) != NULL);
// Back down, slowly, less than half a page: it returns to page 1.
grid_drag(200, 8); // the finger down 200 px: offset 360
- render(); CHECK(U.frame.tabs_off == 560 - 200);
+ render(); CHECK(U.frame.tabs_off == PAGE_PX - 200);
ucontact(false, 360, 800, &c);
CHECK(U.nav.stack[0].scroll == 2);
- render(); settle(+1, 560);
+ render(); settle(+1, PAGE_PX);
// More than half down: page 0.
grid_drag(300, 8);
ucontact(false, 360, 900, &c);
@@ -695,7 +718,7 @@ static void flick_turns_the_page(void) {
grid_drag(-40, 0); // 40 px in 64 ms, finger still moving: 0.6 px/ms, well over 0.3
ucontact(false, 360, 560, &c);
CHECK(U.nav.stack[0].scroll == 2); // the next page though it is only 40 px away
- render(); settle(+1, 560);
+ render(); settle(+1, PAGE_PX);
grid_drag(60, 0); // a flick down: back to page 0
ucontact(false, 360, 660, &c);
CHECK(U.nav.stack[0].scroll == 0);
@@ -759,11 +782,11 @@ static void grid_ends_rubber_band(void) {
render(); settle(+1, 0); // back up to 0, exactly
pod_nav_act(&U.nav, &U.model, POD_A_SCROLL, 2, now); // the last page
render();
- grid_drag(-300, 8); // pulled up past the last page: 560 + 300 / 3
- render(); CHECK(U.frame.tabs_off == 660);
+ grid_drag(-300, 8); // pulled up past the last page: a page + 300 / 3
+ render(); CHECK(U.frame.tabs_off == PAGE_PX + 100);
ucontact(false, 360, 300, &c);
CHECK(U.nav.stack[0].scroll == 2);
- render(); settle(-1, 560);
+ render(); settle(-1, PAGE_PX);
}
static void grid_caught_while_settling(void) {
@@ -774,25 +797,25 @@ static void grid_caught_while_settling(void) {
render();
now += 48; render();
int mid = shown_off();
- CHECK(mid > 40 && mid < 560 && U.pg_mode == POD_PG_ANIM);
+ CHECK(mid > 40 && mid < PAGE_PX && U.pg_mode == POD_PG_ANIM);
const pod_hit_t *h = hit(POD_A_OPEN_TAB, 1);
int x = h ? h->x + 10 : 100, y = h ? h->y + 10 : 200;
ucontact(true, x, y, &c); // a touch on the moving grid stops it where it is
render();
int held = shown_off();
- CHECK(U.pg_mode == POD_PG_DRAG && held >= mid && held < 560);
+ CHECK(U.pg_mode == POD_PG_DRAG && held >= mid && held < PAGE_PX);
now += 100; render();
CHECK(shown_off() == held);
ucontact(false, x, y, &c); // and lifting it again settles, without opening what is under it
- CHECK(top() == POD_V_TABS && U.nav.depth == 1 && U.nav.stack[0].scroll == (held > 280 ? 2 : 0));
+ CHECK(top() == POD_V_TABS && U.nav.depth == 1 && U.nav.stack[0].scroll == (held > PAGE_PX / 2 ? 2 : 0));
render();
- settle(held > 280 ? +1 : -1, held > 280 ? 560 : 0);
+ settle(held > PAGE_PX / 2 ? +1 : -1, held > PAGE_PX / 2 ? PAGE_PX : 0);
// A cancelled contact (the touch driver lost it) settles too.
pod_nav_act(&U.nav, &U.model, POD_A_SCROLL, -2, now); render(); // page 0
grid_drag(-400, 8);
pro_app_touch_cancel();
CHECK(U.nav.stack[0].scroll == 2 && U.pg_mode == POD_PG_ANIM);
- render(); settle(+1, 560);
+ render(); settle(+1, PAGE_PX);
// The screen changes under a settling grid: it ends, nothing keeps waking.
grid_drag(60, 0); // from page 1
ucontact(false, 360, 660, &c);
@@ -965,7 +988,7 @@ static void ribbon_wakes(void) {
CHECK(U.nav.stack[0].scroll == 2);
CHECK(U.pg_mode == POD_PG_ANIM && pod_ui_wake_ms(&U, now) <= 16); // the snap's 16 ms steps win over the bars
render();
- settle(+1, 560);
+ settle(+1, PAGE_PX);
CHECK(U.nav.stack[0].scroll == 2 && U.pg_mode == POD_PG_IDLE);
CHECK(pod_ui_wake_ms(&U, now) == 1000 - now % 1000); // page 1: no ribbon, once a second
CHECK(pod_ui_clock_tick(&U, now + 1000) && !pod_ui_clock_tick(&U, now + 1001));
@@ -1195,7 +1218,7 @@ static void sweep_schedule(void) {
CHECK(pod_ui_library_page(&U, r, 1, 0, 50, 910002, &fx) == -1 && !pod_ui_sweeping(&U));
}
-enum { K_TEXT = 1, K_RECT = 2 };
+enum { K_TEXT = 1, K_RECT = 2, K_RECT_AA = 4 };
static void notice_shows_three_seconds(void) {
setup();
int base;
@@ -1205,13 +1228,16 @@ static void notice_shows_three_seconds(void) {
CHECK(pod_ui_take_changed(&U));
render();
CHECK(S.count == base + 2); // the pill and its line
- // The pill sits just above the transport bar, centred: it never covers the agent's name or the art above y = 300.
+ // The pill sits just above the transport bar, centred: it never covers the agent's name or the art above y = 300. Classic's is
+ // the toast (Regular 24, anti-aliased corners, its own transport line at 616).
+ const bool classic = U.nav.skin != POD_SKIN_CONSOLE;
+ const int ty = classic ? POD_CLASSIC_TRANSPORT_Y : POD_TRANSPORT_Y;
for (int i = base; i < S.count; i++) {
const ht_run_t *r = &S.runs[i];
- int h = r->pro_kind == K_TEXT ? ht_pro_24.height : 40;
- CHECK(r->y >= 300 && r->y + h <= POD_TRANSPORT_Y);
+ int h = r->pro_kind == K_TEXT ? (classic ? ci_rg_24.height : ht_pro_24.height) : 40;
+ CHECK(r->y >= 300 && r->y + h <= ty);
}
- CHECK(S.runs[base].pro_kind == K_RECT && S.runs[base].y + 40 < POD_TRANSPORT_Y && abs(S.runs[base].x * 2 + S.runs[base].w - 720) <= 1);
+ CHECK(S.runs[base].pro_kind == (classic ? K_RECT_AA : K_RECT) && S.runs[base].y + 40 == ty - 8 && abs(S.runs[base].x * 2 + S.runs[base].w - 720) <= 1);
now += 2900; render();
CHECK(S.count == base + 2);
now += 200; render();
@@ -1322,7 +1348,7 @@ static void follow_from_tabs(void) {
render();
CHECK(top() == POD_V_RECAP && U.nav.depth == 3);
// Back goes to the tab's list, then Tabs.
- tap(POD_A_PANES, 0);
+ tap(POD_A_BACK, 0);
CHECK(top() == POD_V_TAB);
// The working agent opens on its Agent screen, in the other tab's list.
now += 10000;
@@ -1484,7 +1510,7 @@ static void library_all(void) {
pod_ui_library_page(&U, rows, 3, 0, 3, now, NULL);
}
-// The user got to the Tabs screen with a tap (the transport's Tabs button) and went to the desktop app: the focus that
+// The user got to the Tabs screen with a tap (two Backs) and went to the desktop app: the focus that
// follows a few seconds later is not "the user driving the device".
static void follow_first_focus_after_opening_tabs_by_tap(void) {
setup();
@@ -1492,7 +1518,7 @@ static void follow_first_focus_after_opening_tabs_by_tap(void) {
tap(POD_A_OPEN_TAB, 0);
tap(POD_A_OPEN_AGENT, 0);
CHECK(U.nav.depth == 3);
- tap(POD_A_TABS, 0);
+ tap(POD_A_BACK, 0); tap(POD_A_BACK, 0); // Agent, the tab's list, Tabs
CHECK(top() == POD_V_TABS && U.nav.depth == 1);
now += 1500; // the hand moved to the mouse
pod_ui_focus(&U, "a2", now);
@@ -1657,9 +1683,13 @@ static void offline_member_through_the_glue(void) {
pod_out_t o = tap(POD_A_OPEN_AGENT, 2);
expect(o, POD_FX_AGENT_OPEN, "far");
CHECK(top() == POD_V_AGENT && !strcmp(frame_at(2)->agent, "far"));
- // The play button: no recording, a notice instead.
- o = tap(POD_A_TALK, 0);
- CHECK(o.fx == POD_FX_NONE && top() == POD_V_AGENT && !pod_ui_talking(&U));
+ // The Talk button is dimmed with no hit (the screen says why): a tap there records nothing.
+ CHECK(hit(POD_A_TALK, 0) == NULL);
+ o = tap_at(360, 668);
+ CHECK(o.fx == POD_FX_NONE && top() == POD_V_AGENT && !pod_ui_talking(&U) && R.begins == 0);
+ // A stale TALK hit (drawn before the machine went away) still meets the glue's guard: no recording, a notice instead.
+ o = tap_stale_talk();
+ CHECK(o.fx == POD_FX_NONE && top() == POD_V_AGENT && !pod_ui_talking(&U) && R.begins == 0);
CHECK(U.notice_on && !strcmp(U.notice, "That machine is offline"));
// The daemon stops describing it: the screen falls back to the tab's list.
memset(mem.meta, 0, sizeof mem.meta);
@@ -1919,10 +1949,13 @@ static void pro_app_test_voice_paths(void) {
// A gate refusal never reaches the recorder
V.refuse = false;
pro_app_question("a1", "Which?");
- tap(POD_A_TALK, 0);
+ render();
+ CHECK(hit(POD_A_TALK, 0) == NULL); // Classic dims Talk while it asks
+ tap_stale_talk();
CHECK(R.begins == 0 && !pod_ui_talking(&U) && !strcmp(U.notice, "Answer its question first."));
// The tick: Talk with no recording behind it ends; a sent one (waiting) ends too
pro_app_question_close("a1");
+ render();
tap(POD_A_TALK, 0);
CHECK(pod_ui_talking(&U));
V.waiting = true; // the 600 s cap stopped and sent it
@@ -2110,11 +2143,11 @@ static void notify_banner_beep_and_expiry(void) {
CHECK(pod_ui_take_changed(&U));
render();
const pod_hit_t *b = banner();
- CHECK(b && !strcmp(b->id, "a3") && b->x == 16 && b->y == POD_STATUS_H + 12 && hit(POD_A_INBOX, 0));
- CHECK(U.frame.hits[U.frame.hit_count - 1].action == POD_A_BANNER && S.count <= HT_RUNS);
- // Visible 6 s: the clock wakes for the expiry (200 ms left at 11100, though the second ticks at 900), then it is gone.
+ CHECK(b && !strcmp(b->id, "a3") && b->x == 16 && b->y == POD_BANNER_Y && hit(POD_A_INBOX, 0));
+ CHECK(U.frame.hits[U.frame.hit_count - 1].action == POD_A_BANNER_CLOSE && U.frame.hits[U.frame.hit_count - 2].action == POD_A_BANNER && S.count <= HT_RUNS); // the x is on top
+ // Visible 6 s: the clock wakes for the expiry (200 ms left at 11100, though the second ticks at 900; Classic's banner timer caps the wake at 66 ms), then it is gone.
now = 11100; render();
- CHECK(banner() && pod_ui_wake_ms(&U, now) == 200);
+ CHECK(banner() && pod_ui_wake_ms(&U, now) == 66);
uint32_t stamp_before = U.clock_stamp;
CHECK(pod_ui_clock_tick(&U, now) || stamp_before != U.clock_stamp);
now = 11299; render();
@@ -2143,7 +2176,7 @@ static void notify_banner_beep_and_expiry(void) {
pro_app_summary("a3", "t", "restored", NULL, true, false);
CHECK(BEEPS == 0 && U.model.unread_count == 0);
render();
- CHECK(banner() == NULL && hit(POD_A_INBOX, 0) == NULL);
+ CHECK(banner() == NULL && U.frame.unread == 0); // the bell stays, its count pill does not
// A restore that claims to notify still does not (the cable never sends that; the app does not trust it).
pro_app_summary("a3", "t", "restored", NULL, true, true);
CHECK(BEEPS == 0 && U.model.unread_count == 0);
@@ -2264,7 +2297,7 @@ static void notify_replace_seen_and_read(void) {
expect(tap(POD_A_INBOX, 0), POD_FX_NONE, NULL);
CHECK(top() == POD_V_INBOX);
const pod_hit_t *r = hit(POD_A_OPEN_NOTIF, 0);
- CHECK(r && r->y == POD_STATUS_H && !strcmp(r->id, "a1"));
+ CHECK(r && r->y >= 234 && r->y < 628 && !strcmp(r->id, "a1")); // the first entry row, under any asking rows
pod_out_t o = tap(POD_A_OPEN_NOTIF, 0);
expect(o, POD_FX_AGENT_OPEN, "a1");
CHECK(READS == 1 && !strcmp(READ_AGENT, "a1") && !strcmp(READ_TOKEN, "tok_a1") && U.model.unread_count == 2 && top() == POD_V_AGENT);
diff --git a/devices/harness-pro/firmware/test/test_pro_voice_gate.py b/devices/harness-pro/firmware/test/test_pro_voice_gate.py
index 0c0d5b612..812629549 100644
--- a/devices/harness-pro/firmware/test/test_pro_voice_gate.py
+++ b/devices/harness-pro/firmware/test/test_pro_voice_gate.py
@@ -208,6 +208,13 @@ static void to_agent(int n) {
static void press(void) {
tap(POD_A_TALK, 0);
}
+// Classic dims Talk (no hit) while an agent asks. A stale TALK hit, drawn before that, still
+// reaches the app's voice gate, which is what these replays check.
+static void press_stale(void) {
+ CHECK(U.frame.hit_count < 32);
+ U.frame.hits[U.frame.hit_count++] = (pod_hit_t){32, 624, 656, 88, POD_A_TALK, 0, {0}};
+ tap(POD_A_TALK, 0);
+}
static_assert(A_VOICE == 9, "A_VOICE value 9 is Pod's plain voice");
static bool recording_for(const char *id) { return REC.active && REC.recording && !strcmp(REC.agent, id); }
@@ -246,7 +253,8 @@ static void question_agent_says_why(void) {
situation(); to_agent(1);
pro_app_question("a2", "Which one?");
render();
- press();
+ CHECK(!hit(POD_A_TALK, 0));
+ press_stale();
CHECK(!REC.active && REC.starts == 0 && top() == POD_V_AGENT);
CHECK(U.notice_on && !strcmp(U.notice, "Answer its question first."));
}
@@ -263,10 +271,11 @@ static void busy_cable_says_why(void) { // the cable is still carrying the las
mic_opens();
tap(POD_A_TALK, 0); // Done: the clip goes; its reply is awaited
CHECK(pro_voice_waiting() && top() == POD_V_TALK && U.nav.sending);
- press(); // the voice screen is sending: a tap on it starts nothing
+ tap_at_(360, 400); // the voice screen is sending: a tap on it starts nothing (Classic draws no TALK hit then)
CHECK(REC.starts == 1 && top() == POD_V_TALK && !U.notice_on);
pro_app_turn("a1", "started", "", 0); // the turn begins before the reply: back on the Agent screen
CHECK(top() == POD_V_AGENT);
+ render();
press(); // a new press while the last one is on the wire
CHECK(REC.starts == 1 && top() == POD_V_AGENT);
CHECK(U.notice_on && !strcmp(U.notice, "Still sending the last message"));
@@ -313,6 +322,7 @@ static void send_and_reply(void) {
CHECK(top() == POD_V_TALK);
pro_app_turn("a1", "started", "", 0); // the daemon's real turn: the Agent screen, working
CHECK(top() == POD_V_AGENT && !U.nav.sending);
+ render();
press(); // the next recording starts
CHECK(REC.starts == 2 && recording_for("a1"));
}
@@ -398,6 +408,7 @@ static void voice_link_drop_ends_talk(void) {
pro_app_link(true, "mac");
pro_app_agents(ROWS, 3);
machines("online", "online");
+ render();
press();
CHECK(recording_for("a1"));
}
diff --git a/docs/superpowers/plans/2026-10-13-harness-pro-classic-index.md b/docs/superpowers/plans/2026-10-13-harness-pro-classic-index.md
new file mode 100644
index 000000000..ba3cb7d87
--- /dev/null
+++ b/docs/superpowers/plans/2026-10-13-harness-pro-classic-index.md
@@ -0,0 +1,304 @@
+# Harness Pro · Classic Index restyle Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. In this repo the owner's model-routing applies: Sonnet codes each task, Opus reviews (risk: **critical**).
+
+**Goal:** Redraw every Classic screen of the Harness Pro to match `mockup/pro-index.html`. The Classic voice gesture becomes tap-anywhere-to-send, and the banner gains × and a timer line.
+
+**Architecture:**
+- The Classic views stay in `main/pod/classic/`. Each view is rewritten in place on a new shared chrome (`classic/ci.h` + `classic/ci_chrome.c`), which holds the design tokens, the bar, footer, transport, mark box and metadata band.
+- New Liberation Sans faces (`ci_rg_*`, `ci_bd_*`) are generated next to the existing ones.
+- Nav and glue changes are small and confined to Classic paths. Console code is not touched.
+
+**Tech Stack:** C11 (ESP-IDF 5.5.4, host tests with clang + sanitizers), Python 3 + Pillow (font generator, render scripts).
+
+**Spec:** `docs/superpowers/specs/2026-10-13-harness-pro-classic-index-design.md`. Every size, colour and copy string comes from there; this plan does not repeat them.
+
+## Global Constraints
+
+- Firmware root: `devices/harness-pro/firmware`. Run host tests with `bash test/run.sh` (they need `IDF_PATH=~/esp/esp-idf-5.5.4` for cJSON).
+- Console stays byte-identical: `bash test/golden.sh --skin console --check` passes in both fonts (default and `PRO_FONT=…/LiberationSans-Regular.ttf`).
+- Classic goldens are regenerated **once**, in Task 10, after all views are done.
+- `POD_CLASSIC_RUNS` = 184. Every Classic view stays within `POD_CLASSIC_RUNS - pod_spare_runs(f) - 4`; the 4 are the notice pill.
+- Classic font set ≤ 800 KB, enforced in `test_fonts.py`. Six faces that draw only fixed copy are cut to ASCII (see Task 1). The cs_* cap of 900 KB is unchanged.
+- No new cable or daemon fields. `pod_model_t` is unchanged.
+- Flash only with `FLASH_PORT=<port> bash scripts/flash.sh`. Never force-flash.
+- Do not commit or push (the owner asks for that separately). Never run `git stash`.
+- Copy is English, as in the spec. Code comments match the surrounding density.
+
+## Review Focus
+
+1. **Long and Vietnamese text.** A long agent name, tab name or back label, or Vietnamese activity text, must be cut with "…" inside its box and never overlap the time, the × or the bell. Tests: Task 6 (`test_list_long_name_ellipsis`) and Task 7 (`test_agent_vietnamese_activity_wraps`).
+2. **No data.** An unknown engine (no logo, no pet), `elapsed_s < 0`, `tokens_in < 0`, an empty activity or an empty recap must give the spec's fallback, never a stray "·" or "0". Tests: Task 7 (`test_band_unknowns`, `test_agent_unknown_engine_mark`).
+3. **Voice tap racing a state change.** A tap-to-send after the agent went offline mid-recording must discard, with the notice "That machine is offline", as today. Test: Task 4 (`test_classic_listen_tap_offline_discards`).
+4. **The banner over a moving screen.** The banner closes while scrolled or while Tabs is paging, and × is hit on the very first frame. Tests: Task 8 (`test_banner_close_first_frame`, `test_banner_over_tabs_drag`).
+5. **Link drop mid-screen.** A drop while on Agent or Voice shows Connection lost, a recording aborts, and the restored link returns to Tabs. Test: Task 9 (`test_link_down_shows_connection_lost`).
+
+---
+
+### Task 1: Liberation Sans Bold and the Classic face set
+
+**Files:**
+- Create: `fonts/LiberationSans-Bold.ttf` (liberation-fonts 2.1.5 release, SIL OFL 1.1; verify the SHA-256 against the release tarball).
+- Modify: `fonts/LICENSE-LiberationSans.txt` (keep it, and note that it covers Bold), `fonts/README.md`.
+- Modify: `scripts/gen_fonts.py`
+- Modify: `main/display/pro_font_type.h` (extern declarations)
+- Test: `test/test_fonts.py`
+
+**Interfaces:**
+- Produces these `ht_pro_font_t` faces, always from `fonts/` whatever `--font` says:
+ - `ci_rg_20 ci_rg_22 ci_rg_23 ci_rg_24 ci_rg_25 ci_rg_26 ci_rg_28 ci_rg_30 ci_rg_32 ci_rg_33 ci_rg_41 ci_rg_43 ci_rg_48` (Regular)
+ - `ci_bd_20 ci_bd_23 ci_bd_24 ci_bd_26 ci_bd_30 ci_bd_45` (Bold)
+- Coverage: Latin-1, the Vietnamese list and the extras `0x2026` (…) and `0xb7` (·), the same mechanism as `CONSOLE_EXTRA`.
+- Cut sets (`CLASSIC_CUT`), exactly the spec's strings plus digits:
+ - `ci_rg_43`: "No panes yet." and "Connection lost.";
+ - `ci_rg_48`: "Listening.", "unread." and digits;
+ - `ci_bd_45`: "Sending your words…", "Updating to", "Restarting…", digits and ".".
+
+- [ ] **Step 1: Write the failing tests** in `test/test_fonts.py`:
+ - `test_classic_faces_exist`: every name above is in the generated header, with `height == ceil(size*1.375)`.
+ - `test_classic_bold_is_bold`: the summed alpha of "Tabs" in `ci_bd_30` is more than 1.25 × that of a `ci_rg_30` render.
+ - `test_classic_coverage`: `ci_rg_32` draws "ạ", "ư", "…" and "·".
+ - `test_classic_cut`: `ci_bd_45` draws "S" and has empty masks for "q" and "z".
+ - `test_classic_budget`: the Classic faces' bytes total ≤ 800 * 1000; print the total.
+ - `test_classic_ascii_cut`: `ci_rg_25` has an empty mask for "ạ". The ASCII-cut faces are ci_rg_20, ci_rg_25, ci_rg_28, ci_bd_20, ci_bd_24 and ci_bd_26.
+- [ ] **Step 2: Run them.** `python3 test/test_fonts.py` → the new tests FAIL.
+- [ ] **Step 3: Add `CLASSIC = [(symbol, ttf, size), …]` and `CLASSIC_CUT`** to `gen_fonts.py`, and emit the faces with `bake(...)` exactly as `CONSOLE` does (`crop=True`).
+- [ ] **Step 4: Run** `python3 test/test_fonts.py` and `bash test/run.sh` → PASS. Record the measured Classic total in the task report.
+
+### Task 2: Renderer bits — `pod_grad_aa` and the pet wave ground
+
+**Files:**
+- Modify: `main/pod/pod_draw.h`, `main/pod/pod_draw.c`
+- Modify: `main/pod/pod_pet.h`, `main/pod/pod_pet.c:104-120`
+- Test: `test/test_pod_draw.c`, `test/test_pod_pet.c`
+
+**Interfaces:**
+- Produces:
+ - `void pod_grad_aa(ht_scene_t *s, int x, int y, int w, int h, int radius, uint16_t top, uint16_t bottom);` A vertical gradient whose corners use the same coverage as `ht_pro_rect_aa`. It is one run, like `pod_grad`.
+ - `void pod_pet_draw_on(ht_scene_t *s, int x, int y, int side, const char *engine, pod_scene_t scene, uint32_t clock_ms, uint32_t started_ms, uint32_t ground_rgb);` Waves fade toward `ground_rgb` (0xRRGGBB). `pod_pet_draw` becomes `pod_pet_draw_on(..., 0xffffff)`, so existing output is unchanged.
+
+- [ ] **Step 1: Write the failing tests.**
+ - `test_grad_aa_corner_matches_rect_aa`: with top == bottom, the pixels of `pod_grad_aa` equal those of `ht_pro_rect_aa` for r = 7 and 13.
+ - `test_grad_aa_rows`: the middle row of a 100 px gradient is within 1 LSB of the colour mid-point.
+ - `test_pet_wave_ground`: for Claude LISTEN at level 4, no wave pixel is brighter than `ground` when `ground = 0xf6f6f0`, and the output with `0xffffff` is byte-equal to `pod_pet_draw`.
+- [ ] **Step 2: Run them.** `bash test/run.sh` → FAIL (undefined symbols).
+- [ ] **Step 3: Implement.** The gradient goes through a new run kind or the existing gradient run with the AA corner flag. Reuse `corner_cover` from `pro_canvas.c` through a shared static inline in `pro_canvas.h`, without copying it.
+- [ ] **Step 4: Run** `bash test/run.sh` plus `bash test/golden.sh --check` and `bash test/golden.sh --skin console --check` → PASS and unchanged. The Classic goldens may not change yet.
+
+### Task 3: Classic chrome — tokens, bar, footer, transport, mark, band
+
+**Files:**
+- Create: `main/pod/classic/ci.h`, `main/pod/classic/ci_chrome.c`
+- Modify: `main/CMakeLists.txt` and `test/run.sh` (add the source)
+- Modify: `main/display/terminal.h:17` (`POD_CLASSIC_RUNS 184`)
+- Test: create `test/test_ci_chrome.c` and register it in `run.sh`
+
+**Interfaces:**
+- Produces (in `ci.h`):
+ - The spec's colours as `CI_*` RGB565 constants: `CI_GROUND CI_INK CI_MUTED CI_BLUE CI_RULE CI_GREEN CI_EQ CI_AMBER CI_ASK_FILL CI_ASK_BAR CI_ROW_ASK CI_FAIL`.
+ - Geometry enums: `CI_BAR_H=88`, `CI_FOOT_Y=628`, `CI_TRANS_Y=616`, `CI_TALK_X=32`, `CI_TALK_Y=624`, `CI_TALK_W=656`, `CI_TALK_H=88`, `CI_MARGIN=32`, `CI_ROW_H=104`, `CI_MARK=56`, `CI_BACK_W=173`, `CI_BELL_W=88`.
+ - `void ci_bar(pod_out_frame_t *f, const char *title, const char *back /*NULL: brand*/, uint8_t unread, bool bell);` It draws the bar and adds the `POD_A_BACK` (0,0,173,88) and `POD_A_INBOX` (632,0,88,88) hits.
+ - `void ci_foot(ht_scene_t *s, const char *left, bool led, const char *right_caps);`
+ - `void ci_talk(pod_out_frame_t *f, bool enabled);` The transport plus the Talk button. The `POD_A_TALK` hit is the button rect, and only when enabled.
+ - `void ci_mark(ht_scene_t *s, int x, int y, const char *engine);` The 56 px box with the 36 px logo, or `pod_mark_default`.
+ - `void ci_band(ht_scene_t *s, int y, pod_state_t st, int32_t elapsed_s, const char *engine, int32_t tokens_in, int32_t tokens_out, uint32_t now_ms);` Tokens when `tokens_in >= 0`, otherwise Engine.
+ - `int ci_state_word(pod_state_t st, const char **word, uint16_t *ink);` For the list meta and the band.
+ - `void ci_fmt_tokens(char *out, size_t n, int32_t v);` Gives "10.1k", "2.3k", "980", "1.2M".
+ - `void ci_fmt_elapsed(char *out, size_t n, int32_t s);` Gives "2:14", "1:02:03", or "—" when s < 0.
+
+- [ ] **Step 1: Write the failing tests** in `test_ci_chrome.c`:
+ - `test_bar_hits`: the BACK hit is {0,0,173,88} and the INBOX hit is {632,0,88,88}. There is no INBOX hit when `bell=false`, and no pill at unread 0.
+ - `test_bar_back_ellipsis`: the back label "averyveryverylongtabname" is drawn at ≤ 115 px.
+ - `test_talk_disabled_no_hit`: `ci_talk(f,false)` adds no hit.
+ - `test_band_tokens_or_engine`: tokens_in=10100, tokens_out=2300 gives the text "10.1k in · 2.3k out". tokens_in=-1 gives "Engine" and the engine name.
+ - `test_band_unknowns`: elapsed -1 gives "—", and no run contains "·" next to an empty field.
+ - `test_fmt_tokens`: the cases 0, 999, 1000 ("1.0k"), 10100, 1250000 ("1.3M").
+- [ ] **Step 2: Run** `bash test/run.sh` → FAIL.
+- [ ] **Step 3: Implement** `ci_chrome.c`.
+ - Text goes through `ht_pro_text` with the `ci_*` faces.
+ - Icons (chevron, bell, mic, tick, eq, dot) reuse `pod_chevron`, the existing bell code from `pod_chrome.c` (move it to `ci_chrome.c`), `pod_tick` and `pod_eq`.
+ - The bar gradient uses `pod_grad` (square). The Talk button uses `pod_grad_aa`, r = 7.
+- [ ] **Step 4: Run** `bash test/run.sh` → PASS.
+
+### Task 4: Nav and glue — origin label, banner close, tap-anywhere-to-send (Classic)
+
+**Files:**
+- Modify: `main/pod/pod_nav.h`, `main/pod/pod_nav.c`
+- Modify: `main/app/pod_glue.c`, `main/app/pod_glue.h`
+- Test: `test/test_pod_nav.c`, `test/test_cs_glue.c` (it already drives the glue for both skins; add Classic cases here)
+
+**Interfaces:**
+- Produces:
+ - `const char *pod_nav_origin(const pod_nav_t *, const pod_model_t *);` Returns the label the bar's Back shows for the top frame: "Recent", the tab's name, "Inbox", or "Back" when unknown.
+ - `POD_A_BANNER_CLOSE`, a hit-only action appended to `pod_action_t` (after `POD_A_SCROLL`). The glue ends the banner and leaves the unread entry.
+ - `uint32_t pod_ui_banner_shown_ms(const pod_ui_t *)`, which the banner draw reads.
+ - Classic listening: the Talk view adds one full-screen `POD_A_TALK` hit (Task 9 draws it). The nav already maps TALK while listening to `VOICE_END`; check that nothing in the nav is Console-gated for this.
+- Consumes: none.
+
+- [ ] **Step 1: Write the failing tests.**
+ - `test_origin_label`: Tabs → Backend → agent gives "Backend". Tabs → Recent → agent gives "Recent". Inbox → open gives "Inbox".
+ - `test_classic_listen_tap_anywhere_sends`: Classic, Agent, TALK → VOICE_BEGIN; a DOWN/UP at (360,400) → VOICE_END.
+ - `test_classic_side_button_discards`: during listening, the side button gives VOICE_ABORT and nothing is sent.
+ - `test_classic_listen_tap_offline_discards`: the agent goes OFFLINE mid-recording, then a tap gives a discard with the notice "That machine is offline".
+ - `test_banner_close_keeps_unread`: a tap on the × hit gives banner off, `unread_count` unchanged, and no AGENT_OPEN.
+ - `test_banner_timer_wakes_66ms`: with a Classic banner up, the glue's next wake is ≤ 66 ms, and without it the wake is as before.
+ - The existing Console glue tests are unchanged and PASS.
+- [ ] **Step 2: Run** `bash test/run.sh` → FAIL.
+- [ ] **Step 3: Implement.**
+ - The origin comes from the frame below the top frame: its view and tab id.
+ - `POD_A_BANNER_CLOSE` is handled where `POD_A_BANNER` is (`pod_glue.c:448`). Give it priority: the × sits inside the card, and the hit list is searched last-added-first.
+ - Wake: extend the Console toast rule at `pod_glue.c:735` to Classic while the banner is up.
+- [ ] **Step 4: Run** `bash test/run.sh` → PASS.
+
+### Task 5: Tabs view
+
+**Files:**
+- Modify (rewrite): `main/pod/classic/pod_view_tabs.c`
+- Modify: `main/pod/classic/pod_chrome.c` (drop the cover helpers it no longer needs and keep only what other files still call; delete dead code)
+- Test: `test/test_pod_views_tabs.c`
+
+**Interfaces:**
+- Consumes: `ci_bar`, `ci_foot`, `CI_*` (Task 3), `pod_grad_aa` (Task 2), `pod_logo_draw` (44 and 28).
+- Produces: the same public entry and hits as today (`POD_A_OPEN_TAB` with the tab id). `pod_tabs_pitch()` and the ribbon query keep their signatures (the glue uses them).
+
+- [ ] **Step 1: Write the failing tests:**
+ - `test_tabs_grid_geometry`: the six covers' art boxes (164 × 164) have their left edges at x {52, 278, 505} and their tops at y {113, 368}, ±1, as measured on the mockup at 720. Each card hit spans the column (213 wide) and the row.
+ - `test_tabs_selected_ring`: the selected cover has a ring of 5 px with a 5 px gap.
+ - `test_tabs_ribbon_only_when_working`.
+ - `test_tabs_footer_pages`: with 9 tabs the footer right reads "PAGE 1 / 2"; with 5 it reads "5 TABS · 7 AGENTS".
+ - `test_tabs_empty_cover_grid_icon`.
+ - `test_tabs_budget`: the worst case (6 covers of 2+ panes, all working) stays within budget.
+- [ ] **Step 2: Run** → FAIL.
+- [ ] **Step 3: Implement** the spec's Tabs section.
+- [ ] **Step 4: Run** `bash test/run.sh` → PASS. Render `python3 test/pod_render.py tabs` and eyeball it against `mockup/pro-index.html#tabs`.
+
+### Task 6: Recent and Tab lists
+
+**Files:**
+- Modify (rewrite): `main/pod/classic/pod_view_tab.c`
+- Modify: `main/pod/pod_view.c:54-78` (Classic scroll pitch becomes `CI_ROW_H`)
+- Test: `test/test_pod_views_tabs.c` (the list cases live there today; keep them there)
+
+**Interfaces:**
+- Consumes: `ci_bar` (back = `pod_nav_origin`; Recent shows "Back"), `ci_foot`, `ci_mark`, `ci_state_word`, `ci_fmt_elapsed`.
+- Produces: `POD_A_OPEN_AGENT` hits with the agent id, as today.
+
+- [ ] **Step 1: Write the failing tests:**
+ - `test_list_no_heading`: the first row's top is at y 88.
+ - `test_list_five_rows`: 7 agents give 5 row hits of height 104.
+ - `test_list_meta_words`: Working, Finished, Needs you, Ready and Offline, each in its colour.
+ - `test_list_long_name_ellipsis`: a 60-character name ends in "…" before the meta column.
+ - `test_list_empty_tab`: "No panes yet." is present, there are no row hits, and the footer reads "No panes".
+- [ ] **Step 2: Run** → FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run** → PASS.
+
+### Task 7: Agent and Recap
+
+**Files:**
+- Modify (rewrite): `main/pod/classic/pod_view_agent.c`, `main/pod/classic/pod_view_recap.c`
+- Modify: `main/pod/pod_view_shared.h` only if a shared helper changes signature (prefer not to).
+- Test: `test/test_pod_views_agent.c`
+
+**Interfaces:**
+- Consumes: `ci_bar` (title "Task" or "Recap", back = `pod_nav_origin`), `ci_band`, `ci_talk`, `pod_pet_draw_on(…, 104, …, 0xf6f6f0)`, `pod_wrap`, `pod_recap_cut`.
+- Produces: the same hits as today minus the transport ones, plus `POD_A_TALK` (enabled for idle, working and done). Swipe PREV/NEXT stays glue-driven.
+
+- [ ] **Step 1: Write the failing tests:**
+ - `test_agent_working_body`: "RIGHT NOW", at most 3 activity lines, at most 2 steps, and "Updated just now" when `event_ms` is within 60 s of now.
+ - `test_agent_updated_minutes`: an event 180 s old gives "Updated 3m ago".
+ - `test_agent_asking`: the ask box fill is `CI_ASK_FILL`, "Answer it in the Harness app." is present, and there is no TALK hit.
+ - `test_agent_offline`: the copy uses the machine name, the pet is faded, and there is no TALK hit.
+ - `test_agent_idle_copy`.
+ - `test_agent_vietnamese_activity_wraps`: 3 lines of Vietnamese activity are cut with "…" and no line is wider than 656 px.
+ - `test_agent_unknown_engine_mark`: an engine "zzz" gives the default mark box and no pet sprite run.
+ - `test_recap_tokens_or_engine`.
+ - `test_recap_scrolls_by_line`: `POD_A_SCROLL` moves the body by 42 px.
+ - `test_agent_budget`: every state stays within budget, with the banner and bell spares.
+- [ ] **Step 2: Run** → FAIL.
+- [ ] **Step 3: Implement** the spec's Agent and Recap sections.
+- [ ] **Step 4: Run** → PASS.
+
+### Task 8: Inbox and the banner
+
+**Files:**
+- Modify (rewrite): `main/pod/classic/pod_view_inbox.c`
+- Modify: `main/pod/pod_view.h:148-152`. The new signature is `int pod_banner(pod_out_frame_t *, const pod_model_t *, const pod_unread_t *u, uint32_t shown_ms, uint32_t now_ms);` with geometry `POD_BANNER_X=16`, `POD_BANNER_Y=98`, `POD_BANNER_W=688`, and `POD_BANNER_RUNS` raised to fit the measured count.
+- Modify: `main/app/pod_glue.c:49` (pass `pod_ui_banner_shown_ms`)
+- Test: `test/test_pod_views_inbox.c`, `test/test_cs_glue.c`
+
+**Interfaces:**
+- Consumes: `ci_bar`, `ci_foot`, `ci_mark`, `POD_A_BANNER_CLOSE` and `pod_ui_banner_shown_ms` (Task 4), `POD_A_FOLLOW`.
+- Produces: banner hits, `POD_A_BANNER` (the card) and then `POD_A_BANNER_CLOSE` (65 × 65 at the card's top right).
+
+- [ ] **Step 1: Write the failing tests:**
+ - `test_inbox_heading_and_footer`: "2 unread." and the footer "2 unread".
+ - `test_inbox_asking_first`: an asking agent's row comes first, with `POD_A_FOLLOW` and the row fill `CI_ROW_ASK`.
+ - `test_inbox_failed_entry`: "Failed" in `CI_FAIL`.
+ - `test_banner_timer_width`: at shown + 0, + 3000 and + 5900 ms, the line width is 688, 344 and about 11.
+ - `test_banner_done_and_failed_lines`: "Done · 0m 48s", "Failed · 0m 48s", and "Done" when `elapsed_s < 0`.
+ - `test_banner_close_first_frame`: the first frame after the banner appears already carries the CLOSE hit.
+ - `test_banner_over_tabs_drag`: while Tabs is dragged, a tap on × closes the banner and the page does not move.
+- [ ] **Step 2: Run** → FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run** → PASS.
+
+### Task 9: Voice, Connection lost and Update
+
+**Files:**
+- Modify (rewrite): `main/pod/classic/pod_view_talk.c`, `main/pod/classic/pod_view_ota.c`
+- Modify: `main/pod/pod_view.c` (the `!linked` branch draws `ci_connection_lost` for Classic; Console keeps its own)
+- Create the function `void ci_connection_lost(pod_out_frame_t *f, uint8_t unread);` in `ci_chrome.c`.
+- Test: `test/test_pod_views_agent.c` (talk cases), and a new `test_pod_views_misc` section inside `test_pod_views_inbox.c` (to avoid another runner entry)
+
+**Interfaces:**
+- Consumes: `pod_pet_draw_on` (281 LISTEN, 209 SEND, ground 0xf6f6f0), `f->mic_level` for the 13 bars, `pod_grad_aa` for the progress fill.
+- Produces: while listening in Classic, one full-screen `POD_A_TALK` hit {0,88,720,632}; the bar's Back still works. No hits on Update.
+
+- [ ] **Step 1: Write the failing tests:**
+ - `test_talk_listen_fullscreen_hit`.
+ - `test_talk_no_bell_no_buttons`.
+ - `test_talk_sending_copy`.
+ - `test_ota_even_gaps`: the five items are 22 px apart, ±1 px, measured from the run boxes.
+ - `test_ota_restarting`.
+ - `test_link_down_shows_connection_lost`: the copy is present, the footer reads "Disconnected", and a recording in progress was aborted by the nav sync (existing behaviour; assert it).
+- [ ] **Step 2: Run** → FAIL.
+- [ ] **Step 3: Implement.**
+- [ ] **Step 4: Run** → PASS.
+
+### Task 10: Goldens, dead code, budget sweep
+
+**Files:**
+- Modify: `test/golden.sh` (the Classic screen list gains: inbox, inbox:ask, banner:done@0/3000/5900, banner:failed, offline-link, talk:listen, talk:send, tab:empty, tabs:9)
+- Modify: `test/pod_render.c` (support those screens; the background is the scene's, not forced white)
+- Regenerate: `test/golden.txt`, `test/golden-liberation.txt`
+- Delete: the Classic helpers in `classic/pod_chrome.c` that no file calls any more (`grep` proves it). Keep the file only if something remains.
+
+- [ ] **Step 1:** Run `bash test/golden.sh` and `PRO_FONT=$PWD/fonts/LiberationSans-Regular.ttf bash test/golden.sh` (they rewrite the baselines), then `--check` both → PASS.
+- [ ] **Step 2:** `bash test/golden.sh --skin console --check`, in both fonts → unchanged.
+- [ ] **Step 3:** Run the clang-18 / Liberation CI combination in Docker as before (`firmware-checks`: `-Wformat-truncation` etc.) → clean.
+- [ ] **Step 4:** `idf.py build` → the app image fits, and the size goes in the report (compare with `docs/size-baseline.txt`).
+
+### Task 11: Mockup comparison (dev check)
+
+**Files:**
+- Modify: `devices/harness-pro/mockup/pro-index/build.py` (main checkout, gitignored). With `--font liberation` it embeds `fonts/LiberationSans-{Regular,Bold}.ttf` as `@font-face` and writes `pro-index-liberation.html`.
+- Create: `test/classic_vs_mockup.py`
+ - It renders each screen from firmware (`pod_render.py`) and from the mockup (headless Chrome, `?only=<id>`, 720 × 720, with animations off).
+ - It finds the ink boxes in matching regions (bar, band, rows, transport) and prints the offsets.
+ - It exits non-zero when any offset is above 2 px.
+ - Matching demo data: `pod_render.c`'s demo agents get the mockup's names (firmware-pro, backend, harness-cli, desktop, docs, landing, api-client).
+
+- [ ] **Step 1:** Implement and run it on all 16 screens. Fix the views until it passes, or list the remaining deltas with a reason for each (pet and logo pixels are excluded).
+
+### Task 12: Perf and the device
+
+- [ ] **Step 1:** Add the Classic screens to `test/test_cs_perf.sh` (opt-in, `CS_PERF=1`) with a new baseline. Run it and record the host µs in `docs/size-baseline.txt`.
+- [ ] **Step 2:** Build with `-DPROJECT_VER=0.0.99` and flash with `FLASH_PORT=<port> bash scripts/flash.sh` (the MAC must be in WANT_MACS). Then set `uiSkin` to classic in the app.
+- [ ] **Step 3:** Walk every screen. Check:
+ - tap-to-send;
+ - the side button discarding;
+ - banner × and the timer;
+ - unplugging the cable (Connection lost);
+ - a real Claude turn, through Agent working, Recap with tokens, and Inbox.
+- [ ] **Step 4:** Read the heartbeat `frame_max_us` on Tabs, Recent, Agent working, Recap, Voice and the banner. Each must be ≤ 24 000. Report the numbers per screen, and file any miss in the report with the screen named.
diff --git a/docs/superpowers/specs/2026-10-13-harness-pro-classic-index-design.md b/docs/superpowers/specs/2026-10-13-harness-pro-classic-index-design.md
new file mode 100644
index 000000000..4338c6e58
--- /dev/null
+++ b/docs/superpowers/specs/2026-10-13-harness-pro-classic-index-design.md
@@ -0,0 +1,251 @@
+# Harness Pro · Classic restyled after the Index v5 handoff
+
+Status: design · 2026-10-13 · owner 0xdiego25
+Mockup of record: `devices/harness-pro/mockup/pro-index.html`, built by `mockup/pro-index/build.py` (gitignored; main checkout).
+Source design: the design team's "Harness Pro / Index v5" developer handoff (`harness-pro-index.html`, SHA-256 `565b4ab9…bad`). The mockup reuses its CSS verbatim, so each size below is its `cqw` value × 7.2, rounded to a whole pixel.
+
+## Goal
+
+**Replace** the Classic skin's look and some of its behaviour with the mockup.
+- Console is not touched. The setting stays `uiSkin: classic | console`, and Classic stays the default.
+- Nothing new comes from the daemon. Every field the new screens show is already in `pod_model_t`.
+
+## Decisions
+
+| Topic | Decision |
+|---|---|
+| Skin | The new design **replaces** Classic in place. No third skin. |
+| Font | **Liberation Sans**: Regular for weights 400 and 500 (Liberation has no Medium), and **Bold** for 600 and 700. Bold is a new file, `fonts/LiberationSans-Bold.ttf` (SIL OFL 1.1, liberation-fonts 2.1.5), with its licence beside it. |
+| Pet | The engine's own pet, drawn with `pod_pet_draw`, which scales to any side. Scenes: working → WORK, asking → ASK, done / idle / offline → REST (there is no relax scene in firmware), listening → LISTEN, sending → SEND. An engine without a pet shows its logo on a pale box, as today. |
+| Logos | The existing pre-rendered sizes (28 / 36 / 44 / 72), nearest to the design's box. |
+| Navigation | The 5-button transport goes away. Back is the top-left label. The side button still pops to Tabs. Swiping horizontally on Agent and Recap still steps to the neighbour agent. Drag paging on Tabs stays as it is. |
+
+## Global look (720 × 720)
+
+**Ground and colours**
+- Ground `#f6f6f0`, set as the scene background.
+- Ink `#20292c`, muted `#657175`, blue `#155ccc`, rule `#ccd0ce`.
+- Green (working / done) `#3d6653`, eq `#2d6a51`, amber (needs you) `#8b570f`, ask box `#f0e9d8` with a 4 px `#b78230` left bar.
+
+**Top bar, y 0–88**
+- A vertical gradient `#f8f9f7`→`#e9eae5`, a 1 px `#bcc4c1` rule at y 88, and a 1 px white line at y 0.
+- Grid: left 173 px | title centred | right 88 px.
+ - **Left:** at the root, the brand "Harness" in Bold 26. Elsewhere, a chevron plus the back label in Regular 26, `#314449`, ellipsis at 115 px. The `POD_A_BACK` hit is 173 × 88.
+ - **Title:** Bold 30, centred on the screen, ellipsis.
+ - **Right:** the bell (the existing drawn bell, 30 px) plus the count pill (Bold 24, white on blue, radius 29, min width 34). The `POD_A_INBOX` hit is 88 × 88 in the top-right corner. There is no bell on Update or Voice, and no pill at 0.
+
+**Footer, y 628–720, on list screens**
+- The same gradient, a 1 px `#c4cbc7` rule on top, and 32 px side padding.
+- Left: an optional 8 px green led plus Regular 23 muted.
+- Right: Regular 20 caps, muted, tracking about 1 px.
+
+**Transport, y 616–720, on Agent and Recap only**
+- The same gradient, with a rule on top.
+- One **Talk** button, x 32–688, y 624, 88 high, radius 7.
+ - Fill: a gradient `#286fda`→`#1759bd` with anti-aliased corners, a 1 px `#1145a0` border and a 1 px top highlight.
+ - Content: the mic icon plus "Talk" in Regular 28, white, centred.
+- **Disabled** (asking, offline, link down): 45 % opacity, no hit.
+
+**Side margin:** 32 px everywhere.
+
+## Screens
+
+### Tabs (root)
+- **Grid:** a 3 × 2 grid of 164 px covers, starting at padding 23 / 27 with gaps of 15 (row) and 13 (column).
+- **Cover:** radius 13, with a vertical gradient from the design's palette (Recent `#5d8dda`→`#2859aa`, then purple, rose, green, ochre, slate in tab order).
+- **Inside a cover** are the tab's pane minis on `#f8faf7`, radius 6:
+ - 1 pane fills the cover; 2 or more are split into 2 columns;
+ - each holds the **44 px logo**;
+ - a working or asking pane gets a 13 px dot top-right, green `#35734f` or amber `#bf861e`;
+ - offline panes are at 50 %.
+- **Recent's cover** shows up to 8 minis in 4 × 2, each with a 28 px logo.
+- **An empty tab** gets a grey gradient `#dce2d7`→`#bfcbbd` and the grid icon.
+- **Working ribbon:** 31 px, `#172f39` at 79 %, on the cover's bottom edge. It holds the eq, "Working" and the count, in Regular 21 white.
+- **Under the cover:**
+ - the name in Regular 30, ink, or blue when selected;
+ - the count in Regular 23 muted ("7 agents", "2 panes", "Empty").
+- **Selected cover:** a 5 px blue ring with a 5 px gap.
+- **Footer:** "N working" | "N TABS · M AGENTS", or "PAGE p / n" when there is more than one page.
+
+### Recent and Tab (lists)
+- **No heading block.** The first row sits directly under the bar.
+- **Row:** 104 px pitch, with a 1 px rule between rows.
+ - **Left:** a 56 px mark box (`#e6e9df`, a 1 px `#c8cec7` border, radius 8) holding the **36 px logo**.
+ - **Middle:** the name in Regular 33, ink, then "Engine · Machine" in Regular 23 muted.
+ - **Right:** right-aligned, the time in Regular 22 muted and the state word in Bold 20:
+ - Working (green `#377052`);
+ - Finished (muted);
+ - Needs you (`#956616`);
+ - Ready (muted);
+ - Offline (muted).
+- Five rows are visible, and a drag scrolls (`POD_A_SCROLL`).
+- **Footer:**
+ - Recent: "Scroll to browse" | "N AGENTS".
+ - Tab: "Scroll to browse" | "N PANES".
+- **Empty tab:** "No panes yet." in Regular 43, centred, then "This tab is managed in Harness." in Regular 24 muted. The footer reads "No panes".
+
+### Agent (working, needs you, ready, offline)
+- **Head, from y 104:**
+ - the pet at 104 px, at x 32;
+ - from x 152: the name in Regular 41 (one line, ellipsis), then "Tab · Machine" in Regular 23 muted.
+- **Metadata band, y about 224–312:**
+ - a 1 px rule above and below, and a column split at 46 % with a 1 px `#d7ddd3` rule;
+ - **left:** the state icon (eq, ✓ or dot) plus the state word in Regular 25, coloured; under it the elapsed time in Regular 22 `#6b746c` ("—" when unknown);
+ - **right:** "Engine" in Regular 20 muted, then the 28 px logo plus the engine name in Regular 26 ink.
+- **Body, from y about 328, with 32 px margins:**
+
+ | State | Body |
+ |---|---|
+ | Working | "RIGHT NOW" (Bold 20 caps, tracking 1 px, muted). The activity in Regular 32, line pitch 42, at most 3 lines, then "…". Up to 2 newest steps in Regular 22 muted, pitch 27. "Updated just now" / "Updated 3m ago" in Regular 20 `#7b827c`, from `event_ms`. |
+ | Needs you | The ask box: Regular 32, up to 3 lines. Then "Answer it in the Harness app." in Regular 23 muted. |
+ | Ready | "Ready when you are." in Regular 32, then "Send a new voice instruction to this agent." in Regular 23 muted. |
+ | Offline | "That machine is offline.", then "Reconnect {machine} in Harness to continue.". The pet is at 50 %. |
+
+- **Header:** the title is "Task". The back label is the frame's origin: the tab name, "Recent" or "Inbox".
+- **Transport:** Talk.
+
+### Recap (done)
+- The same head and band as Agent. The pet is REST.
+- **Right half of the band:** "Tokens" plus "{in} in · {out} out" in Regular 26 (k / M with one decimal), when `tokens_in >= 0`. Otherwise it shows Engine.
+- **Body:** "SAVED RESULT", then the recap in Regular 32, pitch 42. It scrolls by line and keeps the existing scroll and "…" rules.
+- The title is "Recap".
+
+### Inbox
+- **Heading:** "N unread." in Regular 48, at y 117, then "Open a result to mark that result read." in Regular 24 muted.
+- **Rows:**
+ - **Asking agents first:** an amber row background `#f0eadc`, an amber dot, the name, "Needs your answer · stays until resolved", and a chevron. The hit is `POD_A_FOLLOW`.
+ - **Then the unread entries:** a 9 px blue dot, the name, up to 2 lines of the recap in Regular 23, and "New" at the right. A FAILED entry gets "Failed" in `#974f43`. The hit is `POD_A_OPEN_NOTIF`.
+- **Footer:** "N unread".
+
+### Voice: listening
+- The title is "Voice"; there is no bell.
+- "To **{name}**" in Regular 23 (the name in Bold 23) at y 112.
+- The LISTEN pet at 281 px, centred.
+- "Listening." in Regular 48.
+- 13 wave bars, 5 px wide, `#2c6e64`, from the mic level.
+- "Tap to send." in Regular 24 muted.
+- **No transport, no buttons.**
+
+### Voice: sending
+- The SEND pet at 209 px.
+- "Sending your words…" in Bold 45.
+- The agent name in Regular 30.
+- "One request is pending. Going back will not send it again." in Regular 26 muted, centred, at most 81 % wide.
+
+### Result banner (over any screen but Voice and Update)
+- **Card:**
+ - x 16, y 98, w 688, radius 10;
+ - a 1 px `#a6b9a9` border and a `#f7faf2` fill;
+ - padding 19 / 22 / 23.
+- **Row:** the 56 px mark box with the 36 px logo, then:
+ - the name in Regular 33, with the **×** (a 65 × 65 hit, the glyph in muted) at the right;
+ - up to 2 lines of the recap in Regular 24 `#3d4a4e`, then "…";
+ - "✓ Done · 0m 48s" in Regular 23 green, or "Failed · 0m 48s" in `#974f43` for a FAILED entry. With no elapsed time it is just "Done".
+- **Timer line:** 6 px, blue, along the card's bottom edge. Its width is `w × (1 − (now − shown) / POD_BANNER_MS)`. When it reaches 0 the banner closes, as today.
+- **Gestures:**
+ - a tap on the card opens it (unchanged);
+ - **×** closes it at once and keeps the entry unread;
+ - a swipe up closes it (unchanged).
+
+### Connection lost (link down, in place of the stack)
+- The bar: brand, title "Connection", bell.
+- Centred: the grid icon (50 px stroke), "Connection lost." in Regular 43, then "Live status is unavailable." / "Your saved results and unread marks remain." in Regular 25 muted.
+- The footer: led plus "Disconnected".
+
+### Update (OTA)
+- The bar: brand and "Update", with no bell.
+- Centred, with an equal 22 px gap between items:
+ 1. an 86 px circle (`#e5efdf`, a 1 px `#a3b6a8` border) with a download arrow in `#386848`;
+ 2. "HARNESS PRO" in Regular 20, tracking 1 px, `#657a6c`;
+ 3. "Updating to {to}" in Bold 45, or "Restarting…";
+ 4. a 446 × 10 bar (`#dfe3dc`, a 1 px border, radius 7) with a blue gradient fill to pct;
+ 5. "Keep the cable connected. The device restarts when it is done." in Regular 26 muted.
+- **Footer:** led plus "Downloading" | "{pct}%" (or "Restarting").
+
+## Behaviour changes
+
+1. **Talk (Classic):**
+ - A tap on Talk gives `VOICE_BEGIN`, as before.
+ - While listening, the Talk view registers one full-screen `POD_A_TALK` hit, which already maps to `VOICE_END`. This is the same mechanism Console uses.
+ - The side button discards, unchanged. The 600 s cap sends, unchanged.
+ - The old "press the big button again" path goes away with the transport.
+2. **Banner close:** a new hit-only action, `POD_A_BANNER_CLOSE`, which the glue handles: the banner ends, and the unread entry stays.
+3. **Banner timer:**
+ - `pod_banner` gets `shown_ms` and draws the line from `now_ms`.
+ - The glue wakes every 66 ms while a Classic banner is up, the same rule Console's toast uses.
+ - The damage is the line only.
+4. **Back label:** the nav exposes the frame's origin ("Recent", the tab name, or "Inbox") for the bar.
+5. **Connection lost:** while `!model.linked`, Classic draws this screen in place of the stack.
+
+## Renderer work
+
+- **Fonts.** `gen_fonts.py` gains a Classic face set from Liberation Sans:
+ - **Regular** 20, 22, 23, 24, 25, 26, 28, 30, 32, 33, 41, 43, 48;
+ - **Bold** 20, 23, 24, 26, 30, 45.
+ - Glyphs are Latin-1 plus Vietnamese plus "…" (U+2026) and "·". The "×" is U+00D7. The ✓, chevrons, bell, mic, eq, grid and download icons are drawn with the existing primitives (`pod_tick`, `pod_chevron`, rects, `pod_tri`), not as glyphs. The static-only big faces are cut to the characters they draw:
+ - Regular 43: "No panes yet.", "Connection lost.";
+ - Regular 48: "Listening.", "unread." and digits;
+ - Bold 45: "Sending your words…", "Updating to", "Restarting…", digits and ".".
+ - The `ht_pro_*` faces stay, because the notice pill uses them.
+ - Faces that draw only fixed English copy are cut to printable ASCII plus "…" and "·": Regular 20 (labels, footer caps, "Updated…"), Regular 25 (the band's state word, the Connection lost copy), Regular 28 (Talk), Bold 20 (eyebrows, list state words), Bold 24 (the count pill) and Bold 26 (the brand). Every face that draws names, activity or recaps keeps Vietnamese.
+ - `test_fonts.py` caps the **Classic set at 800 KB**, alongside the existing 900 KB cap on cs_*. The first measurement was 934 KB uncut.
+- **`pod_grad` gets anti-aliased corners** (the corner_cover math of `ht_pro_rect_aa`), opt-in through a new `pod_grad_aa`, so existing callers render byte-identically.
+- **Pet waves fade to the ground.** `pod_pet.c:114` fades toward a passed ground colour (white for existing callers) instead of fixed white.
+- **Budget:** `POD_CLASSIC_RUNS` goes from 128 to 184. The views still leave `pod_spare_runs()` free.
+
+## Not changing
+
+- Console: all of it, including its 200 goldens.
+- The model, the cable and the daemon.
+- The OTA logic and the voice pipeline.
+- The side button's long press to sleep.
+
+## Tests
+
+**Goldens**
+- Classic `golden.txt` and `golden-liberation.txt` are regenerated. The screen list grows to cover:
+ - Inbox (with and without asking rows);
+ - the banner (done, failed, at 0 / 3000 / 5900 ms);
+ - Connection lost;
+ - Voice listening and sending;
+ - an empty tab;
+ - Tabs with more than one page.
+- Console's 200 lines stay unchanged.
+
+**`test_pod_views_*`**
+- No heading on Recent or Tab.
+- Five 104 px rows.
+- The bell hit is the top-right 88 × 88; the Back hit is 173 × 88.
+- Talk is disabled (no hit) when asking or offline.
+- Tokens is shown only when `tokens_in >= 0`, otherwise Engine.
+- The Inbox has asking rows first with `POD_A_FOLLOW`.
+- Each view stays within 184 runs plus spares.
+
+**`test_pod_nav` / glue**
+- Classic listening: a tap anywhere gives `VOICE_END`.
+- The side button discards.
+- × gives `POD_A_BANNER_CLOSE`, closes the banner and keeps the entry unread.
+- The timer reaching 0 closes it.
+- The Back label follows the origin.
+
+**`test_fonts.py`:** the new faces exist with their coverage, and the Classic set is within 800 KB.
+
+**Layout check against the mockup**
+- `build.py --font liberation` renders the mockup with Liberation Sans, and `test/pod_render.py` renders the same screens from firmware.
+- A dev script (`test/classic_vs_mockup.py`) overlays the two and reports box offsets.
+- The target is within ±2 px for every text baseline and box edge.
+- This is a dev check, not part of `run.sh`.
+
+**Perf**
+- `test_cs_perf.sh` gains Classic screens (opt-in, `CS_PERF=1`).
+- On the device, the heartbeat must show frame_max ≤ 24 ms on Tabs, Recent, Agent working, Recap, Voice and the banner.
+
+**Device:** flash with `scripts/flash.sh`, switch to Classic, and walk every screen above, including Voice tap-to-send, banner × and timer, link down, and a real Claude turn (Agent → Recap with tokens).
+
+## Risk
+
+**Critical:**
+- the voice gesture changes in Classic, and every Classic screen is redrawn;
+- a font is added, which costs flash.
+
+The review runs on the strongest model.