Skip to content

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.

fix(view): the roadmap panel listens for scroll on the document [N26]

Corey Olsone1e582382c35
diff --git a/src/cockpit.js b/src/cockpit.js
index 2a901815..9a2c5967 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -2356,7 +2356,8 @@ document.addEventListener('click', (event) => {
else if (t.dataset.shout) { answer(null); addressTo(t.dataset.shout); $('shout-text').value = '#' + t.dataset.about + ': '; openTab('shouts'); showTab(); $('shout-text').focus(); }
else if (t.dataset.new !== undefined) { view.adding = true; render(); $('add-title').focus(); }
});
-window.addEventListener('scroll', updateRoadmapPanel, { passive: true });
+// The viewport's scroll is fired at the document; the tests' stand-in document has no window.
+document.addEventListener('scroll', updateRoadmapPanel, { passive: true });
/** Close the expanded stats card and return focus to the list's summary control on Escape. */
document.addEventListener('keydown', (event) => {
if (event.key !== 'Escape' || !view.statsOpen || view.tab !== 'items' || document.querySelector('[data-pane="items"]')?.hidden) return;