Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(view): read-ahead skips a page with no frames [N26]
Corey Olson91551b364604
diff --git a/src/view/page-script-3.js b/src/view/page-script-3.jsindex c5cafc36..c3aa89e5 100644--- a/src/view/page-script-3.js+++ b/src/view/page-script-3.js@@ -334,7 +334,8 @@ let aheadFrame = 0;/** Read ahead the detail of each folded Roadmap row on screen, once per frame, so its first expand fills at once (#1039). */function aheadRoadmapRows() {- if (aheadFrame || view.tab !== 'roadmap') return;+ // A page drawn outside a browser, as the list tests draw one, has no frames and reads nothing ahead.+ if (aheadFrame || view.tab !== 'roadmap' || typeof requestAnimationFrame !== 'function') return;aheadFrame = requestAnimationFrame(() => {aheadFrame = 0;for (const row of document.querySelectorAll('#roadmap .milestone-item[aria-expanded=false]')) {diff --git a/test/cockpit/roadmap.test.js b/test/cockpit/roadmap.test.jsindex 8b0ab5ee..cae05ee0 100644--- a/test/cockpit/roadmap.test.js+++ b/test/cockpit/roadmap.test.js@@ -1079,7 +1079,9 @@ test('a blocked roadmap item shows its dot and expands to say why [N26]', { timeassert.equal(await chrome.stable(`${row('#2')}.parentElement.querySelectorAll('.roadmap-criterion em').length`),0,'criterion markup stays escaped');assert.match(blocked, /Waits on#1 building.*web-2.*since/u, 'dependency includes state, holder and local time');assert.match(blocked, /History.*added/u); assert.match(blocked, /Release.*Next.*G1/u);- assert.ok((await reads()).filter(url => /\/items\/2$/.test(url)).length <= 1, 'the first opened row reads its detail once, ahead or on expand');+ // The other board also has an item #2, so only this board's reads count.+ const local = await chrome.stable('boardPath(view.root)');+ assert.ok((await reads()).filter(url => url.endsWith(local + '/items/2')).length <= 1, 'the first opened row reads its detail once, ahead or on expand');for (const id of ['#2', '#6', '#5']) {if (id !== '#2') await opened(id);const text = await chrome.stable(`${row(id)}.parentElement.querySelector('.milestone-why').textContent`);