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
pin the retention-window value before blur so the save assertion cannot race
[._.]/ Adam Eivy4d3b57c97824
diff --git a/client/src/pages/PersistentMindTools.test.jsx b/client/src/pages/PersistentMindTools.test.jsxindex 09418e458a..ed5ad47786 100644--- a/client/src/pages/PersistentMindTools.test.jsx+++ b/client/src/pages/PersistentMindTools.test.jsx@@ -1,6 +1,7 @@import { beforeEach, describe, expect, it, vi } from 'vitest';import { render, screen, waitFor } from '@testing-library/react';import userEvent from '@testing-library/user-event';+import { typeSettled } from '../test/settledInput.js';import { MemoryRouter } from 'react-router';const api = vi.hoisted(() => ({@@ -261,7 +262,13 @@ describe('PersistentMindTools', () => {const retentionInput = await screen.findByLabelText('Retention window (extra turns)');expect(retentionInput).toHaveValue(3);await user.clear(retentionInput);- await user.type(retentionInput, '5');+ // Pin the typed value before blurring. Blur saves whatever the field holds+ // AT THAT MOMENT, so an unsettled partial value is sent once and the waitFor+ // below can never see a second, correct call — it flaked on CI under worker+ // contention while passing locally. Not retypeSettled: this input is+ // controlled and re-renders the cleared field as 0, not empty, so pinning+ // the intermediate state would assert a value it never shows.+ await typeSettled(user, retentionInput, '5');await user.tab();await waitFor(() => expect(api.updateCosConfig).toHaveBeenCalledWith({