aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-29 09:08:24 -0700
committerAdam Soltys <[email protected]>2026-09-29 09:08:24 -0700
commit9763e3f0b2b9de23231a45274bd534889a7d478c (patch)
tree8f71455e670d30f4b04abd0d5aabcdceb50450b8 /tools
parentd2b3c05995b0d54cfe586128fd2e958a563ac861 (diff)
downloadcoinosv3-9763e3f0b2b9de23231a45274bd534889a7d478c.tar.gz
coinosv3-9763e3f0b2b9de23231a45274bd534889a7d478c.zip
A face still being looked up shows its punk after a second at most; a picture found later replaces it.
The quiet loading circle is capped at 1 s per face (a timer repaints when it runs out); one miss is enough to remember someone as faceless; and a room's warm-up adds members whose messages arrived after it first ran, instead of reusing a warm-up that covered only the early history. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Du1qT1wbkYwYK6zkGH79Rp
Diffstat (limited to 'tools')
-rw-r--r--tools/room-faces-test.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/room-faces-test.js b/tools/room-faces-test.js
index 706691b..ab673ff 100644
--- a/tools/room-faces-test.js
+++ b/tools/room-faces-test.js
@@ -45,7 +45,10 @@ try {
if (!process.argv.includes('--no-hover')) await row.hover();
await row.click();
for (let i = 0; i < 60 && !(await page.evaluate(() => !!window.__first)); i++) await sleep(100);
- await sleep(6000);
+ await sleep(1200);
+ const at1s = await page.evaluate(new Function('return (' + face.toString() + ')()'));
+ check('no face is still a blank circle a second after the room shows', !at1s.includes('wait'), JSON.stringify(tally(at1s)));
+ await sleep(4800);
const [first, at] = await page.evaluate(() => [window.__first, window.__firstAt]);
const last = await page.evaluate(new Function('return (' + face.toString() + ')()'));
const flips = (first || []).filter((f, i) => f === 'punk' && last[i] === 'pic').length;
@@ -59,7 +62,7 @@ try {
// frame — a known-faceless member is their punk at once, not a blank
// circle that turns into one. (Wait out the second ask that confirms
// who has no profile.)
- await sleep(25000);
+ await sleep(8000);
await page.evaluateOnNewDocument((fs, ks) => {
const face = new Function('return ' + fs)();
const keyed = new Function('return ' + ks)();