Files
shumai/packages
yiling 92801ba14a fix(core): make version stack sort index lookup deterministic
When creating a version stack, the sortIndex was previously extracted
by taking files[0] from the database query result. Because findMany
without orderBy is non-deterministic, this resulted in flakiness
where the sortIndex would sometimes be null (from file2) instead of
'abc' (from file1), causing tests to fail.

We now look up the first file specifically based on the ordered
fileIds array parameter.
2026-06-23 10:02:01 +08:00
..
2026-06-22 21:45:39 +08:00
2026-06-22 21:45:39 +08:00
2026-06-22 21:45:39 +08:00
2026-06-22 21:45:39 +08:00
2026-06-22 21:45:39 +08:00
2026-06-22 21:45:39 +08:00
2026-06-22 21:45:39 +08:00
2026-06-22 21:45:39 +08:00