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: keep Inbox history failures visible alongside capture (#9724)
Adam Eivy8ee6c88ef28e
diff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsxindex 4c69dce6a8..849a2ed028 100644--- a/client/src/components/brain/tabs/InboxTab.jsx+++ b/client/src/components/brain/tabs/InboxTab.jsx@@ -81,7 +81,7 @@ export default function InboxTab({ onRefresh, settings }) {const tempIdCounter = useRef(0);const fetchInboxPage = useCallback(async ({ cursor, signal }) => {- const data = await api.getBrainInbox({ cursor, limit: 50, signal }).catch(() => ({ items: [], entries: [] }));+ const data = await api.getBrainInbox({ cursor, limit: 50, signal, silent: true });if (data.counts) {setServerCounts(data.counts);}@@ -943,7 +943,7 @@ export default function InboxTab({ onRefresh, settings }) {})}{filedEntries.length === 0 && (- <p className="text-gray-500 text-sm">{paged.loaded ? 'No filed entries yet. Start capturing thoughts above.' : 'Inbox history is loading. You can capture thoughts above.'}</p>+ <p className="text-gray-500 text-sm">{paged.loaded ? 'No filed entries yet. Start capturing thoughts above.' : 'Inbox history is not available yet. You can capture thoughts above.'}</p>)}</div>)}diff --git a/client/src/components/brain/tabs/InboxTab.test.jsx b/client/src/components/brain/tabs/InboxTab.test.jsxindex 742abfc893..a51df4aa49 100644--- a/client/src/components/brain/tabs/InboxTab.test.jsx+++ b/client/src/components/brain/tabs/InboxTab.test.jsx@@ -90,6 +90,24 @@ describe('Brain inbox capture', () => {expect(screen.getAllByText(accepted.capturedText)).toHaveLength(1);});+ it('keeps capture usable after history fails without claiming it is still loading', async () => {+ getBrainInbox.mockRejectedValue(new Error('Example history could not load'));+ const accepted = {+ id: 'example-after-history-error', capturedText: 'A thought after a history failure',+ status: 'filed', capturedAt: '2026-01-01T00:00:00.000Z',+ };+ captureBrainThought.mockResolvedValue({ inboxLog: accepted });+ render(<MemoryRouter><InboxTab /></MemoryRouter>);++ expect(await screen.findByRole('alert')).toHaveTextContent('Example history could not load');+ expect(screen.getByRole('button', { name: 'Retry loading' })).toBeEnabled();+ expect(screen.queryByText('Inbox history is loading. You can capture thoughts above.')).toBeNull();+ expect(screen.queryByText('Loading inbox history')).toBeNull();+ fireEvent.change(screen.getByLabelText('New inbox thought'), { target: { value: accepted.capturedText } });+ fireEvent.click(screen.getByLabelText('Capture thought'));+ await waitFor(() => expect(screen.getByText(accepted.capturedText)).toBeInTheDocument());+ });+it('sends an optional note when a URL is filed to Links', async () => {render(<MemoryRouter><InboxTab /></MemoryRouter>);const input = await screen.findByLabelText('New inbox thought');