Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: scope legacy message completeness checks to the inbox (#8784)
[._.]/ Adam Eivy785b73924dd5
diff --git a/server/lib/messageBrowserIdentity.js b/server/lib/messageBrowserIdentity.jsindex 69a98cc3a4..9479358aa3 100644--- a/server/lib/messageBrowserIdentity.js+++ b/server/lib/messageBrowserIdentity.js@@ -106,10 +106,10 @@ async function actOnMessageRow(provider, identity, action, readOutlookRow) {// A virtualized/scrolling list cannot establish legacy uniqueness outside the// rendered window. A fresh sync may supply an ID; otherwise use the provider UI.if (!identity.providerRowId) {- for (let node = list; node; node = node.parentElement) {- if (node.scrollHeight > node.clientHeight) return conflict();- }- if (rows().some(row => Number(row.getAttribute('aria-setsize')) > rows().length)) return conflict();+ const visibleCount = rows().length;+ if (list.scrollHeight > list.clientHeight+ || Number(list.getAttribute('aria-rowcount')) > visibleCount+ || rows().some(row => Number(row.getAttribute('aria-setsize')) > visibleCount)) return conflict();}const candidates = rows().filter(matches);if (candidates.length !== 1) return conflict();diff --git a/server/services/messageActions.test.js b/server/services/messageActions.test.jsindex 9edbe49e2f..ee92ed56fd 100644--- a/server/services/messageActions.test.js+++ b/server/services/messageActions.test.js@@ -13,10 +13,10 @@ const message = { id: 'requested', subject: 'Status update', from: { name: 'Exam// Execute the actual CDP script against a synthetic provider DOM, including the// production field reader, click, and confirmation loop. No mailbox/network I/O.-function mailbox(records, { remove = true, scroll = false, missingControl = false } = {}) {+function mailbox(records, { remove = true, scroll = false, missingControl = false, pageScroll = false } = {}) {const attr = values => ({ getAttribute: name => values[name] ?? null });const span = (text, title) => ({ ...attr({ title }), textContent: text });- const list = { isConnected: true, parentElement: null, scrollHeight: scroll ? 100 : 0, clientHeight: 0 };+ const list = { ...attr({}), isConnected: true, parentElement: pageScroll ? { scrollHeight: 100, clientHeight: 10 } : null, scrollHeight: scroll ? 100 : 0, clientHeight: 0 };const clicked = [];let visible;visible = records.map((record, index) => {@@ -59,6 +59,11 @@ for (const provider of ['gmail', 'outlook']) describe(`${provider} browser identawait executeAction(accountId, message.id, 'archive');expect(clicked).toEqual([{ index: 2, label: 'Archive' }]);});+ it('allows a complete non-scrolling inbox inside a scrollable page', async () => {+ const clicked = mailbox([message], { pageScroll: true });+ await executeAction(accountId, message.id, 'archive');+ expect(clicked).toEqual([{ index: 0, label: 'Archive' }]);+ });it('matches a cached ISO timestamp to an equivalent complete provider timestamp', async () => {mocks.message.mockResolvedValue({ ...message, date: '2026-09-26T10:30:00.000Z' });const clicked = mailbox([{ ...message, date: 'Sat, 26 Sep 2026 10:30:00 GMT' }]);