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 star line's first look runs in every page context [N26]

Corey Olsonb21c8626fd47
diff --git a/src/cockpit.js b/src/cockpit.js
index d23247c3..658e9c04 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -343,7 +343,7 @@ function starLine(list) {
}
$('star-dismiss')?.addEventListener('click', () => { keep(${JSON.stringify(STAR_KEY)}, 'dismissed'); starLine(null); });
// The first look waits for the whole script, so the engine the read declares (linkedList) is set up by then.
-queueMicrotask(() => starLine(null));
+Promise.resolve().then(() => starLine(null)); // a microtask, as queueMicrotask would schedule, but present in every page context
/** Hide the relay's own banner, which speaks for the relay, on a page the relay does not serve this time. */
function hideRelayNotice() {