From bf1e482f8b38d547e690b5d7976acebe69c175e8 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 23 Nov 2026 15:15:59 +0000 Subject: [PATCH] fix(hub): stop scroll anchoring from moving the inbox on a tick MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A tick redraws every inbox row; the browser's scroll anchoring then moved the 258 px tall inbox at 390 by 9 px on the next frame, with no script call (measured with wrapped focus, scroll calls and a scrollTop trap). .inbox now sets overflow-anchor: none. The scrollTop restore of d0f3393 changed nothing and goes. Proof: test_hub_inbox_e2e 6/6 green, red twice without the line. 🎯 Fix: 95 % 💥 Break: 3 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 92 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 --- orchestrator/templates/page-inbox.js | 2 -- orchestrator/templates/style-tasks.css | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/orchestrator/templates/page-inbox.js b/orchestrator/templates/page-inbox.js index fc386e3..8cb05e4 100644 --- a/orchestrator/templates/page-inbox.js +++ b/orchestrator/templates/page-inbox.js @@ -248,14 +248,12 @@ const key = keyOf(item); flip(key); ui.cursor = Math.max(visibleInbox().findIndex((entry) => keyOf(entry) === key), 0); - const top = inboxDom.scrollTop; drawInbox(); drawGrant(); const box = inboxDom.querySelector(`.item[data-index="${ui.cursor}"] > input[type="checkbox"]`); if (refocus && box) { box.focus({preventScroll: true}); } - inboxDom.scrollTop = top; } function reviewsPill(item) { diff --git a/orchestrator/templates/style-tasks.css b/orchestrator/templates/style-tasks.css index 6633a19..52c3d18 100644 --- a/orchestrator/templates/style-tasks.css +++ b/orchestrator/templates/style-tasks.css @@ -8,6 +8,7 @@ .task-toolbar > .choice-request { margin-left: auto; } .tasks > .chips { margin-bottom: 0; } body.fit .graph.tasks > .tasks-body, body.fit .graph.tasks > .inbox { flex: 1; min-height: 0; overflow: auto; } +.inbox { overflow-anchor: none; } .choice-agents { display: grid; gap: 6px; max-height: 30vh; overflow: auto; } .choice-buttons { display: flex; flex-wrap: wrap; gap: 6px; } .chip .count { margin-left: 2px; }