Skip to content

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

fix: stabilize cross-platform registry tests

[._.]/ Adam Eivy23b063e42a3a
diff --git a/server/lib/mediaModels.test.js b/server/lib/mediaModels.test.js
index 95c796ec98..9eea37d903 100644
--- a/server/lib/mediaModels.test.js
+++ b/server/lib/mediaModels.test.js
@@ -58,8 +58,10 @@ describe('mediaModels registry', () => {
});
it('ships MiniMax H3 as a pinned, keyframe-capable 128 GB BYOV profile', async () => {
- const { getVideoModels } = await import('./mediaModels.js');
- const h3 = getVideoModels().find((model) => model.id === 'minimax_h3_8bit');
+ const { loadMediaModels } = await import('./mediaModels.js');
+ // H3 is an Apple-silicon MLX runtime, so inspect the shipped macOS catalog
+ // directly instead of the current platform's filtered model list.
+ const h3 = loadMediaModels().video.macos.find((model) => model.id === 'minimax_h3_8bit');
expect(h3).toMatchObject({
runtime: 'minimax_h3',
repo: 'pipenetwork/MiniMax-H3-MLX-8bit',
diff --git a/server/lib/tuiPromptRunner.test.js b/server/lib/tuiPromptRunner.test.js
index 3486053a20..37e55baed8 100644
--- a/server/lib/tuiPromptRunner.test.js
+++ b/server/lib/tuiPromptRunner.test.js
@@ -1048,6 +1048,9 @@ describe('executeTuiRun', () => {
// Poll 1 only seeds the size-stability baseline — the run is NOT finalized
// yet even though the complete answer is already on disk.
await vi.advanceTimersByTimeAsync(1100);
+ // Let the async interval callback commit its baseline before racing it
+ // against the fallback signal below on a loaded CI worker.
+ await flushAsync();
expect(runnerMocks.finalizeRunRecord).not.toHaveBeenCalled();
// A follow-up provider request times out and paints the terminal banner