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(relay): compose paged state and hosted guidance [H5,H16]

Corey Olsona33950957724
diff --cc relay/browser-client.js
index 24f1f3dc,7164fe81..358de36e
--- a/relay/browser-client.js
+++ b/relay/browser-client.js
@@@ -184,8 -183,9 +186,9 @@@ export async function createTransport(
// A phone has no local-view screen to fall back to: keep its shell and the real reason until a board is readable.
const root = document.documentElement;
const phoneWaiting = root.dataset.relayDevice === 'phone' && (!rendered || paired.size === 0);
- showRelayScreen(root, phoneWaiting || nothingShared({ paired, waitingBoards, failure }) ? 'share' : null,
- phoneWaiting && (failure || waitingBoards.size || warnings.some(value => value?.code === 'ACCOUNT_STORAGE_LIMIT')) ? lines.join(' ') : '');
+ const step = emptyBoardStep({ available, waitingBoards, approvedBoards, loaded: inventoryLoaded, browserPaired, failure });
+ showRelayScreen(root, phoneWaiting || paired.size === 0 ? 'share' : null,
- phoneWaiting && (failure || waitingBoards.size) ? lines.join(' ') : '', step);
++ phoneWaiting && (failure || waitingBoards.size || warnings.some(value => value?.code === 'ACCOUNT_STORAGE_LIMIT')) ? lines.join(' ') : '', step);
placePhoneApprovals(document);
}
@@@ -644,9 -591,8 +652,8 @@@
addEventListener('hashchange', pairingChanged);
// A pairing link opened in another tab, as a scanned QR does, saves its key here: this page fills in by itself.
addEventListener('storage', event => { if (event.key === KEYS && !accessLost) listing().then(onUpdate, notice); });
- addEventListener('pagehide', () => { for (const entry of paired.values()) entry.stream?.close(); });
+ addEventListener('pagehide', () => { access.abort(); for (const entry of paired.values()) { entry.stream?.close(); entry.history?.close(); entry.pageCache?.clear(); } });
- // Signed in with no board key saved and no pairing on its way, the one-command screen shows at once, while the
- // first listing is still on the network; the listing then fills the board in, or keeps this screen.
+ // Keep the first screen while inventory is unknown; a pending read is not evidence that nothing is linked.
let devicePairing = /(?:^#|&)device=/u.test(location.hash);
try { devicePairing ||= sessionStorage.getItem('pullboard.relay.device-pair.v1') !== null; } catch { /* No storage: no saved pairing. */ }
if (!pair && !devicePairing && !Object.keys(keys).length) showRelayScreen(document.documentElement, 'share');