merge(dev): sync tested frontend changes into main

This commit is contained in:
777genius 2026-04-29 00:13:16 +03:00
commit 2faf2415ce

View file

@ -5549,30 +5549,33 @@ describe('TeamProvisioningService', () => {
); );
await (svc as any).launchMixedSecondaryLaneIfNeeded(run); await (svc as any).launchMixedSecondaryLaneIfNeeded(run);
await vi.waitFor(async () => { await vi.waitFor(
expect(adapterLaunch).toHaveBeenCalledTimes(1); async () => {
const launchInput = adapterLaunch.mock.calls[0]?.[0] as { runId?: string } | undefined; expect(adapterLaunch).toHaveBeenCalledTimes(1);
expect(launchInput?.runId).toEqual(expect.any(String)); const launchInput = adapterLaunch.mock.calls[0]?.[0] as { runId?: string } | undefined;
await expect( expect(launchInput?.runId).toEqual(expect.any(String));
new OpenCodeRuntimeManifestEvidenceReader({ teamsBasePath: tempTeamsBase }).read( await expect(
teamName, new OpenCodeRuntimeManifestEvidenceReader({ teamsBasePath: tempTeamsBase }).read(
'secondary:opencode:bob' teamName,
) 'secondary:opencode:bob'
).resolves.toMatchObject({ )
activeRunId: launchInput?.runId, ).resolves.toMatchObject({
highWatermark: 0, activeRunId: launchInput?.runId,
}); highWatermark: 0,
await expect(readOpenCodeRuntimeLaneIndex(tempTeamsBase, teamName)).resolves.toMatchObject({ });
lanes: { await expect(readOpenCodeRuntimeLaneIndex(tempTeamsBase, teamName)).resolves.toMatchObject({
'secondary:opencode:bob': { lanes: {
state: 'degraded', 'secondary:opencode:bob': {
diagnostics: expect.arrayContaining([ state: 'degraded',
'OpenCode readiness bridge failed: timeout: OpenCode bridge command timed out', diagnostics: expect.arrayContaining([
]), 'OpenCode readiness bridge failed: timeout: OpenCode bridge command timed out',
]),
},
}, },
}, });
}); },
}); { timeout: 5000 }
);
}); });
it('starts all queued OpenCode secondary lanes without letting the first in-flight lane block its siblings', async () => { it('starts all queued OpenCode secondary lanes without letting the first in-flight lane block its siblings', async () => {