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: wait for the settled interval value after the StackerNews drawer remounts its tab
[._.]/ Adam Eivy8921f06a4b5a
diff --git a/.changelog/v2.37.0.md b/.changelog/v2.37.0.mdindex b2161028f7..a5cef448f8 100644--- a/.changelog/v2.37.0.md+++ b/.changelog/v2.37.0.md@@ -103,6 +103,7 @@ Released: 2026-08-03- **Dependency audit: clean, and the two deferred override majors were re-checked rather than re-deferred.** `npm audit` reports zero vulnerabilities across all four manifests (root, `server`, `client`, `autofixer`) — the React Router advisory that drove the v8 migration was the last one outstanding. Every other direct dependency is already at its latest published version. The two overrides held back last pass stay held back for a reason that is now recorded instead of re-derived: pm2 declares `js-yaml` at the *exact* version `4.3.0`, so forcing the 5.x major overrides an exact pin rather than a range, and `onnxruntime-web` (via `kokoro-js`) declares `protobufjs@^7.2.4`, which 8.x is outside of by definition. `typescript` 7.0.2 is likewise blocked upstream, not by choice: it exists in this repo only as a peer for `@typescript-eslint`, whose current 8.65.0 declares `typescript >=4.8.4 <6.1.0` — the 6.0.3 pin is already at that ceiling, and 7 becomes available when typescript-eslint ships support for it. `node-pty` stays on `1.2.0-beta.14`, which is ahead of the 1.1.0 stable, not behind it.- **Two `overrides` were forcing majors onto transitive consumers for no security benefit — the exact thing the previous pass refused to do to `js-yaml` and `protobufjs`.** Every direct dependency is already current and `npm audit` is still clean across all four manifests, so this pass audited the pinned `overrides` blocks themselves rather than the versions above them. Resolving each manifest twice — once as written, once with `overrides` deleted — and diffing the trees sorts all 39 entries into three groups. Two were actively harmful. `picomatch` was pinned to 4.0.5 against consumers that declared `^2.0.4` and `^2.2.1` — `anymatch` and `readdirp`, reached through pm2's `chokidar@3` file watcher — so pm2's watch globbing was running against a picomatch two majors past the one those packages were written for. `basic-ftp` was pinned to 6.2.0 against `get-uri@6`'s declared `^5.0.2`, in the FTP branch of pm2's PAC proxy agent. Neither pin is load-bearing: deleting each one individually and re-resolving leaves `npm audit` at zero, so no advisory required them and the only thing they bought was silent-breakage risk of the kind that surfaces at runtime instead of at install time. Both are gone, and the lockfile diff is exactly the correction — `basic-ftp` back to 5.3.1 under `get-uri`, `picomatch` 2.3.2 nested under `anymatch` and `readdirp` while vite and vitest keep the 4.0.5 they actually ask for. Ten more entries named packages that were not in the tree they were declared in at all — seven of the root manifest's fourteen, which had been copy-pasted from `server` even though root's only dependency is pm2, plus `brace-expansion`/`systeminformation` in `server` and `js-yaml` in `client`. Removing those produced zero lockfile churn, which is the proof they were inert; the root block now describes pm2's actual tree. The remaining pins all have real consumers and all sit inside the ranges those consumers declared, with two deliberate exceptions kept as-is: `sharp` and `three` are force-deduped across the whole tree because a second copy of a native binary or of three.js is itself the bug.- **A Wordplay test suite could spend its whole budget waiting and then blame the wrong line.** Its drill-generation waits were bounded at five seconds — exactly the per-test timeout — so an inner wait was allowed to consume the entire test, and the checks that came after it had nothing left to run in. The premature-submit test has eight awaited transitions after that wait and duly failed on CI at 5,011ms, reporting only "Test timed out" against the test's opening line rather than the step that actually stalled. The per-test budget is now derived from the inner bound instead of coinciding with it, so a wait that overruns fails as itself and the assertions after it still get to run.+- **Three Stacker News tests read a form field one render too early.** Each reopened the account drawer, switched to its Monitoring tab, and then checked the interval field's value with no wait. The drawer deliberately remounts a panel when you switch tabs, so the field exists for a moment before the stored value reaches it — and on CI one of the three duly read an empty box and failed against a value that was about to be correct, on a pull request whose only change was a version number. All three now assert the settled value, the way the neighbouring retired-model test already did.## Chief of Staffdiff --git a/client/src/pages/StackerNews.test.jsx b/client/src/pages/StackerNews.test.jsxindex 54d6207af2..679c226f2b 100644--- a/client/src/pages/StackerNews.test.jsx+++ b/client/src/pages/StackerNews.test.jsx@@ -85,7 +85,10 @@ describe('StackerNews', () => {expect(screen.getByText('@personal_stacker · monitoring off')).toBeInTheDocument();await user.click(screen.getByRole('button', { name: 'Edit account settings' }));await user.click(drawerTab('Monitoring & models'));- expect(intervalField()).toHaveValue(15);+ // The drawer remounts its panel per tab (`key={currentTab}`), so the field+ // is briefly present with no value before the account's stored one lands.+ // Assert on the settled value, as the retired-vision-model case below does.+ await waitFor(() => expect(intervalField()).toHaveValue(15));await user.click(drawerTab('Stewardship'));expect(screen.getByDisplayValue('Curate visual work')).toBeInTheDocument();});@@ -225,7 +228,7 @@ describe('StackerNews', () => {expect(screen.getByRole('button', { name: 'Sync now' })).toBeEnabled();await user.click(screen.getByRole('button', { name: 'Edit account settings' }));await user.click(drawerTab('Monitoring & models'));- expect(intervalField()).toHaveValue(15);+ await waitFor(() => expect(intervalField()).toHaveValue(15));});// Stacker News grants API keys on request only, so a keyless account is the@@ -282,7 +285,7 @@ describe('StackerNews', () => {expect(screen.getByRole('heading', { name: 'Settings and safety for @personal_stacker' })).toBeInTheDocument();await user.click(screen.getByRole('button', { name: 'Edit account settings' }));await user.click(drawerTab('Monitoring & models'));- expect(intervalField()).toHaveValue(60);+ await waitFor(() => expect(intervalField()).toHaveValue(60));});it('offers only vision-capable models for the vision stage and every model for text', async () => {