tycono 0.1.112 → 0.2.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tui/app.tsx +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.1.112",
3
+ "version": "0.2.0",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
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 last wave user can /new if they want a fresh one
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