tycono 0.3.5 → 0.3.6

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.5",
3
+ "version": "0.3.6",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tui/app.tsx CHANGED
@@ -363,9 +363,11 @@ export const App: React.FC = () => {
363
363
  // Load wave history into SSE events (for Panel Mode Stream tab)
364
364
  const historyLoadingRef = useRef<string | null>(null);
365
365
  const loadWaveHistoryEvents = useCallback(async (waveId: string) => {
366
- // Guard: skip if already loading this wave or another load in progress
366
+ // Guard: skip if already loading this wave
367
367
  if (historyLoadingRef.current === waveId) return;
368
368
  historyLoadingRef.current = waveId;
369
+ // Wait for SSE reconnection to settle (it calls setEvents([]) on connect)
370
+ await new Promise(r => setTimeout(r, 500));
369
371
 
370
372
  try {
371
373
  const sessions = api.sessions.filter(s => s.waveId === waveId && s.roleId === 'ceo');