tycono 0.3.7 → 0.3.8
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
|
@@ -317,8 +317,10 @@ export const App: React.FC = () => {
|
|
|
317
317
|
}));
|
|
318
318
|
|
|
319
319
|
const allWaves = [...pastEntries, ...apiWaves];
|
|
320
|
+
allWaves.sort((a, b) => a.startedAt - b.startedAt);
|
|
320
321
|
setWaves(allWaves);
|
|
321
|
-
|
|
322
|
+
// Focus most recent wave
|
|
323
|
+
setFocusedWaveId(allWaves[allWaves.length - 1]?.waveId ?? null);
|
|
322
324
|
autoWaveCreated.current = true;
|
|
323
325
|
} else if (api.loaded && api.pastWaves.length > 0) {
|
|
324
326
|
// No active waves, past waves exist — resume last wave (don't create new)
|