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
Merge branch 'main' into view/764-marketing
Corey Olson77f9e35f7d27
diff --cc src/cockpit.jsindex 568af25b,0078da05..5c686bbf--- a/src/cockpit.js+++ b/src/cockpit.js@@@ -441,25 -422,26 +445,31 @@@ async function lookLocal(again)try { permission = (await navigator.permissions.query({ name })).state; break; } catch { /* this browser has no such permission */ }}if (permission === 'denied') {- localNote('blocked');+ show('blocked');return 'unreachable';}- if (permission !== 'granted') {- localNote('asking');- // The line is on screen before the request that can raise the browser's prompt.+ // A browser that says it will ask gets Click Allow on screen before the request that raises its prompt; one that+ // says nothing gets it only once the request is slow to come back, as it is while a prompt waits.+ let slow = null;+ if (permission === 'prompt' && !again) {+ show('asking');await new Promise((painted) => requestAnimationFrame(() => requestAnimationFrame(painted)));- }+ } else if (permission !== 'granted' && !again) slow = setTimeout(() => show('asking'), 800);let reply;- try { reply = await fetch(base + '/local/protocol', { signal: AbortSignal.timeout(3000), credentials: 'omit', redirect: 'error' }); }- catch (error) {- // A request that ran out of time while the browser may still be asking is the prompt waiting for the person;- // one refused at once means nothing runs here. One discovery request at a time is all this page makes of this- // device, so a view too old to answer it reads as none.- show(error?.name === 'TimeoutError' && permission !== 'granted' ? 'asking' : 'not-running');- return 'unreachable';- for (let attempt = 1; !reply; attempt += 1) {- try { reply = await fetch(base + '/local/protocol', { signal: AbortSignal.timeout(3000), credentials: 'omit', redirect: 'error' }); }- catch (error) {- // A read that ran out of time may have met a slow first answer or a browser prompt still open, so it asks once- // more (#786). Otherwise the page asks nothing else of this device (P5): a refused or unanswered view reads as- // none, and the state names that case in its hint.- if (attempt < 2 && error?.name === 'TimeoutError') continue;- localNote('not-running');- return 'unreachable';++ try {++ for (let attempt = 1; !reply; attempt += 1) {++ try { reply = await fetch(base + '/local/protocol', { signal: AbortSignal.timeout(3000), credentials: 'omit', redirect: 'error' }); }++ catch (error) {++ // A read that ran out of time may have met a slow first answer or a browser prompt still open, so it asks once++ // more (#786). After that, one that ran out of time while the browser may still be asking is the prompt waiting++ // for the person, and one refused at once means nothing runs here (#764). One discovery request at a time is all++ // this page makes of this device (P5), so a view too old to answer it reads as none.++ if (attempt < 2 && error?.name === 'TimeoutError') continue;++ show(error?.name === 'TimeoutError' && permission !== 'granted' ? 'asking' : 'not-running');++ return 'unreachable';++ }+ }- }+ } finally { clearTimeout(slow); }let protocol = null;try { protocol = await reply.json(); } catch { /* not this protocol */ }if (!reply.ok || protocol?.version !== 1 || protocol?.apiVersion !== 1 || protocol?.hostedOrigin !== location.origin) {