tycono 0.1.112 → 0.1.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/tui/app.tsx +3 -1
package/package.json
CHANGED
package/src/tui/app.tsx
CHANGED
|
@@ -293,8 +293,10 @@ export const App: React.FC = () => {
|
|
|
293
293
|
directive: pw.directive || '',
|
|
294
294
|
startedAt: pw.startedAt ? new Date(pw.startedAt).getTime() : 0,
|
|
295
295
|
}));
|
|
296
|
+
// Sort by startedAt ascending (oldest first = Wave 1)
|
|
297
|
+
pastEntries.sort((a, b) => a.startedAt - b.startedAt);
|
|
296
298
|
setWaves(pastEntries);
|
|
297
|
-
// Focus
|
|
299
|
+
// Focus most recent wave (last in sorted list)
|
|
298
300
|
setFocusedWaveId(pastEntries[pastEntries.length - 1]?.waveId ?? null);
|
|
299
301
|
} else if (api.loaded) {
|
|
300
302
|
// No active waves, no past waves — fresh start
|