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.
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.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
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
- setFocusedWaveId(apiWaves[apiWaves.length - 1].waveId);
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)